autotool.patch 2.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libgcrypt-1.4.5.orig/aclocal.m4 libgcrypt-1.4.5/aclocal.m4
  6. --- libgcrypt-1.4.5.orig/aclocal.m4 2009-12-11 16:43:27.000000000 +0100
  7. +++ libgcrypt-1.4.5/aclocal.m4 2011-02-16 16:00:42.864813089 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -13,8 +13,8 @@
  18. m4_ifndef([AC_AUTOCONF_VERSION],
  19. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  20. -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
  21. -[m4_warning([this file was generated for autoconf 2.64.
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. You have another version of autoconf. It may work, but is not guaranteed to.
  25. If you have problems, you may need to regenerate the build system entirely.
  26. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. @@ -31,10 +31,10 @@
  28. # generated from the m4 files accompanying Automake X.Y.
  29. # (This private macro should not be called outside this file.)
  30. AC_DEFUN([AM_AUTOMAKE_VERSION],
  31. -[am__api_version='1.10'
  32. +[am__api_version='1.11'
  33. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  34. dnl require some minimum version. Point them to the right macro.
  35. -m4_if([$1], [1.10.2], [],
  36. +m4_if([$1], [1.11.1], [],
  37. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  38. ])
  39. @@ -50,7 +50,7 @@
  40. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  41. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  42. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  43. -[AM_AUTOMAKE_VERSION([1.10.2])dnl
  44. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  45. m4_ifndef([AC_AUTOCONF_VERSION],
  46. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  47. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  48. @@ -132,14 +132,14 @@
  49. # AM_CONDITIONAL -*- Autoconf -*-
  50. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  51. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  52. # Free Software Foundation, Inc.
  53. #
  54. # This file is free software; the Free Software Foundation
  55. # gives unlimited permission to copy and/or distribute it,
  56. # with or without modifications, as long as this notice is preserved.
  57. -# serial 8
  58. +# serial 9
  59. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  60. # -------------------------------------
  61. @@ -152,6 +152,7 @@
  62. AC_SUBST([$1_FALSE])dnl
  63. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  64. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  65. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  66. if $2; then
  67. $1_TRUE=
  68. $1_FALSE='#'
  69. @@ -165,14 +166,14 @@
  70. Usually this means the macro was only invoked conditionally.]])
  71. fi])])
  72. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  73. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  74. # Free Software Foundation, Inc.
  75. #
  76. # This file is free software; the Free Software Foundation
  77. # gives unlimited permission to copy and/or distribute it,
  78. # with or without modifications, as long as this notice is preserved.
  79. -# serial 9
  80. +# serial 10
  81. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  82. # written in clear, in which case automake, when reading aclocal.m4,
  83. @@ -229,6 +230,16 @@
  84. if test "$am_compiler_list" = ""; then
  85. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  86. fi
  87. + am__universal=false
  88. + m4_case([$1], [CC],
  89. + [case " $depcc " in #(
  90. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  91. + esac],
  92. + [CXX],
  93. + [case " $depcc " in #(
  94. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  95. + esac])
  96. +
  97. for depmode in $am_compiler_list; do
  98. # Setup a source with many dependencies, because some compilers
  99. # like to wrap large dependency lists on column 80 (with \), and
  100. @@ -246,7 +257,17 @@
  101. done
  102. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  103. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  104. + # mode. It turns out that the SunPro C++ compiler does not properly
  105. + # handle `-M -o', and we need to detect this. Also, some Intel
  106. + # versions had trouble with output in subdirs
  107. + am__obj=sub/conftest.${OBJEXT-o}
  108. + am__minus_obj="-o $am__obj"
  109. case $depmode in
  110. + gcc)
  111. + # This depmode causes a compiler race in universal mode.
  112. + test "$am__universal" = false || continue
  113. + ;;
  114. nosideeffect)
  115. # after this tag, mechanisms are not by side-effect, so they'll
  116. # only be used when explicitly requested
  117. @@ -256,19 +277,23 @@
  118. break
  119. fi
  120. ;;
  121. + msvisualcpp | msvcmsys)
  122. + # This compiler won't grok `-c -o', but also, the minuso test has
  123. + # not run yet. These depmodes are late enough in the game, and
  124. + # so weak that their functioning should not be impacted.
  125. + am__obj=conftest.${OBJEXT-o}
  126. + am__minus_obj=
  127. + ;;
  128. none) break ;;
  129. esac
  130. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  131. - # mode. It turns out that the SunPro C++ compiler does not properly
  132. - # handle `-M -o', and we need to detect this.
  133. if depmode=$depmode \
  134. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  135. + source=sub/conftest.c object=$am__obj \
  136. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  137. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  138. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  139. >/dev/null 2>conftest.err &&
  140. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  141. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  142. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  143. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  144. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  145. # icc doesn't choke on unknown options, it will just issue warnings
  146. # or remarks (even with -Werror). So we grep stderr for any message
  147. @@ -332,59 +357,61 @@
  148. # gives unlimited permission to copy and/or distribute it,
  149. # with or without modifications, as long as this notice is preserved.
  150. -#serial 4
  151. +#serial 5
  152. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  153. # ------------------------------
  154. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  155. -[# Autoconf 2.62 quotes --file arguments for eval, but not when files
  156. -# are listed without --file. Let's play safe and only enable the eval
  157. -# if we detect the quoting.
  158. -case $CONFIG_FILES in
  159. -*\'*) eval set x "$CONFIG_FILES" ;;
  160. -*) set x $CONFIG_FILES ;;
  161. -esac
  162. -shift
  163. -for mf
  164. -do
  165. - # Strip MF so we end up with the name of the file.
  166. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  167. - # Check whether this is an Automake generated Makefile or not.
  168. - # We used to match only the files named `Makefile.in', but
  169. - # some people rename them; so instead we look at the file content.
  170. - # Grep'ing the first line is not enough: some people post-process
  171. - # each Makefile.in and add a new line on top of each file to say so.
  172. - # Grep'ing the whole file is not good either: AIX grep has a line
  173. - # limit of 2048, but all sed's we know have understand at least 4000.
  174. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  175. - dirpart=`AS_DIRNAME("$mf")`
  176. - else
  177. - continue
  178. - fi
  179. - # Extract the definition of DEPDIR, am__include, and am__quote
  180. - # from the Makefile without running `make'.
  181. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  182. - test -z "$DEPDIR" && continue
  183. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  184. - test -z "am__include" && continue
  185. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  186. - # When using ansi2knr, U may be empty or an underscore; expand it
  187. - U=`sed -n 's/^U = //p' < "$mf"`
  188. - # Find all dependency output files, they are included files with
  189. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  190. - # simplest approach to changing $(DEPDIR) to its actual value in the
  191. - # expansion.
  192. - for file in `sed -n "
  193. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  194. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  195. - # Make sure the directory exists.
  196. - test -f "$dirpart/$file" && continue
  197. - fdir=`AS_DIRNAME(["$file"])`
  198. - AS_MKDIR_P([$dirpart/$fdir])
  199. - # echo "creating $dirpart/$file"
  200. - echo '# dummy' > "$dirpart/$file"
  201. +[{
  202. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  203. + # are listed without --file. Let's play safe and only enable the eval
  204. + # if we detect the quoting.
  205. + case $CONFIG_FILES in
  206. + *\'*) eval set x "$CONFIG_FILES" ;;
  207. + *) set x $CONFIG_FILES ;;
  208. + esac
  209. + shift
  210. + for mf
  211. + do
  212. + # Strip MF so we end up with the name of the file.
  213. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  214. + # Check whether this is an Automake generated Makefile or not.
  215. + # We used to match only the files named `Makefile.in', but
  216. + # some people rename them; so instead we look at the file content.
  217. + # Grep'ing the first line is not enough: some people post-process
  218. + # each Makefile.in and add a new line on top of each file to say so.
  219. + # Grep'ing the whole file is not good either: AIX grep has a line
  220. + # limit of 2048, but all sed's we know have understand at least 4000.
  221. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  222. + dirpart=`AS_DIRNAME("$mf")`
  223. + else
  224. + continue
  225. + fi
  226. + # Extract the definition of DEPDIR, am__include, and am__quote
  227. + # from the Makefile without running `make'.
  228. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  229. + test -z "$DEPDIR" && continue
  230. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  231. + test -z "am__include" && continue
  232. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  233. + # When using ansi2knr, U may be empty or an underscore; expand it
  234. + U=`sed -n 's/^U = //p' < "$mf"`
  235. + # Find all dependency output files, they are included files with
  236. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  237. + # simplest approach to changing $(DEPDIR) to its actual value in the
  238. + # expansion.
  239. + for file in `sed -n "
  240. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  241. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  242. + # Make sure the directory exists.
  243. + test -f "$dirpart/$file" && continue
  244. + fdir=`AS_DIRNAME(["$file"])`
  245. + AS_MKDIR_P([$dirpart/$fdir])
  246. + # echo "creating $dirpart/$file"
  247. + echo '# dummy' > "$dirpart/$file"
  248. + done
  249. done
  250. -done
  251. +}
  252. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  253. @@ -416,13 +443,13 @@
  254. # Do all the work for Automake. -*- Autoconf -*-
  255. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  256. -# 2005, 2006, 2008 Free Software Foundation, Inc.
  257. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  258. #
  259. # This file is free software; the Free Software Foundation
  260. # gives unlimited permission to copy and/or distribute it,
  261. # with or without modifications, as long as this notice is preserved.
  262. -# serial 13
  263. +# serial 16
  264. # This macro actually does too much. Some checks are only needed if
  265. # your package does certain things. But this isn't really a big deal.
  266. @@ -439,7 +466,7 @@
  267. # arguments mandatory, and then we can depend on a new Autoconf
  268. # release and drop the old call support.
  269. AC_DEFUN([AM_INIT_AUTOMAKE],
  270. -[AC_PREREQ([2.60])dnl
  271. +[AC_PREREQ([2.62])dnl
  272. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  273. dnl the ones we care about.
  274. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  275. @@ -490,8 +517,8 @@
  276. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  277. AM_MISSING_PROG(AUTOHEADER, autoheader)
  278. AM_MISSING_PROG(MAKEINFO, makeinfo)
  279. -AM_PROG_INSTALL_SH
  280. -AM_PROG_INSTALL_STRIP
  281. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  282. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  283. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  284. # We need awk for the "check" target. The system "awk" is bad on
  285. # some platforms.
  286. @@ -499,24 +526,37 @@
  287. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  288. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  289. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  290. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  291. - [_AM_PROG_TAR([v7])])])
  292. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  293. + [_AM_PROG_TAR([v7])])])
  294. _AM_IF_OPTION([no-dependencies],,
  295. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  296. - [_AM_DEPENDENCIES(CC)],
  297. - [define([AC_PROG_CC],
  298. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  299. + [_AM_DEPENDENCIES(CC)],
  300. + [define([AC_PROG_CC],
  301. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  302. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  303. - [_AM_DEPENDENCIES(CXX)],
  304. - [define([AC_PROG_CXX],
  305. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  306. + [_AM_DEPENDENCIES(CXX)],
  307. + [define([AC_PROG_CXX],
  308. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  309. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  310. - [_AM_DEPENDENCIES(OBJC)],
  311. - [define([AC_PROG_OBJC],
  312. - defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  313. + [_AM_DEPENDENCIES(OBJC)],
  314. + [define([AC_PROG_OBJC],
  315. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  316. ])
  317. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  318. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  319. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  320. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  321. +AC_CONFIG_COMMANDS_PRE(dnl
  322. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  323. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  324. ])
  325. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  326. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  327. +dnl mangled by Autoconf and run in a shell conditional statement.
  328. +m4_define([_AC_COMPILER_EXEEXT],
  329. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  330. +
  331. # When config.status generates a header, we must update the stamp-h file.
  332. # This file resides in the same directory as the config header
  333. @@ -539,7 +579,7 @@
  334. done
  335. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  336. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  337. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  338. #
  339. # This file is free software; the Free Software Foundation
  340. # gives unlimited permission to copy and/or distribute it,
  341. @@ -550,7 +590,14 @@
  342. # Define $install_sh.
  343. AC_DEFUN([AM_PROG_INSTALL_SH],
  344. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  345. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  346. +if test x"${install_sh}" != xset; then
  347. + case $am_aux_dir in
  348. + *\ * | *\ *)
  349. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  350. + *)
  351. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  352. + esac
  353. +fi
  354. AC_SUBST(install_sh)])
  355. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  356. @@ -577,27 +624,38 @@
  357. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  358. # From Jim Meyering
  359. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  360. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  361. # Free Software Foundation, Inc.
  362. #
  363. # This file is free software; the Free Software Foundation
  364. # gives unlimited permission to copy and/or distribute it,
  365. # with or without modifications, as long as this notice is preserved.
  366. -# serial 4
  367. +# serial 5
  368. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  369. +# ----------------------------------
  370. +# Control maintainer-specific portions of Makefiles.
  371. +# Default is to disable them, unless `enable' is passed literally.
  372. +# For symmetry, `disable' may be passed as well. Anyway, the user
  373. +# can override the default with the --enable/--disable switch.
  374. AC_DEFUN([AM_MAINTAINER_MODE],
  375. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  376. - dnl maintainer-mode is disabled by default
  377. - AC_ARG_ENABLE(maintainer-mode,
  378. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  379. +[m4_case(m4_default([$1], [disable]),
  380. + [enable], [m4_define([am_maintainer_other], [disable])],
  381. + [disable], [m4_define([am_maintainer_other], [enable])],
  382. + [m4_define([am_maintainer_other], [enable])
  383. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  384. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  385. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  386. + AC_ARG_ENABLE([maintainer-mode],
  387. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  388. (and sometimes confusing) to the casual installer],
  389. - USE_MAINTAINER_MODE=$enableval,
  390. - USE_MAINTAINER_MODE=no)
  391. + [USE_MAINTAINER_MODE=$enableval],
  392. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  393. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  394. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  395. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  396. MAINT=$MAINTAINER_MODE_TRUE
  397. - AC_SUBST(MAINT)dnl
  398. + AC_SUBST([MAINT])dnl
  399. ]
  400. )
  401. @@ -605,13 +663,13 @@
  402. # Check to see how 'make' treats includes. -*- Autoconf -*-
  403. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  404. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  405. #
  406. # This file is free software; the Free Software Foundation
  407. # gives unlimited permission to copy and/or distribute it,
  408. # with or without modifications, as long as this notice is preserved.
  409. -# serial 3
  410. +# serial 4
  411. # AM_MAKE_INCLUDE()
  412. # -----------------
  413. @@ -620,7 +678,7 @@
  414. [am_make=${MAKE-make}
  415. cat > confinc << 'END'
  416. am__doit:
  417. - @echo done
  418. + @echo this is the am__doit target
  419. .PHONY: am__doit
  420. END
  421. # If we don't find an include directive, just comment out the code.
  422. @@ -630,24 +688,24 @@
  423. _am_result=none
  424. # First try GNU make style include.
  425. echo "include confinc" > confmf
  426. -# We grep out `Entering directory' and `Leaving directory'
  427. -# messages which can occur if `w' ends up in MAKEFLAGS.
  428. -# In particular we don't look at `^make:' because GNU make might
  429. -# be invoked under some other name (usually "gmake"), in which
  430. -# case it prints its new name instead of `make'.
  431. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  432. - am__include=include
  433. - am__quote=
  434. - _am_result=GNU
  435. -fi
  436. +# Ignore all kinds of additional output from `make'.
  437. +case `$am_make -s -f confmf 2> /dev/null` in #(
  438. +*the\ am__doit\ target*)
  439. + am__include=include
  440. + am__quote=
  441. + _am_result=GNU
  442. + ;;
  443. +esac
  444. # Now try BSD make style include.
  445. if test "$am__include" = "#"; then
  446. echo '.include "confinc"' > confmf
  447. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  448. - am__include=.include
  449. - am__quote="\""
  450. - _am_result=BSD
  451. - fi
  452. + case `$am_make -s -f confmf 2> /dev/null` in #(
  453. + *the\ am__doit\ target*)
  454. + am__include=.include
  455. + am__quote="\""
  456. + _am_result=BSD
  457. + ;;
  458. + esac
  459. fi
  460. AC_SUBST([am__include])
  461. AC_SUBST([am__quote])
  462. @@ -692,14 +750,14 @@
  463. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  464. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  465. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  466. # Free Software Foundation, Inc.
  467. #
  468. # This file is free software; the Free Software Foundation
  469. # gives unlimited permission to copy and/or distribute it,
  470. # with or without modifications, as long as this notice is preserved.
  471. -# serial 5
  472. +# serial 6
  473. # AM_MISSING_PROG(NAME, PROGRAM)
  474. # ------------------------------
  475. @@ -716,7 +774,14 @@
  476. AC_DEFUN([AM_MISSING_HAS_RUN],
  477. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  478. AC_REQUIRE_AUX_FILE([missing])dnl
  479. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  480. +if test x"${MISSING+set}" != xset; then
  481. + case $am_aux_dir in
  482. + *\ * | *\ *)
  483. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  484. + *)
  485. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  486. + esac
  487. +fi
  488. # Use eval to expand $SHELL
  489. if eval "$MISSING --run true"; then
  490. am_missing_run="$MISSING --run "
  491. @@ -787,14 +852,14 @@
  492. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  493. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  494. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  495. # Free Software Foundation, Inc.
  496. #
  497. # This file is free software; the Free Software Foundation
  498. # gives unlimited permission to copy and/or distribute it,
  499. # with or without modifications, as long as this notice is preserved.
  500. -# serial 4
  501. +# serial 5
  502. # AM_SANITY_CHECK
  503. # ---------------
  504. @@ -803,16 +868,29 @@
  505. # Just in case
  506. sleep 1
  507. echo timestamp > conftest.file
  508. +# Reject unsafe characters in $srcdir or the absolute working directory
  509. +# name. Accept space and tab only in the latter.
  510. +am_lf='
  511. +'
  512. +case `pwd` in
  513. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  514. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  515. +esac
  516. +case $srcdir in
  517. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  518. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  519. +esac
  520. +
  521. # Do `set' in a subshell so we don't clobber the current shell's
  522. # arguments. Must try -L first in case configure is actually a
  523. # symlink; some systems play weird games with the mod time of symlinks
  524. # (eg FreeBSD returns the mod time of the symlink's containing
  525. # directory).
  526. if (
  527. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  528. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  529. if test "$[*]" = "X"; then
  530. # -L didn't work.
  531. - set X `ls -t $srcdir/configure conftest.file`
  532. + set X `ls -t "$srcdir/configure" conftest.file`
  533. fi
  534. rm -f conftest.file
  535. if test "$[*]" != "X $srcdir/configure conftest.file" \
  536. @@ -865,18 +943,25 @@
  537. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  538. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  539. -# Copyright (C) 2006 Free Software Foundation, Inc.
  540. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  541. #
  542. # This file is free software; the Free Software Foundation
  543. # gives unlimited permission to copy and/or distribute it,
  544. # with or without modifications, as long as this notice is preserved.
  545. +# serial 2
  546. +
  547. # _AM_SUBST_NOTMAKE(VARIABLE)
  548. # ---------------------------
  549. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  550. # This macro is traced by Automake.
  551. AC_DEFUN([_AM_SUBST_NOTMAKE])
  552. +# AM_SUBST_NOTMAKE(VARIABLE)
  553. +# ---------------------------
  554. +# Public sister of _AM_SUBST_NOTMAKE.
  555. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  556. +
  557. # Check how to create a tarball. -*- Autoconf -*-
  558. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  559. @@ -974,6 +1059,10 @@
  560. ]) # _AM_PROG_TAR
  561. m4_include([m4/libtool.m4])
  562. +m4_include([m4/ltoptions.m4])
  563. +m4_include([m4/ltsugar.m4])
  564. +m4_include([m4/ltversion.m4])
  565. +m4_include([m4/lt~obsolete.m4])
  566. m4_include([m4/noexecstack.m4])
  567. m4_include([m4/onceonly.m4])
  568. m4_include([m4/socklen.m4])
  569. diff -Nur libgcrypt-1.4.5.orig/cipher/Makefile.in libgcrypt-1.4.5/cipher/Makefile.in
  570. --- libgcrypt-1.4.5.orig/cipher/Makefile.in 2009-12-11 16:43:29.000000000 +0100
  571. +++ libgcrypt-1.4.5/cipher/Makefile.in 2011-02-16 16:00:45.154802526 +0100
  572. @@ -1,8 +1,9 @@
  573. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  574. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  575. # @configure_input@
  576. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  577. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  578. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  579. +# Inc.
  580. # This Makefile.in is free software; the Free Software Foundation
  581. # gives unlimited permission to copy and/or distribute it,
  582. # with or without modifications, as long as this notice is preserved.
  583. @@ -37,8 +38,9 @@
  584. VPATH = @srcdir@
  585. pkgdatadir = $(datadir)/@PACKAGE@
  586. -pkglibdir = $(libdir)/@PACKAGE@
  587. pkgincludedir = $(includedir)/@PACKAGE@
  588. +pkglibdir = $(libdir)/@PACKAGE@
  589. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  590. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  591. install_sh_DATA = $(install_sh) -c -m 644
  592. install_sh_PROGRAM = $(install_sh) -c
  593. @@ -57,6 +59,8 @@
  594. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog
  595. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  596. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  597. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  598. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  599. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  600. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  601. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  602. @@ -65,6 +69,7 @@
  603. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  604. CONFIG_HEADER = $(top_builddir)/config.h
  605. CONFIG_CLEAN_FILES =
  606. +CONFIG_CLEAN_VPATH_FILES =
  607. LTLIBRARIES = $(noinst_LTLIBRARIES)
  608. am__DEPENDENCIES_1 =
  609. am_libcipher_la_OBJECTS = cipher.lo pubkey.lo ac.lo md.lo \
  610. @@ -73,6 +78,7 @@
  611. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  612. depcomp = $(SHELL) $(top_srcdir)/depcomp
  613. am__depfiles_maybe = depfiles
  614. +am__mv = mv -f
  615. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  616. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  617. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  618. @@ -106,24 +112,20 @@
  619. CFLAGS = @CFLAGS@
  620. CPP = @CPP@
  621. CPPFLAGS = @CPPFLAGS@
  622. -CXX = @CXX@
  623. -CXXCPP = @CXXCPP@
  624. -CXXDEPMODE = @CXXDEPMODE@
  625. -CXXFLAGS = @CXXFLAGS@
  626. CYGPATH_W = @CYGPATH_W@
  627. DEFS = @DEFS@
  628. DEPDIR = @DEPDIR@
  629. DLLTOOL = @DLLTOOL@
  630. DL_LIBS = @DL_LIBS@
  631. -ECHO = @ECHO@
  632. +DSYMUTIL = @DSYMUTIL@
  633. +DUMPBIN = @DUMPBIN@
  634. ECHO_C = @ECHO_C@
  635. ECHO_N = @ECHO_N@
  636. ECHO_T = @ECHO_T@
  637. EGREP = @EGREP@
  638. EXEEXT = @EXEEXT@
  639. -F77 = @F77@
  640. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  641. -FFLAGS = @FFLAGS@
  642. +FGREP = @FGREP@
  643. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  644. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  645. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  646. @@ -137,6 +139,7 @@
  647. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  648. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  649. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  650. +LD = @LD@
  651. LDFLAGS = @LDFLAGS@
  652. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  653. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  654. @@ -151,15 +154,20 @@
  655. LIBOBJS = @LIBOBJS@
  656. LIBS = @LIBS@
  657. LIBTOOL = @LIBTOOL@
  658. +LIPO = @LIPO@
  659. LN_S = @LN_S@
  660. LTLIBOBJS = @LTLIBOBJS@
  661. MAINT = @MAINT@
  662. MAKEINFO = @MAKEINFO@
  663. MKDIR_P = @MKDIR_P@
  664. MPI_SFLAGS = @MPI_SFLAGS@
  665. +NM = @NM@
  666. +NMEDIT = @NMEDIT@
  667. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  668. OBJDUMP = @OBJDUMP@
  669. OBJEXT = @OBJEXT@
  670. +OTOOL = @OTOOL@
  671. +OTOOL64 = @OTOOL64@
  672. PACKAGE = @PACKAGE@
  673. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  674. PACKAGE_NAME = @PACKAGE_NAME@
  675. @@ -172,7 +180,7 @@
  676. PTH_CONFIG = @PTH_CONFIG@
  677. PTH_LIBS = @PTH_LIBS@
  678. RANLIB = @RANLIB@
  679. -RC = @RC@
  680. +SED = @SED@
  681. SET_MAKE = @SET_MAKE@
  682. SHELL = @SHELL@
  683. STRIP = @STRIP@
  684. @@ -183,8 +191,7 @@
  685. abs_top_builddir = @abs_top_builddir@
  686. abs_top_srcdir = @abs_top_srcdir@
  687. ac_ct_CC = @ac_ct_CC@
  688. -ac_ct_CXX = @ac_ct_CXX@
  689. -ac_ct_F77 = @ac_ct_F77@
  690. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  691. am__include = @am__include@
  692. am__leading_dot = @am__leading_dot@
  693. am__quote = @am__quote@
  694. @@ -215,6 +222,7 @@
  695. libexecdir = @libexecdir@
  696. localedir = @localedir@
  697. localstatedir = @localstatedir@
  698. +lt_ECHO = @lt_ECHO@
  699. mandir = @mandir@
  700. mkdir_p = @mkdir_p@
  701. oldincludedir = @oldincludedir@
  702. @@ -288,9 +296,9 @@
  703. exit 1;; \
  704. esac; \
  705. done; \
  706. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu cipher/Makefile'; \
  707. - cd $(top_srcdir) && \
  708. - $(AUTOMAKE) --gnu cipher/Makefile
  709. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu cipher/Makefile'; \
  710. + $(am__cd) $(top_srcdir) && \
  711. + $(AUTOMAKE) --gnu cipher/Makefile
  712. .PRECIOUS: Makefile
  713. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  714. @case '$?' in \
  715. @@ -308,6 +316,7 @@
  716. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  717. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  718. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  719. +$(am__aclocal_m4_deps):
  720. clean-noinstLTLIBRARIES:
  721. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  722. @@ -360,21 +369,21 @@
  723. .c.o:
  724. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  725. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  726. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  727. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  728. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  729. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  730. .c.obj:
  731. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  732. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  733. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  734. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  735. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  736. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  737. .c.lo:
  738. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  739. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  740. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  741. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  742. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  743. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  744. @@ -397,7 +406,7 @@
  745. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  746. $(TAGS_FILES) $(LISP)
  747. - tags=; \
  748. + set x; \
  749. here=`pwd`; \
  750. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  751. unique=`for i in $$list; do \
  752. @@ -405,29 +414,34 @@
  753. done | \
  754. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  755. END { if (nonempty) { for (i in files) print i; }; }'`; \
  756. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  757. + shift; \
  758. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  759. test -n "$$unique" || unique=$$empty_fix; \
  760. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  761. - $$tags $$unique; \
  762. + if test $$# -gt 0; then \
  763. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  764. + "$$@" $$unique; \
  765. + else \
  766. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  767. + $$unique; \
  768. + fi; \
  769. fi
  770. ctags: CTAGS
  771. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  772. $(TAGS_FILES) $(LISP)
  773. - tags=; \
  774. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  775. unique=`for i in $$list; do \
  776. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  777. done | \
  778. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  779. END { if (nonempty) { for (i in files) print i; }; }'`; \
  780. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  781. + test -z "$(CTAGS_ARGS)$$unique" \
  782. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  783. - $$tags $$unique
  784. + $$unique
  785. GTAGS:
  786. here=`$(am__cd) $(top_builddir) && pwd` \
  787. - && cd $(top_srcdir) \
  788. - && gtags -i $(GTAGS_ARGS) $$here
  789. + && $(am__cd) $(top_srcdir) \
  790. + && gtags -i $(GTAGS_ARGS) "$$here"
  791. distclean-tags:
  792. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  793. @@ -448,13 +462,17 @@
  794. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  795. if test -d $$d/$$file; then \
  796. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  797. + if test -d "$(distdir)/$$file"; then \
  798. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  799. + fi; \
  800. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  801. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  802. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  803. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  804. fi; \
  805. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  806. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  807. else \
  808. - test -f $(distdir)/$$file \
  809. - || cp -p $$d/$$file $(distdir)/$$file \
  810. + test -f "$(distdir)/$$file" \
  811. + || cp -p $$d/$$file "$(distdir)/$$file" \
  812. || exit 1; \
  813. fi; \
  814. done
  815. @@ -482,6 +500,7 @@
  816. distclean-generic:
  817. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  818. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  819. maintainer-clean-generic:
  820. @echo "This command is intended for maintainers to use"
  821. @@ -503,6 +522,8 @@
  822. html: html-am
  823. +html-am:
  824. +
  825. info: info-am
  826. info-am:
  827. @@ -511,18 +532,28 @@
  828. install-dvi: install-dvi-am
  829. +install-dvi-am:
  830. +
  831. install-exec-am:
  832. install-html: install-html-am
  833. +install-html-am:
  834. +
  835. install-info: install-info-am
  836. +install-info-am:
  837. +
  838. install-man:
  839. install-pdf: install-pdf-am
  840. +install-pdf-am:
  841. +
  842. install-ps: install-ps-am
  843. +install-ps-am:
  844. +
  845. installcheck-am:
  846. maintainer-clean: maintainer-clean-am
  847. @@ -567,6 +598,7 @@
  848. tiger.lo: $(srcdir)/tiger.c
  849. `echo $(LTCOMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) `
  850. +
  851. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  852. # Otherwise a system limit (for SysV at least) may be exceeded.
  853. .NOEXPORT:
  854. diff -Nur libgcrypt-1.4.5.orig/compile libgcrypt-1.4.5/compile
  855. --- libgcrypt-1.4.5.orig/compile 2009-04-02 11:25:34.000000000 +0200
  856. +++ libgcrypt-1.4.5/compile 2011-02-16 16:00:44.873563340 +0100
  857. @@ -1,9 +1,10 @@
  858. #! /bin/sh
  859. # Wrapper for compilers which do not understand `-c -o'.
  860. -scriptversion=2005-05-14.22
  861. +scriptversion=2009-10-06.20; # UTC
  862. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  863. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
  864. +# Foundation, Inc.
  865. # Written by Tom Tromey <tromey@cygnus.com>.
  866. #
  867. # This program is free software; you can redistribute it and/or modify
  868. @@ -17,8 +18,7 @@
  869. # GNU General Public License for more details.
  870. #
  871. # You should have received a copy of the GNU General Public License
  872. -# along with this program; if not, write to the Free Software
  873. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  874. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  875. # As a special exception to the GNU General Public License, if you
  876. # distribute this file as part of a program that contains a
  877. @@ -103,13 +103,13 @@
  878. fi
  879. # Name of file we expect compiler to create.
  880. -cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
  881. +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
  882. # Create the lock directory.
  883. -# Note: use `[/.-]' here to ensure that we don't use the same name
  884. +# Note: use `[/\\:.-]' here to ensure that we don't use the same name
  885. # that we are using for the .o file. Also, base the name on the expected
  886. # object file name, since that is what matters with a parallel build.
  887. -lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
  888. +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
  889. while true; do
  890. if mkdir "$lockdir" >/dev/null 2>&1; then
  891. break
  892. @@ -124,9 +124,9 @@
  893. ret=$?
  894. if test -f "$cofile"; then
  895. - mv "$cofile" "$ofile"
  896. + test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
  897. elif test -f "${cofile}bj"; then
  898. - mv "${cofile}bj" "$ofile"
  899. + test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
  900. fi
  901. rmdir "$lockdir"
  902. @@ -138,5 +138,6 @@
  903. # eval: (add-hook 'write-file-hooks 'time-stamp)
  904. # time-stamp-start: "scriptversion="
  905. # time-stamp-format: "%:y-%02m-%02d.%02H"
  906. -# time-stamp-end: "$"
  907. +# time-stamp-time-zone: "UTC"
  908. +# time-stamp-end: "; # UTC"
  909. # End:
  910. diff -Nur libgcrypt-1.4.5.orig/config.guess libgcrypt-1.4.5/config.guess
  911. --- libgcrypt-1.4.5.orig/config.guess 2009-04-02 11:25:34.000000000 +0200
  912. +++ libgcrypt-1.4.5/config.guess 2011-02-16 16:00:44.883554746 +0100
  913. @@ -1,10 +1,10 @@
  914. #! /bin/sh
  915. # Attempt to guess a canonical system name.
  916. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  917. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  918. -# Inc.
  919. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  920. +# Free Software Foundation, Inc.
  921. -timestamp='2007-11-19'
  922. +timestamp='2009-06-10'
  923. # This file is free software; you can redistribute it and/or modify it
  924. # under the terms of the GNU General Public License as published by
  925. @@ -56,8 +56,8 @@
  926. GNU config.guess ($timestamp)
  927. Originally written by Per Bothner.
  928. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  929. -Free Software Foundation, Inc.
  930. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  931. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  932. This is free software; see the source for copying conditions. There is NO
  933. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  934. @@ -170,7 +170,7 @@
  935. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  936. eval $set_cc_for_build
  937. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  938. - | grep __ELF__ >/dev/null
  939. + | grep -q __ELF__
  940. then
  941. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  942. # Return netbsd for either. FIX?
  943. @@ -324,6 +324,9 @@
  944. case `/usr/bin/uname -p` in
  945. sparc) echo sparc-icl-nx7; exit ;;
  946. esac ;;
  947. + s390x:SunOS:*:*)
  948. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  949. + exit ;;
  950. sun4H:SunOS:5.*:*)
  951. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  952. exit ;;
  953. @@ -331,7 +334,20 @@
  954. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  955. exit ;;
  956. i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  957. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  958. + eval $set_cc_for_build
  959. + SUN_ARCH="i386"
  960. + # If there is a compiler, see if it is configured for 64-bit objects.
  961. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  962. + # This test works for both compilers.
  963. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  964. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  965. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  966. + grep IS_64BIT_ARCH >/dev/null
  967. + then
  968. + SUN_ARCH="x86_64"
  969. + fi
  970. + fi
  971. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  972. exit ;;
  973. sun4*:SunOS:6*:*)
  974. # According to config.sub, this is the proper way to canonicalize
  975. @@ -532,7 +548,7 @@
  976. echo rs6000-ibm-aix3.2
  977. fi
  978. exit ;;
  979. - *:AIX:*:[45])
  980. + *:AIX:*:[456])
  981. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  982. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  983. IBM_ARCH=rs6000
  984. @@ -640,7 +656,7 @@
  985. # => hppa64-hp-hpux11.23
  986. if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  987. - grep __LP64__ >/dev/null
  988. + grep -q __LP64__
  989. then
  990. HP_ARCH="hppa2.0w"
  991. else
  992. @@ -796,13 +812,19 @@
  993. x86)
  994. echo i586-pc-interix${UNAME_RELEASE}
  995. exit ;;
  996. - EM64T | authenticamd)
  997. + EM64T | authenticamd | genuineintel)
  998. echo x86_64-unknown-interix${UNAME_RELEASE}
  999. exit ;;
  1000. + IA64)
  1001. + echo ia64-unknown-interix${UNAME_RELEASE}
  1002. + exit ;;
  1003. esac ;;
  1004. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  1005. echo i${UNAME_MACHINE}-pc-mks
  1006. exit ;;
  1007. + 8664:Windows_NT:*)
  1008. + echo x86_64-pc-mks
  1009. + exit ;;
  1010. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  1011. # How do we know it's Interix rather than the generic POSIX subsystem?
  1012. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  1013. @@ -833,7 +855,14 @@
  1014. echo ${UNAME_MACHINE}-pc-minix
  1015. exit ;;
  1016. arm*:Linux:*:*)
  1017. - echo ${UNAME_MACHINE}-unknown-linux-gnu
  1018. + eval $set_cc_for_build
  1019. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  1020. + | grep -q __ARM_EABI__
  1021. + then
  1022. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  1023. + else
  1024. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  1025. + fi
  1026. exit ;;
  1027. avr32*:Linux:*:*)
  1028. echo ${UNAME_MACHINE}-unknown-linux-gnu
  1029. @@ -856,40 +885,17 @@
  1030. m68*:Linux:*:*)
  1031. echo ${UNAME_MACHINE}-unknown-linux-gnu
  1032. exit ;;
  1033. - mips:Linux:*:*)
  1034. + mips:Linux:*:* | mips64:Linux:*:*)
  1035. eval $set_cc_for_build
  1036. sed 's/^ //' << EOF >$dummy.c
  1037. #undef CPU
  1038. - #undef mips
  1039. - #undef mipsel
  1040. + #undef ${UNAME_MACHINE}
  1041. + #undef ${UNAME_MACHINE}el
  1042. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  1043. - CPU=mipsel
  1044. + CPU=${UNAME_MACHINE}el
  1045. #else
  1046. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  1047. - CPU=mips
  1048. - #else
  1049. - CPU=
  1050. - #endif
  1051. - #endif
  1052. -EOF
  1053. - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  1054. - /^CPU/{
  1055. - s: ::g
  1056. - p
  1057. - }'`"
  1058. - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  1059. - ;;
  1060. - mips64:Linux:*:*)
  1061. - eval $set_cc_for_build
  1062. - sed 's/^ //' << EOF >$dummy.c
  1063. - #undef CPU
  1064. - #undef mips64
  1065. - #undef mips64el
  1066. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  1067. - CPU=mips64el
  1068. - #else
  1069. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  1070. - CPU=mips64
  1071. + CPU=${UNAME_MACHINE}
  1072. #else
  1073. CPU=
  1074. #endif
  1075. @@ -921,10 +927,13 @@
  1076. EV67) UNAME_MACHINE=alphaev67 ;;
  1077. EV68*) UNAME_MACHINE=alphaev68 ;;
  1078. esac
  1079. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  1080. + objdump --private-headers /bin/sh | grep -q ld.so.1
  1081. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  1082. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  1083. exit ;;
  1084. + padre:Linux:*:*)
  1085. + echo sparc-unknown-linux-gnu
  1086. + exit ;;
  1087. parisc:Linux:*:* | hppa:Linux:*:*)
  1088. # Look for CPU level
  1089. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  1090. @@ -972,17 +981,6 @@
  1091. elf32-i386)
  1092. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  1093. ;;
  1094. - a.out-i386-linux)
  1095. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  1096. - exit ;;
  1097. - coff-i386)
  1098. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  1099. - exit ;;
  1100. - "")
  1101. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  1102. - # one that does not give us useful --help.
  1103. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  1104. - exit ;;
  1105. esac
  1106. # Determine whether the default compiler is a.out or elf
  1107. eval $set_cc_for_build
  1108. @@ -1048,7 +1046,7 @@
  1109. i*86:syllable:*:*)
  1110. echo ${UNAME_MACHINE}-pc-syllable
  1111. exit ;;
  1112. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  1113. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  1114. echo i386-unknown-lynxos${UNAME_RELEASE}
  1115. exit ;;
  1116. i*86:*DOS:*:*)
  1117. @@ -1092,8 +1090,11 @@
  1118. pc:*:*:*)
  1119. # Left here for compatibility:
  1120. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  1121. - # the processor, so we play safe by assuming i386.
  1122. - echo i386-pc-msdosdjgpp
  1123. + # the processor, so we play safe by assuming i586.
  1124. + # Note: whatever this is, it MUST be the same as what config.sub
  1125. + # prints for the "djgpp" host, or else GDB configury will decide that
  1126. + # this is a cross-build.
  1127. + echo i586-pc-msdosdjgpp
  1128. exit ;;
  1129. Intel:Mach:3*:*)
  1130. echo i386-pc-mach3
  1131. @@ -1131,6 +1132,16 @@
  1132. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  1133. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1134. && { echo i486-ncr-sysv4; exit; } ;;
  1135. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  1136. + OS_REL='.3'
  1137. + test -r /etc/.relid \
  1138. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  1139. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  1140. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  1141. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  1142. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  1143. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  1144. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  1145. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  1146. echo m68k-unknown-lynxos${UNAME_RELEASE}
  1147. exit ;;
  1148. @@ -1143,7 +1154,7 @@
  1149. rs6000:LynxOS:2.*:*)
  1150. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  1151. exit ;;
  1152. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  1153. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  1154. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  1155. exit ;;
  1156. SM[BE]S:UNIX_SV:*:*)
  1157. @@ -1206,6 +1217,9 @@
  1158. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  1159. echo i586-pc-beos
  1160. exit ;;
  1161. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  1162. + echo i586-pc-haiku
  1163. + exit ;;
  1164. SX-4:SUPER-UX:*:*)
  1165. echo sx4-nec-superux${UNAME_RELEASE}
  1166. exit ;;
  1167. @@ -1314,6 +1328,9 @@
  1168. i*86:rdos:*:*)
  1169. echo ${UNAME_MACHINE}-pc-rdos
  1170. exit ;;
  1171. + i*86:AROS:*:*)
  1172. + echo ${UNAME_MACHINE}-pc-aros
  1173. + exit ;;
  1174. esac
  1175. #echo '(No uname command or uname output not recognized.)' 1>&2
  1176. @@ -1474,9 +1491,9 @@
  1177. the operating system you are using. It is advised that you
  1178. download the most up to date version of the config scripts from
  1179. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  1180. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  1181. and
  1182. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  1183. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  1184. If the version you run ($0) is already up to date, please
  1185. send the following data and any information you think might be
  1186. diff -Nur libgcrypt-1.4.5.orig/config.h.in libgcrypt-1.4.5/config.h.in
  1187. --- libgcrypt-1.4.5.orig/config.h.in 2009-12-11 16:43:52.000000000 +0100
  1188. +++ libgcrypt-1.4.5/config.h.in 2011-02-16 16:00:44.000000000 +0100
  1189. @@ -209,6 +209,10 @@
  1190. /* List of available public key cipher algorithms */
  1191. #undef LIBGCRYPT_PUBKEY_CIPHERS
  1192. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  1193. + */
  1194. +#undef LT_OBJDIR
  1195. +
  1196. /* Define to use the (obsolete) malloc guarding feature */
  1197. #undef M_GUARD
  1198. diff -Nur libgcrypt-1.4.5.orig/config.h.in~ libgcrypt-1.4.5/config.h.in~
  1199. --- libgcrypt-1.4.5.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  1200. +++ libgcrypt-1.4.5/config.h.in~ 2009-12-11 16:43:52.000000000 +0100
  1201. @@ -0,0 +1,428 @@
  1202. +/* config.h.in. Generated from configure.ac by autoheader. */
  1203. +
  1204. +
  1205. +#ifndef _GCRYPT_CONFIG_H_INCLUDED
  1206. +#define _GCRYPT_CONFIG_H_INCLUDED
  1207. +/* need this, because some autoconf tests rely on this (e.g. stpcpy)
  1208. + * and it should be used for new programs */
  1209. +#define _GNU_SOURCE 1
  1210. +
  1211. +
  1212. +/* Define if building universal (internal helper macro) */
  1213. +#undef AC_APPLE_UNIVERSAL_BUILD
  1214. +
  1215. +/* Subversion revision used to build this package */
  1216. +#undef BUILD_REVISION
  1217. +
  1218. +/* configure did not test for endianess */
  1219. +#undef DISABLED_ENDIAN_CHECK
  1220. +
  1221. +/* Define if you don't want the default EGD socket name. For details see
  1222. + cipher/rndegd.c */
  1223. +#undef EGD_SOCKET_NAME
  1224. +
  1225. +/* Define to support an HMAC based integrity check */
  1226. +#undef ENABLE_HMAC_BINARY_CHECK
  1227. +
  1228. +/* Enable support for the PadLock engine. */
  1229. +#undef ENABLE_PADLOCK_SUPPORT
  1230. +
  1231. +/* Define to use the GNU C visibility attribute. */
  1232. +#undef GCRY_USE_VISIBILITY
  1233. +
  1234. +/* The default error source for libgcrypt. */
  1235. +#undef GPG_ERR_SOURCE_DEFAULT
  1236. +
  1237. +/* Define to 1 if you have the `atexit' function. */
  1238. +#undef HAVE_ATEXIT
  1239. +
  1240. +/* Defined if the mlock() call does not work */
  1241. +#undef HAVE_BROKEN_MLOCK
  1242. +
  1243. +/* Defined if a `byte' is typedef'd */
  1244. +#undef HAVE_BYTE_TYPEDEF
  1245. +
  1246. +/* Define to 1 if you have the `clock_gettime' function. */
  1247. +#undef HAVE_CLOCK_GETTIME
  1248. +
  1249. +/* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
  1250. + don't. */
  1251. +#undef HAVE_DECL_SYS_SIGLIST
  1252. +
  1253. +/* defined if the system supports a random device */
  1254. +#undef HAVE_DEV_RANDOM
  1255. +
  1256. +/* Define to 1 if you have the <dlfcn.h> header file. */
  1257. +#undef HAVE_DLFCN_H
  1258. +
  1259. +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
  1260. +#undef HAVE_DOPRNT
  1261. +
  1262. +/* defined if we run on some of the PCDOS like systems (DOS, Windoze. OS/2)
  1263. + with special properties like no file modes */
  1264. +#undef HAVE_DOSISH_SYSTEM
  1265. +
  1266. +/* defined if we must run on a stupid file system */
  1267. +#undef HAVE_DRIVE_LETTERS
  1268. +
  1269. +/* Define to 1 if you have the `fcntl' function. */
  1270. +#undef HAVE_FCNTL
  1271. +
  1272. +/* Define to 1 if you have the `ftruncate' function. */
  1273. +#undef HAVE_FTRUNCATE
  1274. +
  1275. +/* Define to 1 if you have the `gethrtime' function. */
  1276. +#undef HAVE_GETHRTIME
  1277. +
  1278. +/* Define to 1 if you have the `getpagesize' function. */
  1279. +#undef HAVE_GETPAGESIZE
  1280. +
  1281. +/* Define to 1 if you have the `getrusage' function. */
  1282. +#undef HAVE_GETRUSAGE
  1283. +
  1284. +/* Define to 1 if you have the `gettimeofday' function. */
  1285. +#undef HAVE_GETTIMEOFDAY
  1286. +
  1287. +/* Define to 1 if you have the <inttypes.h> header file. */
  1288. +#undef HAVE_INTTYPES_H
  1289. +
  1290. +/* Define to 1 if you have the `rt' library (-lrt). */
  1291. +#undef HAVE_LIBRT
  1292. +
  1293. +/* Define to 1 if you have the `memmove' function. */
  1294. +#undef HAVE_MEMMOVE
  1295. +
  1296. +/* Define to 1 if you have the <memory.h> header file. */
  1297. +#undef HAVE_MEMORY_H
  1298. +
  1299. +/* Defined if the system supports an mlock() call */
  1300. +#undef HAVE_MLOCK
  1301. +
  1302. +/* Define to 1 if you have the `mmap' function. */
  1303. +#undef HAVE_MMAP
  1304. +
  1305. +/* Defined if the GNU Pth is available */
  1306. +#undef HAVE_PTH
  1307. +
  1308. +/* Define to 1 if you have the `raise' function. */
  1309. +#undef HAVE_RAISE
  1310. +
  1311. +/* Define to 1 if you have the `rand' function. */
  1312. +#undef HAVE_RAND
  1313. +
  1314. +/* Define to 1 if you have the <stdint.h> header file. */
  1315. +#undef HAVE_STDINT_H
  1316. +
  1317. +/* Define to 1 if you have the <stdlib.h> header file. */
  1318. +#undef HAVE_STDLIB_H
  1319. +
  1320. +/* Define to 1 if you have the `stpcpy' function. */
  1321. +#undef HAVE_STPCPY
  1322. +
  1323. +/* Define to 1 if you have the `strcasecmp' function. */
  1324. +#undef HAVE_STRCASECMP
  1325. +
  1326. +/* Define to 1 if you have the `strerror' function. */
  1327. +#undef HAVE_STRERROR
  1328. +
  1329. +/* Define to 1 if you have the `stricmp' function. */
  1330. +#undef HAVE_STRICMP
  1331. +
  1332. +/* Define to 1 if you have the <strings.h> header file. */
  1333. +#undef HAVE_STRINGS_H
  1334. +
  1335. +/* Define to 1 if you have the <string.h> header file. */
  1336. +#undef HAVE_STRING_H
  1337. +
  1338. +/* Define to 1 if you have the `strtoul' function. */
  1339. +#undef HAVE_STRTOUL
  1340. +
  1341. +/* Define to 1 if you have the `sysconf' function. */
  1342. +#undef HAVE_SYSCONF
  1343. +
  1344. +/* Define to 1 if you have the `syslog' function. */
  1345. +#undef HAVE_SYSLOG
  1346. +
  1347. +/* Define to 1 if you have the <sys/capability.h> header file. */
  1348. +#undef HAVE_SYS_CAPABILITY_H
  1349. +
  1350. +/* Define to 1 if you have the <sys/mman.h> header file. */
  1351. +#undef HAVE_SYS_MMAN_H
  1352. +
  1353. +/* Define to 1 if you have the <sys/select.h> header file. */
  1354. +#undef HAVE_SYS_SELECT_H
  1355. +
  1356. +/* Define to 1 if you have the <sys/socket.h> header file. */
  1357. +#undef HAVE_SYS_SOCKET_H
  1358. +
  1359. +/* Define to 1 if you have the <sys/stat.h> header file. */
  1360. +#undef HAVE_SYS_STAT_H
  1361. +
  1362. +/* Define to 1 if you have the <sys/types.h> header file. */
  1363. +#undef HAVE_SYS_TYPES_H
  1364. +
  1365. +/* Defined if a `u16' is typedef'd */
  1366. +#undef HAVE_U16_TYPEDEF
  1367. +
  1368. +/* Defined if a `u32' is typedef'd */
  1369. +#undef HAVE_U32_TYPEDEF
  1370. +
  1371. +/* Define to 1 if the system has the type `uintptr_t'. */
  1372. +#undef HAVE_UINTPTR_T
  1373. +
  1374. +/* Defined if a `ulong' is typedef'd */
  1375. +#undef HAVE_ULONG_TYPEDEF
  1376. +
  1377. +/* Define to 1 if you have the <unistd.h> header file. */
  1378. +#undef HAVE_UNISTD_H
  1379. +
  1380. +/* Defined if a `ushort' is typedef'd */
  1381. +#undef HAVE_USHORT_TYPEDEF
  1382. +
  1383. +/* Define to 1 if you have the `vprintf' function. */
  1384. +#undef HAVE_VPRINTF
  1385. +
  1386. +/* Defined if we run on a W32 API based system */
  1387. +#undef HAVE_W32_SYSTEM
  1388. +
  1389. +/* Define to 1 if you have the `wait4' function. */
  1390. +#undef HAVE_WAIT4
  1391. +
  1392. +/* Define to 1 if you have the `waitpid' function. */
  1393. +#undef HAVE_WAITPID
  1394. +
  1395. +/* Define to 1 if you have the <winsock2.h> header file. */
  1396. +#undef HAVE_WINSOCK2_H
  1397. +
  1398. +/* Define to 1 if you have the <ws2tcpip.h> header file. */
  1399. +#undef HAVE_WS2TCPIP_H
  1400. +
  1401. +/* Defined if this is not a regular release */
  1402. +#undef IS_DEVELOPMENT_VERSION
  1403. +
  1404. +/* List of available cipher algorithms */
  1405. +#undef LIBGCRYPT_CIPHERS
  1406. +
  1407. +/* List of available digest algorithms */
  1408. +#undef LIBGCRYPT_DIGESTS
  1409. +
  1410. +/* List of available public key cipher algorithms */
  1411. +#undef LIBGCRYPT_PUBKEY_CIPHERS
  1412. +
  1413. +/* Define to use the (obsolete) malloc guarding feature */
  1414. +#undef M_GUARD
  1415. +
  1416. +/* defined to the name of the strong random device */
  1417. +#undef NAME_OF_DEV_RANDOM
  1418. +
  1419. +/* defined to the name of the weaker random device */
  1420. +#undef NAME_OF_DEV_URANDOM
  1421. +
  1422. +/* Define to 1 if your C compiler doesn't accept -c and -o together. */
  1423. +#undef NO_MINUS_C_MINUS_O
  1424. +
  1425. +/* Name of this package */
  1426. +#undef PACKAGE
  1427. +
  1428. +/* Define to the address where bug reports for this package should be sent. */
  1429. +#undef PACKAGE_BUGREPORT
  1430. +
  1431. +/* Define to the full name of this package. */
  1432. +#undef PACKAGE_NAME
  1433. +
  1434. +/* Define to the full name and version of this package. */
  1435. +#undef PACKAGE_STRING
  1436. +
  1437. +/* Define to the one symbol short name of this package. */
  1438. +#undef PACKAGE_TARNAME
  1439. +
  1440. +/* Define to the home page for this package. */
  1441. +#undef PACKAGE_URL
  1442. +
  1443. +/* Define to the version of this package. */
  1444. +#undef PACKAGE_VERSION
  1445. +
  1446. +/* A human readable text with the name of the OS */
  1447. +#undef PRINTABLE_OS_NAME
  1448. +
  1449. +/* Define as the return type of signal handlers (`int' or `void'). */
  1450. +#undef RETSIGTYPE
  1451. +
  1452. +/* The size of `unsigned int', as computed by sizeof. */
  1453. +#undef SIZEOF_UNSIGNED_INT
  1454. +
  1455. +/* The size of `unsigned long', as computed by sizeof. */
  1456. +#undef SIZEOF_UNSIGNED_LONG
  1457. +
  1458. +/* The size of `unsigned long long', as computed by sizeof. */
  1459. +#undef SIZEOF_UNSIGNED_LONG_LONG
  1460. +
  1461. +/* The size of `unsigned short', as computed by sizeof. */
  1462. +#undef SIZEOF_UNSIGNED_SHORT
  1463. +
  1464. +/* Define to 1 if you have the ANSI C header files. */
  1465. +#undef STDC_HEADERS
  1466. +
  1467. +/* Defined if this module should be included */
  1468. +#undef USE_AES
  1469. +
  1470. +/* Defined if this module should be included */
  1471. +#undef USE_ARCFOUR
  1472. +
  1473. +/* Defined if this module should be included */
  1474. +#undef USE_BLOWFISH
  1475. +
  1476. +/* Defined if this module should be included */
  1477. +#undef USE_CAMELLIA
  1478. +
  1479. +/* define if capabilities should be used */
  1480. +#undef USE_CAPABILITIES
  1481. +
  1482. +/* Defined if this module should be included */
  1483. +#undef USE_CAST5
  1484. +
  1485. +/* Defined if this module should be included */
  1486. +#undef USE_CRC
  1487. +
  1488. +/* Defined if this module should be included */
  1489. +#undef USE_DES
  1490. +
  1491. +/* Defined if this module should be included */
  1492. +#undef USE_DSA
  1493. +
  1494. +/* Defined if this module should be included */
  1495. +#undef USE_ECC
  1496. +
  1497. +/* Defined if this module should be included */
  1498. +#undef USE_ELGAMAL
  1499. +
  1500. +/* Defined if the GNU Portable Thread Library should be used */
  1501. +#undef USE_GNU_PTH
  1502. +
  1503. +/* Defined if this module should be included */
  1504. +#undef USE_MD4
  1505. +
  1506. +/* Defined if this module should be included */
  1507. +#undef USE_MD5
  1508. +
  1509. +/* set this to limit filenames to the 8.3 format */
  1510. +#undef USE_ONLY_8DOT3
  1511. +
  1512. +/* Define to support the experimental random daemon */
  1513. +#undef USE_RANDOM_DAEMON
  1514. +
  1515. +/* Defined if this module should be included */
  1516. +#undef USE_RFC2268
  1517. +
  1518. +/* Defined if this module should be included */
  1519. +#undef USE_RMD160
  1520. +
  1521. +/* Defined if the EGD based RNG should be used. */
  1522. +#undef USE_RNDEGD
  1523. +
  1524. +/* Defined if the /dev/random RNG should be used. */
  1525. +#undef USE_RNDLINUX
  1526. +
  1527. +/* Defined if the default Unix RNG should be used. */
  1528. +#undef USE_RNDUNIX
  1529. +
  1530. +/* Defined if the Windows specific RNG should be used. */
  1531. +#undef USE_RNDW32
  1532. +
  1533. +/* Defined if this module should be included */
  1534. +#undef USE_RSA
  1535. +
  1536. +/* Defined if this module should be included */
  1537. +#undef USE_SEED
  1538. +
  1539. +/* Defined if this module should be included */
  1540. +#undef USE_SERPENT
  1541. +
  1542. +/* Defined if this module should be included */
  1543. +#undef USE_SHA1
  1544. +
  1545. +/* Defined if this module should be included */
  1546. +#undef USE_SHA256
  1547. +
  1548. +/* Defined if this module should be included */
  1549. +#undef USE_SHA512
  1550. +
  1551. +/* Defined if this module should be included */
  1552. +#undef USE_TIGER
  1553. +
  1554. +/* Defined if this module should be included */
  1555. +#undef USE_TWOFISH
  1556. +
  1557. +/* Defined if this module should be included */
  1558. +#undef USE_WHIRLPOOL
  1559. +
  1560. +/* Version of this package */
  1561. +#undef VERSION
  1562. +
  1563. +/* Defined if compiled symbols have a leading underscore */
  1564. +#undef WITH_SYMBOL_UNDERSCORE
  1565. +
  1566. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  1567. + significant byte first (like Motorola and SPARC, unlike Intel). */
  1568. +#if defined AC_APPLE_UNIVERSAL_BUILD
  1569. +# if defined __BIG_ENDIAN__
  1570. +# define WORDS_BIGENDIAN 1
  1571. +# endif
  1572. +#else
  1573. +# ifndef WORDS_BIGENDIAN
  1574. +# undef WORDS_BIGENDIAN
  1575. +# endif
  1576. +#endif
  1577. +
  1578. +/* To allow the use of Libgcrypt in multithreaded programs we have to use
  1579. + special features from the library. */
  1580. +#ifndef _REENTRANT
  1581. +# define _REENTRANT 1
  1582. +#endif
  1583. +
  1584. +
  1585. +/* Define to empty if `const' does not conform to ANSI C. */
  1586. +#undef const
  1587. +
  1588. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  1589. + calls it, or to nothing if 'inline' is not supported under any name. */
  1590. +#ifndef __cplusplus
  1591. +#undef inline
  1592. +#endif
  1593. +
  1594. +/* Define to `unsigned int' if <sys/types.h> does not define. */
  1595. +#undef size_t
  1596. +
  1597. +/* type to use in place of socklen_t if not defined */
  1598. +#undef socklen_t
  1599. +
  1600. +/* Define to the type of an unsigned integer type wide enough to hold a
  1601. + pointer, if such a type exists, and if the system does not define it. */
  1602. +#undef uintptr_t
  1603. +
  1604. +
  1605. +#define _GCRYPT_IN_LIBGCRYPT 1
  1606. +
  1607. +/* If the configure check for endianness has been disabled, get it from
  1608. + OS macros. This is intended for making fat binary builds on OS X. */
  1609. +#ifdef DISABLED_ENDIAN_CHECK
  1610. +# if defined(__BIG_ENDIAN__)
  1611. +# define WORDS_BIGENDIAN 1
  1612. +# elif defined(__LITTLE_ENDIAN__)
  1613. +# undef WORDS_BIGENDIAN
  1614. +# else
  1615. +# error "No endianness found"
  1616. +# endif
  1617. +#endif /*DISABLED_ENDIAN_CHECK*/
  1618. +
  1619. +/* We basically use the original Camellia source. Make sure the symbols
  1620. + properly prefixed. */
  1621. +#define CAMELLIA_EXT_SYM_PREFIX _gcry_
  1622. +
  1623. +/* This error code is only available with gpg-error 1.7. Thus
  1624. + we define it here with the usual gcry prefix. */
  1625. +#define GCRY_GPG_ERR_NOT_OPERATIONAL 176
  1626. +
  1627. +
  1628. +#endif /*_GCRYPT_CONFIG_H_INCLUDED*/
  1629. +
  1630. diff -Nur libgcrypt-1.4.5.orig/config.sub libgcrypt-1.4.5/config.sub
  1631. --- libgcrypt-1.4.5.orig/config.sub 2009-04-02 11:25:35.000000000 +0200
  1632. +++ libgcrypt-1.4.5/config.sub 2011-02-16 16:00:44.883554746 +0100
  1633. @@ -1,10 +1,10 @@
  1634. #! /bin/sh
  1635. # Configuration validation subroutine script.
  1636. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  1637. -# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
  1638. -# Inc.
  1639. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  1640. +# Free Software Foundation, Inc.
  1641. -timestamp='2007-11-19'
  1642. +timestamp='2009-06-11'
  1643. # This file is (in principle) common to ALL GNU software.
  1644. # The presence of a machine in this file suggests that SOME GNU software
  1645. @@ -72,8 +72,8 @@
  1646. version="\
  1647. GNU config.sub ($timestamp)
  1648. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  1649. -Free Software Foundation, Inc.
  1650. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  1651. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1652. This is free software; see the source for copying conditions. There is NO
  1653. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  1654. @@ -122,6 +122,7 @@
  1655. case $maybe_os in
  1656. nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  1657. uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  1658. + kopensolaris*-gnu* | \
  1659. storm-chaos* | os2-emx* | rtmk-nova*)
  1660. os=-$maybe_os
  1661. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  1662. @@ -152,6 +153,9 @@
  1663. os=
  1664. basic_machine=$1
  1665. ;;
  1666. + -bluegene*)
  1667. + os=-cnk
  1668. + ;;
  1669. -sim | -cisco | -oki | -wec | -winbond)
  1670. os=
  1671. basic_machine=$1
  1672. @@ -249,13 +253,16 @@
  1673. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  1674. | i370 | i860 | i960 | ia64 \
  1675. | ip2k | iq2000 \
  1676. + | lm32 \
  1677. | m32c | m32r | m32rle | m68000 | m68k | m88k \
  1678. - | maxq | mb | microblaze | mcore | mep \
  1679. + | maxq | mb | microblaze | mcore | mep | metag \
  1680. | mips | mipsbe | mipseb | mipsel | mipsle \
  1681. | mips16 \
  1682. | mips64 | mips64el \
  1683. - | mips64vr | mips64vrel \
  1684. + | mips64octeon | mips64octeonel \
  1685. | mips64orion | mips64orionel \
  1686. + | mips64r5900 | mips64r5900el \
  1687. + | mips64vr | mips64vrel \
  1688. | mips64vr4100 | mips64vr4100el \
  1689. | mips64vr4300 | mips64vr4300el \
  1690. | mips64vr5000 | mips64vr5000el \
  1691. @@ -268,6 +275,7 @@
  1692. | mipsisa64sr71k | mipsisa64sr71kel \
  1693. | mipstx39 | mipstx39el \
  1694. | mn10200 | mn10300 \
  1695. + | moxie \
  1696. | mt \
  1697. | msp430 \
  1698. | nios | nios2 \
  1699. @@ -277,7 +285,7 @@
  1700. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  1701. | pyramid \
  1702. | score \
  1703. - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  1704. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  1705. | sh64 | sh64le \
  1706. | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  1707. | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  1708. @@ -286,7 +294,7 @@
  1709. | v850 | v850e \
  1710. | we32k \
  1711. | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  1712. - | z8k)
  1713. + | z8k | z80)
  1714. basic_machine=$basic_machine-unknown
  1715. ;;
  1716. m6811 | m68hc11 | m6812 | m68hc12)
  1717. @@ -329,14 +337,17 @@
  1718. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  1719. | i*86-* | i860-* | i960-* | ia64-* \
  1720. | ip2k-* | iq2000-* \
  1721. + | lm32-* \
  1722. | m32c-* | m32r-* | m32rle-* \
  1723. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  1724. - | m88110-* | m88k-* | maxq-* | mcore-* \
  1725. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  1726. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  1727. | mips16-* \
  1728. | mips64-* | mips64el-* \
  1729. - | mips64vr-* | mips64vrel-* \
  1730. + | mips64octeon-* | mips64octeonel-* \
  1731. | mips64orion-* | mips64orionel-* \
  1732. + | mips64r5900-* | mips64r5900el-* \
  1733. + | mips64vr-* | mips64vrel-* \
  1734. | mips64vr4100-* | mips64vr4100el-* \
  1735. | mips64vr4300-* | mips64vr4300el-* \
  1736. | mips64vr5000-* | mips64vr5000el-* \
  1737. @@ -358,20 +369,20 @@
  1738. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  1739. | pyramid-* \
  1740. | romp-* | rs6000-* \
  1741. - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  1742. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  1743. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  1744. | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  1745. | sparclite-* \
  1746. | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  1747. | tahoe-* | thumb-* \
  1748. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  1749. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  1750. | tron-* \
  1751. | v850-* | v850e-* | vax-* \
  1752. | we32k-* \
  1753. | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  1754. | xstormy16-* | xtensa*-* \
  1755. | ymp-* \
  1756. - | z8k-*)
  1757. + | z8k-* | z80-*)
  1758. ;;
  1759. # Recognize the basic CPU types without company name, with glob match.
  1760. xtensa*)
  1761. @@ -439,6 +450,10 @@
  1762. basic_machine=m68k-apollo
  1763. os=-bsd
  1764. ;;
  1765. + aros)
  1766. + basic_machine=i386-pc
  1767. + os=-aros
  1768. + ;;
  1769. aux)
  1770. basic_machine=m68k-apple
  1771. os=-aux
  1772. @@ -447,10 +462,26 @@
  1773. basic_machine=ns32k-sequent
  1774. os=-dynix
  1775. ;;
  1776. + blackfin)
  1777. + basic_machine=bfin-unknown
  1778. + os=-linux
  1779. + ;;
  1780. + blackfin-*)
  1781. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  1782. + os=-linux
  1783. + ;;
  1784. + bluegene*)
  1785. + basic_machine=powerpc-ibm
  1786. + os=-cnk
  1787. + ;;
  1788. c90)
  1789. basic_machine=c90-cray
  1790. os=-unicos
  1791. ;;
  1792. + cegcc)
  1793. + basic_machine=arm-unknown
  1794. + os=-cegcc
  1795. + ;;
  1796. convex-c1)
  1797. basic_machine=c1-convex
  1798. os=-bsd
  1799. @@ -518,6 +549,10 @@
  1800. basic_machine=m88k-motorola
  1801. os=-sysv3
  1802. ;;
  1803. + dicos)
  1804. + basic_machine=i686-pc
  1805. + os=-dicos
  1806. + ;;
  1807. djgpp)
  1808. basic_machine=i586-pc
  1809. os=-msdosdjgpp
  1810. @@ -672,6 +707,14 @@
  1811. basic_machine=m68k-isi
  1812. os=-sysv
  1813. ;;
  1814. + m68knommu)
  1815. + basic_machine=m68k-unknown
  1816. + os=-linux
  1817. + ;;
  1818. + m68knommu-*)
  1819. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  1820. + os=-linux
  1821. + ;;
  1822. m88k-omron*)
  1823. basic_machine=m88k-omron
  1824. ;;
  1825. @@ -817,6 +860,14 @@
  1826. basic_machine=i860-intel
  1827. os=-osf
  1828. ;;
  1829. + parisc)
  1830. + basic_machine=hppa-unknown
  1831. + os=-linux
  1832. + ;;
  1833. + parisc-*)
  1834. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  1835. + os=-linux
  1836. + ;;
  1837. pbd)
  1838. basic_machine=sparc-tti
  1839. ;;
  1840. @@ -1025,6 +1076,10 @@
  1841. basic_machine=tic6x-unknown
  1842. os=-coff
  1843. ;;
  1844. + tile*)
  1845. + basic_machine=tile-unknown
  1846. + os=-linux-gnu
  1847. + ;;
  1848. tx39)
  1849. basic_machine=mipstx39-unknown
  1850. ;;
  1851. @@ -1100,6 +1155,10 @@
  1852. basic_machine=z8k-unknown
  1853. os=-sim
  1854. ;;
  1855. + z80-*-coff)
  1856. + basic_machine=z80-unknown
  1857. + os=-sim
  1858. + ;;
  1859. none)
  1860. basic_machine=none-none
  1861. os=-none
  1862. @@ -1138,7 +1197,7 @@
  1863. we32k)
  1864. basic_machine=we32k-att
  1865. ;;
  1866. - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
  1867. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  1868. basic_machine=sh-unknown
  1869. ;;
  1870. sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  1871. @@ -1208,10 +1267,11 @@
  1872. # Each alternative MUST END IN A *, to match a version number.
  1873. # -sysv* is not here because it comes later, after sysvr4.
  1874. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  1875. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  1876. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  1877. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  1878. + | -kopensolaris* \
  1879. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  1880. - | -aos* \
  1881. + | -aos* | -aros* \
  1882. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  1883. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  1884. | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  1885. @@ -1220,7 +1280,7 @@
  1886. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  1887. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  1888. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  1889. - | -chorusos* | -chorusrdb* \
  1890. + | -chorusos* | -chorusrdb* | -cegcc* \
  1891. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  1892. | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  1893. | -uxpv* | -beos* | -mpeix* | -udk* \
  1894. @@ -1360,6 +1420,9 @@
  1895. -zvmoe)
  1896. os=-zvmoe
  1897. ;;
  1898. + -dicos*)
  1899. + os=-dicos
  1900. + ;;
  1901. -none)
  1902. ;;
  1903. *)
  1904. @@ -1557,7 +1620,7 @@
  1905. -sunos*)
  1906. vendor=sun
  1907. ;;
  1908. - -aix*)
  1909. + -cnk*|-aix*)
  1910. vendor=ibm
  1911. ;;
  1912. -beos*)
  1913. diff -Nur libgcrypt-1.4.5.orig/configure libgcrypt-1.4.5/configure
  1914. --- libgcrypt-1.4.5.orig/configure 2009-12-11 16:43:32.000000000 +0100
  1915. +++ libgcrypt-1.4.5/configure 2011-02-16 16:00:43.653561954 +0100
  1916. @@ -1,13 +1,15 @@
  1917. #! /bin/sh
  1918. # From configure.ac Revision: 1417 .
  1919. # Guess values for system-dependent variables and create Makefiles.
  1920. -# Generated by GNU Autoconf 2.64 for libgcrypt 1.4.5.
  1921. +# Generated by GNU Autoconf 2.65 for libgcrypt 1.4.5.
  1922. #
  1923. # Report bugs to <bug-libgcrypt@gnupg.org>.
  1924. #
  1925. +#
  1926. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1927. -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  1928. -# Foundation, Inc.
  1929. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  1930. +# Inc.
  1931. +#
  1932. #
  1933. # This configure script is free software; the Free Software Foundation
  1934. # gives unlimited permission to copy, distribute and modify it.
  1935. @@ -528,28 +530,26 @@
  1936. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  1937. -tagnames=${tagnames+${tagnames},}RC
  1938. -
  1939. # Check that we are running under the correct shell.
  1940. SHELL=${CONFIG_SHELL-/bin/sh}
  1941. -case X$ECHO in
  1942. +case X$lt_ECHO in
  1943. X*--fallback-echo)
  1944. # Remove one level of quotation (which was required for Make).
  1945. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  1946. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  1947. ;;
  1948. esac
  1949. -echo=${ECHO-echo}
  1950. +ECHO=${lt_ECHO-echo}
  1951. if test "X$1" = X--no-reexec; then
  1952. # Discard the --no-reexec flag, and continue.
  1953. shift
  1954. elif test "X$1" = X--fallback-echo; then
  1955. # Avoid inline document here, it may be left over
  1956. :
  1957. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1958. - # Yippee, $echo works!
  1959. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1960. + # Yippee, $ECHO works!
  1961. :
  1962. else
  1963. # Restart under the correct shell.
  1964. @@ -559,132 +559,128 @@
  1965. if test "X$1" = X--fallback-echo; then
  1966. # used as fallback echo
  1967. shift
  1968. - cat <<EOF
  1969. + cat <<_LT_EOF
  1970. $*
  1971. -EOF
  1972. +_LT_EOF
  1973. exit 0
  1974. fi
  1975. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1976. # if CDPATH is set.
  1977. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1978. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1979. -if test -z "$ECHO"; then
  1980. -if test "X${echo_test_string+set}" != Xset; then
  1981. -# find a string as large as possible, as long as the shell can cope with it
  1982. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  1983. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1984. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  1985. - echo_test_string="`eval $cmd`" &&
  1986. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1987. - then
  1988. - break
  1989. - fi
  1990. - done
  1991. -fi
  1992. +if test -z "$lt_ECHO"; then
  1993. + if test "X${echo_test_string+set}" != Xset; then
  1994. + # find a string as large as possible, as long as the shell can cope with it
  1995. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  1996. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1997. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1998. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1999. + then
  2000. + break
  2001. + fi
  2002. + done
  2003. + fi
  2004. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2005. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2006. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2007. - :
  2008. -else
  2009. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  2010. - # backslashes. This makes it impossible to quote backslashes using
  2011. - # echo "$something" | sed 's/\\/\\\\/g'
  2012. - #
  2013. - # So, first we look for a working echo in the user's PATH.
  2014. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2015. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2016. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2017. + :
  2018. + else
  2019. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  2020. + # backslashes. This makes it impossible to quote backslashes using
  2021. + # echo "$something" | sed 's/\\/\\\\/g'
  2022. + #
  2023. + # So, first we look for a working echo in the user's PATH.
  2024. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2025. - for dir in $PATH /usr/ucb; do
  2026. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2027. + for dir in $PATH /usr/ucb; do
  2028. + IFS="$lt_save_ifs"
  2029. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2030. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2031. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2032. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2033. + ECHO="$dir/echo"
  2034. + break
  2035. + fi
  2036. + done
  2037. IFS="$lt_save_ifs"
  2038. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2039. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2040. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2041. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2042. - echo="$dir/echo"
  2043. - break
  2044. - fi
  2045. - done
  2046. - IFS="$lt_save_ifs"
  2047. - if test "X$echo" = Xecho; then
  2048. - # We didn't find a better echo, so look for alternatives.
  2049. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  2050. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  2051. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2052. - # This shell has a builtin print -r that does the trick.
  2053. - echo='print -r'
  2054. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  2055. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  2056. - # If we have ksh, try running configure again with it.
  2057. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2058. - export ORIGINAL_CONFIG_SHELL
  2059. - CONFIG_SHELL=/bin/ksh
  2060. - export CONFIG_SHELL
  2061. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  2062. - else
  2063. - # Try using printf.
  2064. - echo='printf %s\n'
  2065. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2066. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2067. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2068. - # Cool, printf works
  2069. - :
  2070. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  2071. - test "X$echo_testing_string" = 'X\t' &&
  2072. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2073. - test "X$echo_testing_string" = "X$echo_test_string"; then
  2074. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2075. - export CONFIG_SHELL
  2076. - SHELL="$CONFIG_SHELL"
  2077. - export SHELL
  2078. - echo="$CONFIG_SHELL $0 --fallback-echo"
  2079. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  2080. - test "X$echo_testing_string" = 'X\t' &&
  2081. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2082. + if test "X$ECHO" = Xecho; then
  2083. + # We didn't find a better echo, so look for alternatives.
  2084. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  2085. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  2086. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2087. + # This shell has a builtin print -r that does the trick.
  2088. + ECHO='print -r'
  2089. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  2090. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  2091. + # If we have ksh, try running configure again with it.
  2092. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2093. + export ORIGINAL_CONFIG_SHELL
  2094. + CONFIG_SHELL=/bin/ksh
  2095. + export CONFIG_SHELL
  2096. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  2097. + else
  2098. + # Try using printf.
  2099. + ECHO='printf %s\n'
  2100. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2101. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2102. test "X$echo_testing_string" = "X$echo_test_string"; then
  2103. - echo="$CONFIG_SHELL $0 --fallback-echo"
  2104. - else
  2105. - # maybe with a smaller string...
  2106. - prev=:
  2107. + # Cool, printf works
  2108. + :
  2109. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  2110. + test "X$echo_testing_string" = 'X\t' &&
  2111. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2112. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2113. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2114. + export CONFIG_SHELL
  2115. + SHELL="$CONFIG_SHELL"
  2116. + export SHELL
  2117. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  2118. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  2119. + test "X$echo_testing_string" = 'X\t' &&
  2120. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2121. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2122. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  2123. + else
  2124. + # maybe with a smaller string...
  2125. + prev=:
  2126. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  2127. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  2128. - then
  2129. - break
  2130. - fi
  2131. - prev="$cmd"
  2132. - done
  2133. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  2134. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2135. + then
  2136. + break
  2137. + fi
  2138. + prev="$cmd"
  2139. + done
  2140. - if test "$prev" != 'sed 50q "$0"'; then
  2141. - echo_test_string=`eval $prev`
  2142. - export echo_test_string
  2143. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  2144. - else
  2145. - # Oops. We lost completely, so just stick with echo.
  2146. - echo=echo
  2147. - fi
  2148. + if test "$prev" != 'sed 50q "$0"'; then
  2149. + echo_test_string=`eval $prev`
  2150. + export echo_test_string
  2151. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  2152. + else
  2153. + # Oops. We lost completely, so just stick with echo.
  2154. + ECHO=echo
  2155. + fi
  2156. + fi
  2157. fi
  2158. fi
  2159. fi
  2160. fi
  2161. -fi
  2162. # Copy echo and quote the copy suitably for passing to libtool from
  2163. # the Makefile, instead of quoting the original, which is used later.
  2164. -ECHO=$echo
  2165. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  2166. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  2167. +lt_ECHO=$ECHO
  2168. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  2169. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  2170. fi
  2171. -tagnames=${tagnames+${tagnames},}CXX
  2172. -
  2173. -tagnames=${tagnames+${tagnames},}F77
  2174. -
  2175. -exec 7<&0 </dev/null 6>&1
  2176. +test -n "$DJDIR" || exec 7<&0 </dev/null
  2177. +exec 6>&1
  2178. # Name of the host.
  2179. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  2180. @@ -748,7 +744,9 @@
  2181. # include <unistd.h>
  2182. #endif"
  2183. -ac_subst_vars='LTLIBOBJS
  2184. +ac_subst_vars='am__EXEEXT_FALSE
  2185. +am__EXEEXT_TRUE
  2186. +LTLIBOBJS
  2187. LIBOBJS
  2188. BUILD_FILEVERSION
  2189. BUILD_TIMESTAMP
  2190. @@ -821,27 +819,27 @@
  2191. USE_RANDOM_DAEMON_TRUE
  2192. HAVE_W32_SYSTEM_FALSE
  2193. HAVE_W32_SYSTEM_TRUE
  2194. -LIBTOOL
  2195. -ac_ct_F77
  2196. -FFLAGS
  2197. -F77
  2198. -CXXCPP
  2199. -am__fastdepCXX_FALSE
  2200. -am__fastdepCXX_TRUE
  2201. -CXXDEPMODE
  2202. -ac_ct_CXX
  2203. -CXXFLAGS
  2204. -CXX
  2205. -OBJDUMP
  2206. -AS
  2207. -DLLTOOL
  2208. +OTOOL64
  2209. +OTOOL
  2210. +LIPO
  2211. +NMEDIT
  2212. +DSYMUTIL
  2213. +lt_ECHO
  2214. RANLIB
  2215. AR
  2216. -ECHO
  2217. LN_S
  2218. +NM
  2219. +ac_ct_DUMPBIN
  2220. +DUMPBIN
  2221. +LD
  2222. +FGREP
  2223. EGREP
  2224. GREP
  2225. -RC
  2226. +SED
  2227. +LIBTOOL
  2228. +OBJDUMP
  2229. +DLLTOOL
  2230. +AS
  2231. am__fastdepCCAS_FALSE
  2232. am__fastdepCCAS_TRUE
  2233. CCASDEPMODE
  2234. @@ -946,11 +944,10 @@
  2235. enable_dependency_tracking
  2236. enable_shared
  2237. enable_static
  2238. +with_pic
  2239. enable_fast_install
  2240. with_gnu_ld
  2241. enable_libtool_lock
  2242. -with_pic
  2243. -with_tags
  2244. enable_endian_check
  2245. enable_ciphers
  2246. enable_pubkey_ciphers
  2247. @@ -982,13 +979,7 @@
  2248. CPPFLAGS
  2249. CPP
  2250. CCAS
  2251. -CCASFLAGS
  2252. -CXX
  2253. -CXXFLAGS
  2254. -CCC
  2255. -CXXCPP
  2256. -F77
  2257. -FFLAGS'
  2258. +CCASFLAGS'
  2259. # Initialize some variables set by options.
  2260. @@ -1649,12 +1640,11 @@
  2261. Optional Packages:
  2262. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  2263. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  2264. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  2265. --with-pic try to use only PIC/non-PIC objects [default=use
  2266. both]
  2267. - --with-tags[=TAGS] include additional configurations [automatic]
  2268. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  2269. --with-egd-socket=NAME Use NAME for the EGD socket)
  2270. - --with-capabilities Use linux capabilities default=no
  2271. + --with-capabilities Use linux capabilities [default=no]
  2272. --with-gpg-error-prefix=PFX
  2273. prefix where GPG Error is installed (optional)
  2274. --with-pth-prefix=PFX prefix where GNU Pth is installed (optional)
  2275. @@ -1665,16 +1655,11 @@
  2276. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  2277. nonstandard directory <lib dir>
  2278. LIBS libraries to pass to the linker, e.g. -l<library>
  2279. - CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  2280. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  2281. you have headers in a nonstandard directory <include dir>
  2282. CPP C preprocessor
  2283. CCAS assembler compiler command (defaults to CC)
  2284. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  2285. - CXX C++ compiler command
  2286. - CXXFLAGS C++ compiler flags
  2287. - CXXCPP C++ preprocessor
  2288. - F77 Fortran 77 compiler command
  2289. - FFLAGS Fortran 77 compiler flags
  2290. Use these variables to override the choices made by `configure' or to help
  2291. it to find libraries and programs with nonstandard names/locations.
  2292. @@ -1743,7 +1728,7 @@
  2293. if $ac_init_version; then
  2294. cat <<\_ACEOF
  2295. libgcrypt configure 1.4.5
  2296. -generated by GNU Autoconf 2.64
  2297. +generated by GNU Autoconf 2.65
  2298. Copyright (C) 2009 Free Software Foundation, Inc.
  2299. This configure script is free software; the Free Software Foundation
  2300. @@ -1790,7 +1775,7 @@
  2301. ac_retval=1
  2302. fi
  2303. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2304. - return $ac_retval
  2305. + as_fn_set_status $ac_retval
  2306. } # ac_fn_c_try_compile
  2307. @@ -1827,7 +1812,7 @@
  2308. ac_retval=1
  2309. fi
  2310. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2311. - return $ac_retval
  2312. + as_fn_set_status $ac_retval
  2313. } # ac_fn_c_try_cpp
  2314. @@ -1873,102 +1858,40 @@
  2315. # left behind by Apple's compiler. We do this before executing the actions.
  2316. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2317. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2318. - return $ac_retval
  2319. + as_fn_set_status $ac_retval
  2320. } # ac_fn_c_try_link
  2321. -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2322. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2323. # -------------------------------------------------------
  2324. -# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2325. -# the include files in INCLUDES and setting the cache variable VAR
  2326. -# accordingly.
  2327. -ac_fn_c_check_header_mongrel ()
  2328. +# Tests whether HEADER exists and can be compiled using the include files in
  2329. +# INCLUDES, setting the cache variable VAR accordingly.
  2330. +ac_fn_c_check_header_compile ()
  2331. {
  2332. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2333. - if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2335. $as_echo_n "checking for $2... " >&6; }
  2336. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2337. $as_echo_n "(cached) " >&6
  2338. -fi
  2339. -eval ac_res=\$$3
  2340. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2341. -$as_echo "$ac_res" >&6; }
  2342. else
  2343. - # Is the header compilable?
  2344. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2345. -$as_echo_n "checking $2 usability... " >&6; }
  2346. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2347. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2348. /* end confdefs.h. */
  2349. $4
  2350. #include <$2>
  2351. _ACEOF
  2352. if ac_fn_c_try_compile "$LINENO"; then :
  2353. - ac_header_compiler=yes
  2354. + eval "$3=yes"
  2355. else
  2356. - ac_header_compiler=no
  2357. + eval "$3=no"
  2358. fi
  2359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2360. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2361. -$as_echo "$ac_header_compiler" >&6; }
  2362. -
  2363. -# Is the header present?
  2364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2365. -$as_echo_n "checking $2 presence... " >&6; }
  2366. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2367. -/* end confdefs.h. */
  2368. -#include <$2>
  2369. -_ACEOF
  2370. -if ac_fn_c_try_cpp "$LINENO"; then :
  2371. - ac_header_preproc=yes
  2372. -else
  2373. - ac_header_preproc=no
  2374. -fi
  2375. -rm -f conftest.err conftest.$ac_ext
  2376. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2377. -$as_echo "$ac_header_preproc" >&6; }
  2378. -
  2379. -# So? What about this header?
  2380. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2381. - yes:no: )
  2382. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2383. -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2384. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2385. -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2386. - ;;
  2387. - no:yes:* )
  2388. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2389. -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2390. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2391. -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2392. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2393. -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2394. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2395. -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2396. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2397. -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2398. -( cat <<\_ASBOX
  2399. -## -------------------------------------- ##
  2400. -## Report this to bug-libgcrypt@gnupg.org ##
  2401. -## -------------------------------------- ##
  2402. -_ASBOX
  2403. - ) | sed "s/^/$as_me: WARNING: /" >&2
  2404. - ;;
  2405. -esac
  2406. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2407. -$as_echo_n "checking for $2... " >&6; }
  2408. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2409. - $as_echo_n "(cached) " >&6
  2410. -else
  2411. - eval "$3=\$ac_header_compiler"
  2412. fi
  2413. eval ac_res=\$$3
  2414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2415. $as_echo "$ac_res" >&6; }
  2416. -fi
  2417. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2418. -} # ac_fn_c_check_header_mongrel
  2419. +} # ac_fn_c_check_header_compile
  2420. # ac_fn_c_try_run LINENO
  2421. # ----------------------
  2422. @@ -2008,41 +1931,10 @@
  2423. fi
  2424. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2425. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2426. - return $ac_retval
  2427. + as_fn_set_status $ac_retval
  2428. } # ac_fn_c_try_run
  2429. -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2430. -# -------------------------------------------------------
  2431. -# Tests whether HEADER exists and can be compiled using the include files in
  2432. -# INCLUDES, setting the cache variable VAR accordingly.
  2433. -ac_fn_c_check_header_compile ()
  2434. -{
  2435. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2436. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2437. -$as_echo_n "checking for $2... " >&6; }
  2438. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2439. - $as_echo_n "(cached) " >&6
  2440. -else
  2441. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2442. -/* end confdefs.h. */
  2443. -$4
  2444. -#include <$2>
  2445. -_ACEOF
  2446. -if ac_fn_c_try_compile "$LINENO"; then :
  2447. - eval "$3=yes"
  2448. -else
  2449. - eval "$3=no"
  2450. -fi
  2451. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2452. -fi
  2453. -eval ac_res=\$$3
  2454. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2455. -$as_echo "$ac_res" >&6; }
  2456. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2457. -
  2458. -} # ac_fn_c_check_header_compile
  2459. -
  2460. # ac_fn_c_check_func LINENO FUNC VAR
  2461. # ----------------------------------
  2462. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2463. @@ -2110,312 +2002,40 @@
  2464. } # ac_fn_c_check_func
  2465. -# ac_fn_cxx_try_compile LINENO
  2466. -# ----------------------------
  2467. -# Try to compile conftest.$ac_ext, and return whether this succeeded.
  2468. -ac_fn_cxx_try_compile ()
  2469. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2470. +# --------------------------------------------
  2471. +# Tries to find the compile-time value of EXPR in a program that includes
  2472. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  2473. +# computed
  2474. +ac_fn_c_compute_int ()
  2475. {
  2476. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2477. - rm -f conftest.$ac_objext
  2478. - if { { ac_try="$ac_compile"
  2479. -case "(($ac_try" in
  2480. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2481. - *) ac_try_echo=$ac_try;;
  2482. -esac
  2483. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2484. -$as_echo "$ac_try_echo"; } >&5
  2485. - (eval "$ac_compile") 2>conftest.err
  2486. - ac_status=$?
  2487. - if test -s conftest.err; then
  2488. - grep -v '^ *+' conftest.err >conftest.er1
  2489. - cat conftest.er1 >&5
  2490. - mv -f conftest.er1 conftest.err
  2491. - fi
  2492. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2493. - test $ac_status = 0; } && {
  2494. - test -z "$ac_cxx_werror_flag" ||
  2495. - test ! -s conftest.err
  2496. - } && test -s conftest.$ac_objext; then :
  2497. - ac_retval=0
  2498. -else
  2499. - $as_echo "$as_me: failed program was:" >&5
  2500. -sed 's/^/| /' conftest.$ac_ext >&5
  2501. -
  2502. - ac_retval=1
  2503. -fi
  2504. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2505. - return $ac_retval
  2506. -
  2507. -} # ac_fn_cxx_try_compile
  2508. + if test "$cross_compiling" = yes; then
  2509. + # Depending upon the size, compute the lo and hi bounds.
  2510. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2511. +/* end confdefs.h. */
  2512. +$4
  2513. +int
  2514. +main ()
  2515. +{
  2516. +static int test_array [1 - 2 * !(($2) >= 0)];
  2517. +test_array [0] = 0
  2518. -# ac_fn_cxx_try_cpp LINENO
  2519. -# ------------------------
  2520. -# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2521. -ac_fn_cxx_try_cpp ()
  2522. + ;
  2523. + return 0;
  2524. +}
  2525. +_ACEOF
  2526. +if ac_fn_c_try_compile "$LINENO"; then :
  2527. + ac_lo=0 ac_mid=0
  2528. + while :; do
  2529. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2530. +/* end confdefs.h. */
  2531. +$4
  2532. +int
  2533. +main ()
  2534. {
  2535. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2536. - if { { ac_try="$ac_cpp conftest.$ac_ext"
  2537. -case "(($ac_try" in
  2538. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2539. - *) ac_try_echo=$ac_try;;
  2540. -esac
  2541. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2542. -$as_echo "$ac_try_echo"; } >&5
  2543. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2544. - ac_status=$?
  2545. - if test -s conftest.err; then
  2546. - grep -v '^ *+' conftest.err >conftest.er1
  2547. - cat conftest.er1 >&5
  2548. - mv -f conftest.er1 conftest.err
  2549. - fi
  2550. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2551. - test $ac_status = 0; } >/dev/null && {
  2552. - test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2553. - test ! -s conftest.err
  2554. - }; then :
  2555. - ac_retval=0
  2556. -else
  2557. - $as_echo "$as_me: failed program was:" >&5
  2558. -sed 's/^/| /' conftest.$ac_ext >&5
  2559. -
  2560. - ac_retval=1
  2561. -fi
  2562. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2563. - return $ac_retval
  2564. -
  2565. -} # ac_fn_cxx_try_cpp
  2566. -
  2567. -# ac_fn_cxx_try_link LINENO
  2568. -# -------------------------
  2569. -# Try to link conftest.$ac_ext, and return whether this succeeded.
  2570. -ac_fn_cxx_try_link ()
  2571. -{
  2572. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2573. - rm -f conftest.$ac_objext conftest$ac_exeext
  2574. - if { { ac_try="$ac_link"
  2575. -case "(($ac_try" in
  2576. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2577. - *) ac_try_echo=$ac_try;;
  2578. -esac
  2579. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2580. -$as_echo "$ac_try_echo"; } >&5
  2581. - (eval "$ac_link") 2>conftest.err
  2582. - ac_status=$?
  2583. - if test -s conftest.err; then
  2584. - grep -v '^ *+' conftest.err >conftest.er1
  2585. - cat conftest.er1 >&5
  2586. - mv -f conftest.er1 conftest.err
  2587. - fi
  2588. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2589. - test $ac_status = 0; } && {
  2590. - test -z "$ac_cxx_werror_flag" ||
  2591. - test ! -s conftest.err
  2592. - } && test -s conftest$ac_exeext && {
  2593. - test "$cross_compiling" = yes ||
  2594. - $as_test_x conftest$ac_exeext
  2595. - }; then :
  2596. - ac_retval=0
  2597. -else
  2598. - $as_echo "$as_me: failed program was:" >&5
  2599. -sed 's/^/| /' conftest.$ac_ext >&5
  2600. -
  2601. - ac_retval=1
  2602. -fi
  2603. - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2604. - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2605. - # interfere with the next link command; also delete a directory that is
  2606. - # left behind by Apple's compiler. We do this before executing the actions.
  2607. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2608. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2609. - return $ac_retval
  2610. -
  2611. -} # ac_fn_cxx_try_link
  2612. -
  2613. -# ac_fn_cxx_check_func LINENO FUNC VAR
  2614. -# ------------------------------------
  2615. -# Tests whether FUNC exists, setting the cache variable VAR accordingly
  2616. -ac_fn_cxx_check_func ()
  2617. -{
  2618. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2619. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2620. -$as_echo_n "checking for $2... " >&6; }
  2621. -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2622. - $as_echo_n "(cached) " >&6
  2623. -else
  2624. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2625. -/* end confdefs.h. */
  2626. -/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2627. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2628. -#define $2 innocuous_$2
  2629. -
  2630. -/* System header to define __stub macros and hopefully few prototypes,
  2631. - which can conflict with char $2 (); below.
  2632. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2633. - <limits.h> exists even on freestanding compilers. */
  2634. -
  2635. -#ifdef __STDC__
  2636. -# include <limits.h>
  2637. -#else
  2638. -# include <assert.h>
  2639. -#endif
  2640. -
  2641. -#undef $2
  2642. -
  2643. -/* Override any GCC internal prototype to avoid an error.
  2644. - Use char because int might match the return type of a GCC
  2645. - builtin and then its argument prototype would still apply. */
  2646. -#ifdef __cplusplus
  2647. -extern "C"
  2648. -#endif
  2649. -char $2 ();
  2650. -/* The GNU C library defines this for functions which it implements
  2651. - to always fail with ENOSYS. Some functions are actually named
  2652. - something starting with __ and the normal name is an alias. */
  2653. -#if defined __stub_$2 || defined __stub___$2
  2654. -choke me
  2655. -#endif
  2656. -
  2657. -int
  2658. -main ()
  2659. -{
  2660. -return $2 ();
  2661. - ;
  2662. - return 0;
  2663. -}
  2664. -_ACEOF
  2665. -if ac_fn_cxx_try_link "$LINENO"; then :
  2666. - eval "$3=yes"
  2667. -else
  2668. - eval "$3=no"
  2669. -fi
  2670. -rm -f core conftest.err conftest.$ac_objext \
  2671. - conftest$ac_exeext conftest.$ac_ext
  2672. -fi
  2673. -eval ac_res=\$$3
  2674. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2675. -$as_echo "$ac_res" >&6; }
  2676. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2677. -
  2678. -} # ac_fn_cxx_check_func
  2679. -
  2680. -# ac_fn_f77_try_compile LINENO
  2681. -# ----------------------------
  2682. -# Try to compile conftest.$ac_ext, and return whether this succeeded.
  2683. -ac_fn_f77_try_compile ()
  2684. -{
  2685. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2686. - rm -f conftest.$ac_objext
  2687. - if { { ac_try="$ac_compile"
  2688. -case "(($ac_try" in
  2689. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2690. - *) ac_try_echo=$ac_try;;
  2691. -esac
  2692. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2693. -$as_echo "$ac_try_echo"; } >&5
  2694. - (eval "$ac_compile") 2>conftest.err
  2695. - ac_status=$?
  2696. - if test -s conftest.err; then
  2697. - grep -v '^ *+' conftest.err >conftest.er1
  2698. - cat conftest.er1 >&5
  2699. - mv -f conftest.er1 conftest.err
  2700. - fi
  2701. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2702. - test $ac_status = 0; } && {
  2703. - test -z "$ac_f77_werror_flag" ||
  2704. - test ! -s conftest.err
  2705. - } && test -s conftest.$ac_objext; then :
  2706. - ac_retval=0
  2707. -else
  2708. - $as_echo "$as_me: failed program was:" >&5
  2709. -sed 's/^/| /' conftest.$ac_ext >&5
  2710. -
  2711. - ac_retval=1
  2712. -fi
  2713. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2714. - return $ac_retval
  2715. -
  2716. -} # ac_fn_f77_try_compile
  2717. -
  2718. -# ac_fn_f77_try_link LINENO
  2719. -# -------------------------
  2720. -# Try to link conftest.$ac_ext, and return whether this succeeded.
  2721. -ac_fn_f77_try_link ()
  2722. -{
  2723. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2724. - rm -f conftest.$ac_objext conftest$ac_exeext
  2725. - if { { ac_try="$ac_link"
  2726. -case "(($ac_try" in
  2727. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2728. - *) ac_try_echo=$ac_try;;
  2729. -esac
  2730. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2731. -$as_echo "$ac_try_echo"; } >&5
  2732. - (eval "$ac_link") 2>conftest.err
  2733. - ac_status=$?
  2734. - if test -s conftest.err; then
  2735. - grep -v '^ *+' conftest.err >conftest.er1
  2736. - cat conftest.er1 >&5
  2737. - mv -f conftest.er1 conftest.err
  2738. - fi
  2739. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2740. - test $ac_status = 0; } && {
  2741. - test -z "$ac_f77_werror_flag" ||
  2742. - test ! -s conftest.err
  2743. - } && test -s conftest$ac_exeext && {
  2744. - test "$cross_compiling" = yes ||
  2745. - $as_test_x conftest$ac_exeext
  2746. - }; then :
  2747. - ac_retval=0
  2748. -else
  2749. - $as_echo "$as_me: failed program was:" >&5
  2750. -sed 's/^/| /' conftest.$ac_ext >&5
  2751. -
  2752. - ac_retval=1
  2753. -fi
  2754. - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2755. - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2756. - # interfere with the next link command; also delete a directory that is
  2757. - # left behind by Apple's compiler. We do this before executing the actions.
  2758. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2759. - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2760. - return $ac_retval
  2761. -
  2762. -} # ac_fn_f77_try_link
  2763. -
  2764. -# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2765. -# --------------------------------------------
  2766. -# Tries to find the compile-time value of EXPR in a program that includes
  2767. -# INCLUDES, setting VAR accordingly. Returns whether the value could be
  2768. -# computed
  2769. -ac_fn_c_compute_int ()
  2770. -{
  2771. - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2772. - if test "$cross_compiling" = yes; then
  2773. - # Depending upon the size, compute the lo and hi bounds.
  2774. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2775. -/* end confdefs.h. */
  2776. -$4
  2777. -int
  2778. -main ()
  2779. -{
  2780. -static int test_array [1 - 2 * !(($2) >= 0)];
  2781. -test_array [0] = 0
  2782. -
  2783. - ;
  2784. - return 0;
  2785. -}
  2786. -_ACEOF
  2787. -if ac_fn_c_try_compile "$LINENO"; then :
  2788. - ac_lo=0 ac_mid=0
  2789. - while :; do
  2790. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2791. -/* end confdefs.h. */
  2792. -$4
  2793. -int
  2794. -main ()
  2795. -{
  2796. -static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2797. -test_array [0] = 0
  2798. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2799. +test_array [0] = 0
  2800. ;
  2801. return 0;
  2802. @@ -2556,7 +2176,7 @@
  2803. fi
  2804. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2805. - return $ac_retval
  2806. + as_fn_set_status $ac_retval
  2807. } # ac_fn_c_compute_int
  2808. @@ -2614,40 +2234,133 @@
  2809. } # ac_fn_c_check_type
  2810. -# ac_fn_c_check_decl LINENO SYMBOL VAR
  2811. -# ------------------------------------
  2812. -# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2813. -ac_fn_c_check_decl ()
  2814. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2815. +# -------------------------------------------------------
  2816. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2817. +# the include files in INCLUDES and setting the cache variable VAR
  2818. +# accordingly.
  2819. +ac_fn_c_check_header_mongrel ()
  2820. {
  2821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2822. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  2823. -$as_echo_n "checking whether $2 is declared... " >&6; }
  2824. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2825. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2826. +$as_echo_n "checking for $2... " >&6; }
  2827. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2828. $as_echo_n "(cached) " >&6
  2829. +fi
  2830. +eval ac_res=\$$3
  2831. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2832. +$as_echo "$ac_res" >&6; }
  2833. else
  2834. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2835. + # Is the header compilable?
  2836. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2837. +$as_echo_n "checking $2 usability... " >&6; }
  2838. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2839. /* end confdefs.h. */
  2840. $4
  2841. -int
  2842. -main ()
  2843. -{
  2844. -#ifndef $2
  2845. - (void) $2;
  2846. -#endif
  2847. -
  2848. - ;
  2849. - return 0;
  2850. -}
  2851. +#include <$2>
  2852. _ACEOF
  2853. if ac_fn_c_try_compile "$LINENO"; then :
  2854. - eval "$3=yes"
  2855. + ac_header_compiler=yes
  2856. else
  2857. - eval "$3=no"
  2858. + ac_header_compiler=no
  2859. fi
  2860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2861. -fi
  2862. -eval ac_res=\$$3
  2863. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2865. +$as_echo "$ac_header_compiler" >&6; }
  2866. +
  2867. +# Is the header present?
  2868. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2869. +$as_echo_n "checking $2 presence... " >&6; }
  2870. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2871. +/* end confdefs.h. */
  2872. +#include <$2>
  2873. +_ACEOF
  2874. +if ac_fn_c_try_cpp "$LINENO"; then :
  2875. + ac_header_preproc=yes
  2876. +else
  2877. + ac_header_preproc=no
  2878. +fi
  2879. +rm -f conftest.err conftest.$ac_ext
  2880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2881. +$as_echo "$ac_header_preproc" >&6; }
  2882. +
  2883. +# So? What about this header?
  2884. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2885. + yes:no: )
  2886. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2887. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2888. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2889. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2890. + ;;
  2891. + no:yes:* )
  2892. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2893. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2894. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2895. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2896. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2897. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2898. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2899. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2900. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2901. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2902. +( cat <<\_ASBOX
  2903. +## -------------------------------------- ##
  2904. +## Report this to bug-libgcrypt@gnupg.org ##
  2905. +## -------------------------------------- ##
  2906. +_ASBOX
  2907. + ) | sed "s/^/$as_me: WARNING: /" >&2
  2908. + ;;
  2909. +esac
  2910. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2911. +$as_echo_n "checking for $2... " >&6; }
  2912. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2913. + $as_echo_n "(cached) " >&6
  2914. +else
  2915. + eval "$3=\$ac_header_compiler"
  2916. +fi
  2917. +eval ac_res=\$$3
  2918. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2919. +$as_echo "$ac_res" >&6; }
  2920. +fi
  2921. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2922. +
  2923. +} # ac_fn_c_check_header_mongrel
  2924. +
  2925. +# ac_fn_c_check_decl LINENO SYMBOL VAR
  2926. +# ------------------------------------
  2927. +# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2928. +ac_fn_c_check_decl ()
  2929. +{
  2930. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2931. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  2932. +$as_echo_n "checking whether $2 is declared... " >&6; }
  2933. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2934. + $as_echo_n "(cached) " >&6
  2935. +else
  2936. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2937. +/* end confdefs.h. */
  2938. +$4
  2939. +int
  2940. +main ()
  2941. +{
  2942. +#ifndef $2
  2943. + (void) $2;
  2944. +#endif
  2945. +
  2946. + ;
  2947. + return 0;
  2948. +}
  2949. +_ACEOF
  2950. +if ac_fn_c_try_compile "$LINENO"; then :
  2951. + eval "$3=yes"
  2952. +else
  2953. + eval "$3=no"
  2954. +fi
  2955. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2956. +fi
  2957. +eval ac_res=\$$3
  2958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2959. $as_echo "$ac_res" >&6; }
  2960. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2961. @@ -2657,7 +2370,7 @@
  2962. running configure, to aid debugging if configure makes a mistake.
  2963. It was created by libgcrypt $as_me 1.4.5, which was
  2964. -generated by GNU Autoconf 2.64. Invocation command line was
  2965. +generated by GNU Autoconf 2.65. Invocation command line was
  2966. $ $0 $@
  2967. @@ -2910,7 +2623,7 @@
  2968. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2969. do
  2970. test "x$ac_site_file" = xNONE && continue
  2971. - if test -r "$ac_site_file"; then
  2972. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2973. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2974. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2975. sed 's/^/| /' "$ac_site_file" >&5
  2976. @@ -2919,9 +2632,9 @@
  2977. done
  2978. if test -r "$cache_file"; then
  2979. - # Some versions of bash will fail to source /dev/null (special
  2980. - # files actually), so we avoid doing that.
  2981. - if test -f "$cache_file"; then
  2982. + # Some versions of bash will fail to source /dev/null (special files
  2983. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2984. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2986. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2987. case $cache_file in
  2988. @@ -3018,12 +2731,12 @@
  2989. NEED_GPG_ERROR_VERSION=1.4
  2990. is_development_version=no
  2991. -BUILD_REVISION=1417
  2992. +BUILD_REVISION=0
  2993. PACKAGE=$PACKAGE_NAME
  2994. VERSION=$PACKAGE_VERSION
  2995. -am__api_version='1.10'
  2996. +am__api_version='1.11'
  2997. ac_aux_dir=
  2998. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2999. @@ -3146,16 +2859,29 @@
  3000. # Just in case
  3001. sleep 1
  3002. echo timestamp > conftest.file
  3003. +# Reject unsafe characters in $srcdir or the absolute working directory
  3004. +# name. Accept space and tab only in the latter.
  3005. +am_lf='
  3006. +'
  3007. +case `pwd` in
  3008. + *[\\\"\#\$\&\'\`$am_lf]*)
  3009. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3010. +esac
  3011. +case $srcdir in
  3012. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3013. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3014. +esac
  3015. +
  3016. # Do `set' in a subshell so we don't clobber the current shell's
  3017. # arguments. Must try -L first in case configure is actually a
  3018. # symlink; some systems play weird games with the mod time of symlinks
  3019. # (eg FreeBSD returns the mod time of the symlink's containing
  3020. # directory).
  3021. if (
  3022. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  3023. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3024. if test "$*" = "X"; then
  3025. # -L didn't work.
  3026. - set X `ls -t $srcdir/configure conftest.file`
  3027. + set X `ls -t "$srcdir/configure" conftest.file`
  3028. fi
  3029. rm -f conftest.file
  3030. if test "$*" != "X $srcdir/configure conftest.file" \
  3031. @@ -3193,7 +2919,14 @@
  3032. # expand $ac_aux_dir to an absolute path
  3033. am_aux_dir=`cd $ac_aux_dir && pwd`
  3034. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  3035. +if test x"${MISSING+set}" != xset; then
  3036. + case $am_aux_dir in
  3037. + *\ * | *\ *)
  3038. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3039. + *)
  3040. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3041. + esac
  3042. +fi
  3043. # Use eval to expand $SHELL
  3044. if eval "$MISSING --run true"; then
  3045. am_missing_run="$MISSING --run "
  3046. @@ -3203,6 +2936,115 @@
  3047. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3048. fi
  3049. +if test x"${install_sh}" != xset; then
  3050. + case $am_aux_dir in
  3051. + *\ * | *\ *)
  3052. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3053. + *)
  3054. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  3055. + esac
  3056. +fi
  3057. +
  3058. +# Installed binaries are usually stripped using `strip' when the user
  3059. +# run `make install-strip'. However `strip' might not be the right
  3060. +# tool to use in cross-compilation environments, therefore Automake
  3061. +# will honor the `STRIP' environment variable to overrule this program.
  3062. +if test "$cross_compiling" != no; then
  3063. + if test -n "$ac_tool_prefix"; then
  3064. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3065. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  3066. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3067. +$as_echo_n "checking for $ac_word... " >&6; }
  3068. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  3069. + $as_echo_n "(cached) " >&6
  3070. +else
  3071. + if test -n "$STRIP"; then
  3072. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3073. +else
  3074. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3075. +for as_dir in $PATH
  3076. +do
  3077. + IFS=$as_save_IFS
  3078. + test -z "$as_dir" && as_dir=.
  3079. + for ac_exec_ext in '' $ac_executable_extensions; do
  3080. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3081. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3082. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3083. + break 2
  3084. + fi
  3085. +done
  3086. + done
  3087. +IFS=$as_save_IFS
  3088. +
  3089. +fi
  3090. +fi
  3091. +STRIP=$ac_cv_prog_STRIP
  3092. +if test -n "$STRIP"; then
  3093. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3094. +$as_echo "$STRIP" >&6; }
  3095. +else
  3096. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3097. +$as_echo "no" >&6; }
  3098. +fi
  3099. +
  3100. +
  3101. +fi
  3102. +if test -z "$ac_cv_prog_STRIP"; then
  3103. + ac_ct_STRIP=$STRIP
  3104. + # Extract the first word of "strip", so it can be a program name with args.
  3105. +set dummy strip; ac_word=$2
  3106. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3107. +$as_echo_n "checking for $ac_word... " >&6; }
  3108. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3109. + $as_echo_n "(cached) " >&6
  3110. +else
  3111. + if test -n "$ac_ct_STRIP"; then
  3112. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3113. +else
  3114. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3115. +for as_dir in $PATH
  3116. +do
  3117. + IFS=$as_save_IFS
  3118. + test -z "$as_dir" && as_dir=.
  3119. + for ac_exec_ext in '' $ac_executable_extensions; do
  3120. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3121. + ac_cv_prog_ac_ct_STRIP="strip"
  3122. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3123. + break 2
  3124. + fi
  3125. +done
  3126. + done
  3127. +IFS=$as_save_IFS
  3128. +
  3129. +fi
  3130. +fi
  3131. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3132. +if test -n "$ac_ct_STRIP"; then
  3133. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3134. +$as_echo "$ac_ct_STRIP" >&6; }
  3135. +else
  3136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3137. +$as_echo "no" >&6; }
  3138. +fi
  3139. +
  3140. + if test "x$ac_ct_STRIP" = x; then
  3141. + STRIP=":"
  3142. + else
  3143. + case $cross_compiling:$ac_tool_warned in
  3144. +yes:)
  3145. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3146. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3147. +ac_tool_warned=yes ;;
  3148. +esac
  3149. + STRIP=$ac_ct_STRIP
  3150. + fi
  3151. +else
  3152. + STRIP="$ac_cv_prog_STRIP"
  3153. +fi
  3154. +
  3155. +fi
  3156. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3157. +
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3159. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3160. if test -z "$MKDIR_P"; then
  3161. @@ -3231,6 +3073,7 @@
  3162. fi
  3163. + test -d ./--version && rmdir ./--version
  3164. if test "${ac_cv_path_mkdir+set}" = set; then
  3165. MKDIR_P="$ac_cv_path_mkdir -p"
  3166. else
  3167. @@ -3238,7 +3081,6 @@
  3168. # value for MKDIR_P within a source directory, because that will
  3169. # break other packages using the cache if that directory is
  3170. # removed, or if the value is a relative name.
  3171. - test -d ./--version && rmdir ./--version
  3172. MKDIR_P="$ac_install_sh -d"
  3173. fi
  3174. fi
  3175. @@ -3383,115 +3225,13 @@
  3176. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3177. -install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  3178. +# We need awk for the "check" target. The system "awk" is bad on
  3179. +# some platforms.
  3180. +# Always define AMTAR for backward compatibility.
  3181. -# Installed binaries are usually stripped using `strip' when the user
  3182. -# run `make install-strip'. However `strip' might not be the right
  3183. -# tool to use in cross-compilation environments, therefore Automake
  3184. -# will honor the `STRIP' environment variable to overrule this program.
  3185. -if test "$cross_compiling" != no; then
  3186. - if test -n "$ac_tool_prefix"; then
  3187. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3188. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  3189. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3190. -$as_echo_n "checking for $ac_word... " >&6; }
  3191. -if test "${ac_cv_prog_STRIP+set}" = set; then :
  3192. - $as_echo_n "(cached) " >&6
  3193. -else
  3194. - if test -n "$STRIP"; then
  3195. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3196. -else
  3197. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3198. -for as_dir in $PATH
  3199. -do
  3200. - IFS=$as_save_IFS
  3201. - test -z "$as_dir" && as_dir=.
  3202. - for ac_exec_ext in '' $ac_executable_extensions; do
  3203. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3204. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3205. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3206. - break 2
  3207. - fi
  3208. -done
  3209. - done
  3210. -IFS=$as_save_IFS
  3211. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  3212. -fi
  3213. -fi
  3214. -STRIP=$ac_cv_prog_STRIP
  3215. -if test -n "$STRIP"; then
  3216. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3217. -$as_echo "$STRIP" >&6; }
  3218. -else
  3219. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3220. -$as_echo "no" >&6; }
  3221. -fi
  3222. -
  3223. -
  3224. -fi
  3225. -if test -z "$ac_cv_prog_STRIP"; then
  3226. - ac_ct_STRIP=$STRIP
  3227. - # Extract the first word of "strip", so it can be a program name with args.
  3228. -set dummy strip; ac_word=$2
  3229. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3230. -$as_echo_n "checking for $ac_word... " >&6; }
  3231. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3232. - $as_echo_n "(cached) " >&6
  3233. -else
  3234. - if test -n "$ac_ct_STRIP"; then
  3235. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3236. -else
  3237. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3238. -for as_dir in $PATH
  3239. -do
  3240. - IFS=$as_save_IFS
  3241. - test -z "$as_dir" && as_dir=.
  3242. - for ac_exec_ext in '' $ac_executable_extensions; do
  3243. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3244. - ac_cv_prog_ac_ct_STRIP="strip"
  3245. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3246. - break 2
  3247. - fi
  3248. -done
  3249. - done
  3250. -IFS=$as_save_IFS
  3251. -
  3252. -fi
  3253. -fi
  3254. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3255. -if test -n "$ac_ct_STRIP"; then
  3256. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3257. -$as_echo "$ac_ct_STRIP" >&6; }
  3258. -else
  3259. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3260. -$as_echo "no" >&6; }
  3261. -fi
  3262. -
  3263. - if test "x$ac_ct_STRIP" = x; then
  3264. - STRIP=":"
  3265. - else
  3266. - case $cross_compiling:$ac_tool_warned in
  3267. -yes:)
  3268. -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3269. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3270. -ac_tool_warned=yes ;;
  3271. -esac
  3272. - STRIP=$ac_ct_STRIP
  3273. - fi
  3274. -else
  3275. - STRIP="$ac_cv_prog_STRIP"
  3276. -fi
  3277. -
  3278. -fi
  3279. -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3280. -
  3281. -# We need awk for the "check" target. The system "awk" is bad on
  3282. -# some platforms.
  3283. -# Always define AMTAR for backward compatibility.
  3284. -
  3285. -AMTAR=${AMTAR-"${am_missing_run}tar"}
  3286. -
  3287. -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3288. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3289. @@ -3570,6 +3310,7 @@
  3290. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3291. +
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3293. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3294. # Check whether --enable-maintainer-mode was given.
  3295. @@ -3988,32 +3729,30 @@
  3296. ... rest of stderr output deleted ...
  3297. 10q' conftest.err >conftest.er1
  3298. cat conftest.er1 >&5
  3299. - rm -f conftest.er1 conftest.err
  3300. fi
  3301. + rm -f conftest.er1 conftest.err
  3302. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3303. test $ac_status = 0; }
  3304. done
  3305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3306. /* end confdefs.h. */
  3307. -#include <stdio.h>
  3308. +
  3309. int
  3310. main ()
  3311. {
  3312. -FILE *f = fopen ("conftest.out", "w");
  3313. - return ferror (f) || fclose (f) != 0;
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. ac_clean_files_save=$ac_clean_files
  3319. -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3320. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3321. # Try to create an executable without -o first, disregard a.out.
  3322. # It will help us diagnose broken compilers, and finding out an intuition
  3323. # of exeext.
  3324. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3325. -$as_echo_n "checking for C compiler default output file name... " >&6; }
  3326. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3327. +$as_echo_n "checking whether the C compiler works... " >&6; }
  3328. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3329. # The possible output files:
  3330. @@ -4075,10 +3814,10 @@
  3331. else
  3332. ac_file=''
  3333. fi
  3334. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3335. -$as_echo "$ac_file" >&6; }
  3336. if test -z "$ac_file"; then :
  3337. - $as_echo "$as_me: failed program was:" >&5
  3338. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3339. +$as_echo "no" >&6; }
  3340. +$as_echo "$as_me: failed program was:" >&5
  3341. sed 's/^/| /' conftest.$ac_ext >&5
  3342. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3343. @@ -4086,51 +3825,18 @@
  3344. { as_fn_set_status 77
  3345. as_fn_error "C compiler cannot create executables
  3346. See \`config.log' for more details." "$LINENO" 5; }; }
  3347. +else
  3348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3349. +$as_echo "yes" >&6; }
  3350. fi
  3351. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3352. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  3353. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3354. +$as_echo "$ac_file" >&6; }
  3355. ac_exeext=$ac_cv_exeext
  3356. -# Check that the compiler produces executables we can run. If not, either
  3357. -# the compiler is broken, or we cross compile.
  3358. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3359. -$as_echo_n "checking whether the C compiler works... " >&6; }
  3360. -# If not cross compiling, check that we can run a simple program.
  3361. -if test "$cross_compiling" != yes; then
  3362. - if { ac_try='./$ac_file'
  3363. - { { case "(($ac_try" in
  3364. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3365. - *) ac_try_echo=$ac_try;;
  3366. -esac
  3367. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3368. -$as_echo "$ac_try_echo"; } >&5
  3369. - (eval "$ac_try") 2>&5
  3370. - ac_status=$?
  3371. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3372. - test $ac_status = 0; }; }; then
  3373. - cross_compiling=no
  3374. - else
  3375. - if test "$cross_compiling" = maybe; then
  3376. - cross_compiling=yes
  3377. - else
  3378. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3379. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3380. -as_fn_error "cannot run C compiled programs.
  3381. -If you meant to cross compile, use \`--host'.
  3382. -See \`config.log' for more details." "$LINENO" 5; }
  3383. - fi
  3384. - fi
  3385. -fi
  3386. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3387. -$as_echo "yes" >&6; }
  3388. -
  3389. -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3390. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3391. ac_clean_files=$ac_clean_files_save
  3392. -# Check that the compiler produces executables we can run. If not, either
  3393. -# the compiler is broken, or we cross compile.
  3394. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3395. -$as_echo_n "checking whether we are cross compiling... " >&6; }
  3396. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3397. -$as_echo "$cross_compiling" >&6; }
  3398. -
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3400. $as_echo_n "checking for suffix of executables... " >&6; }
  3401. if { { ac_try="$ac_link"
  3402. @@ -4163,13 +3869,72 @@
  3403. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3404. See \`config.log' for more details." "$LINENO" 5; }
  3405. fi
  3406. -rm -f conftest$ac_cv_exeext
  3407. +rm -f conftest conftest$ac_cv_exeext
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3409. $as_echo "$ac_cv_exeext" >&6; }
  3410. rm -f conftest.$ac_ext
  3411. EXEEXT=$ac_cv_exeext
  3412. ac_exeext=$EXEEXT
  3413. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3414. +/* end confdefs.h. */
  3415. +#include <stdio.h>
  3416. +int
  3417. +main ()
  3418. +{
  3419. +FILE *f = fopen ("conftest.out", "w");
  3420. + return ferror (f) || fclose (f) != 0;
  3421. +
  3422. + ;
  3423. + return 0;
  3424. +}
  3425. +_ACEOF
  3426. +ac_clean_files="$ac_clean_files conftest.out"
  3427. +# Check that the compiler produces executables we can run. If not, either
  3428. +# the compiler is broken, or we cross compile.
  3429. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3430. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  3431. +if test "$cross_compiling" != yes; then
  3432. + { { ac_try="$ac_link"
  3433. +case "(($ac_try" in
  3434. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3435. + *) ac_try_echo=$ac_try;;
  3436. +esac
  3437. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3438. +$as_echo "$ac_try_echo"; } >&5
  3439. + (eval "$ac_link") 2>&5
  3440. + ac_status=$?
  3441. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3442. + test $ac_status = 0; }
  3443. + if { ac_try='./conftest$ac_cv_exeext'
  3444. + { { case "(($ac_try" in
  3445. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3446. + *) ac_try_echo=$ac_try;;
  3447. +esac
  3448. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3449. +$as_echo "$ac_try_echo"; } >&5
  3450. + (eval "$ac_try") 2>&5
  3451. + ac_status=$?
  3452. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3453. + test $ac_status = 0; }; }; then
  3454. + cross_compiling=no
  3455. + else
  3456. + if test "$cross_compiling" = maybe; then
  3457. + cross_compiling=yes
  3458. + else
  3459. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3460. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3461. +as_fn_error "cannot run C compiled programs.
  3462. +If you meant to cross compile, use \`--host'.
  3463. +See \`config.log' for more details." "$LINENO" 5; }
  3464. + fi
  3465. + fi
  3466. +fi
  3467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3468. +$as_echo "$cross_compiling" >&6; }
  3469. +
  3470. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3471. +ac_clean_files=$ac_clean_files_save
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3473. $as_echo_n "checking for suffix of object files... " >&6; }
  3474. if test "${ac_cv_objext+set}" = set; then :
  3475. @@ -4440,7 +4205,7 @@
  3476. am_make=${MAKE-make}
  3477. cat > confinc << 'END'
  3478. am__doit:
  3479. - @echo done
  3480. + @echo this is the am__doit target
  3481. .PHONY: am__doit
  3482. END
  3483. # If we don't find an include directive, just comment out the code.
  3484. @@ -4451,24 +4216,24 @@
  3485. _am_result=none
  3486. # First try GNU make style include.
  3487. echo "include confinc" > confmf
  3488. -# We grep out `Entering directory' and `Leaving directory'
  3489. -# messages which can occur if `w' ends up in MAKEFLAGS.
  3490. -# In particular we don't look at `^make:' because GNU make might
  3491. -# be invoked under some other name (usually "gmake"), in which
  3492. -# case it prints its new name instead of `make'.
  3493. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3494. - am__include=include
  3495. - am__quote=
  3496. - _am_result=GNU
  3497. -fi
  3498. +# Ignore all kinds of additional output from `make'.
  3499. +case `$am_make -s -f confmf 2> /dev/null` in #(
  3500. +*the\ am__doit\ target*)
  3501. + am__include=include
  3502. + am__quote=
  3503. + _am_result=GNU
  3504. + ;;
  3505. +esac
  3506. # Now try BSD make style include.
  3507. if test "$am__include" = "#"; then
  3508. echo '.include "confinc"' > confmf
  3509. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3510. - am__include=.include
  3511. - am__quote="\""
  3512. - _am_result=BSD
  3513. - fi
  3514. + case `$am_make -s -f confmf 2> /dev/null` in #(
  3515. + *the\ am__doit\ target*)
  3516. + am__include=.include
  3517. + am__quote="\""
  3518. + _am_result=BSD
  3519. + ;;
  3520. + esac
  3521. fi
  3522. @@ -4525,6 +4290,11 @@
  3523. if test "$am_compiler_list" = ""; then
  3524. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3525. fi
  3526. + am__universal=false
  3527. + case " $depcc " in #(
  3528. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3529. + esac
  3530. +
  3531. for depmode in $am_compiler_list; do
  3532. # Setup a source with many dependencies, because some compilers
  3533. # like to wrap large dependency lists on column 80 (with \), and
  3534. @@ -4542,7 +4312,17 @@
  3535. done
  3536. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3537. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3538. + # mode. It turns out that the SunPro C++ compiler does not properly
  3539. + # handle `-M -o', and we need to detect this. Also, some Intel
  3540. + # versions had trouble with output in subdirs
  3541. + am__obj=sub/conftest.${OBJEXT-o}
  3542. + am__minus_obj="-o $am__obj"
  3543. case $depmode in
  3544. + gcc)
  3545. + # This depmode causes a compiler race in universal mode.
  3546. + test "$am__universal" = false || continue
  3547. + ;;
  3548. nosideeffect)
  3549. # after this tag, mechanisms are not by side-effect, so they'll
  3550. # only be used when explicitly requested
  3551. @@ -4552,19 +4332,23 @@
  3552. break
  3553. fi
  3554. ;;
  3555. + msvisualcpp | msvcmsys)
  3556. + # This compiler won't grok `-c -o', but also, the minuso test has
  3557. + # not run yet. These depmodes are late enough in the game, and
  3558. + # so weak that their functioning should not be impacted.
  3559. + am__obj=conftest.${OBJEXT-o}
  3560. + am__minus_obj=
  3561. + ;;
  3562. none) break ;;
  3563. esac
  3564. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3565. - # mode. It turns out that the SunPro C++ compiler does not properly
  3566. - # handle `-M -o', and we need to detect this.
  3567. if depmode=$depmode \
  3568. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3569. + source=sub/conftest.c object=$am__obj \
  3570. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3571. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3572. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3573. >/dev/null 2>conftest.err &&
  3574. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3575. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3576. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3577. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3578. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3579. # icc doesn't choke on unknown options, it will just issue warnings
  3580. # or remarks (even with -Werror). So we grep stderr for any message
  3581. @@ -4903,6 +4687,9 @@
  3582. if test "$am_compiler_list" = ""; then
  3583. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3584. fi
  3585. + am__universal=false
  3586. +
  3587. +
  3588. for depmode in $am_compiler_list; do
  3589. # Setup a source with many dependencies, because some compilers
  3590. # like to wrap large dependency lists on column 80 (with \), and
  3591. @@ -4920,7 +4707,17 @@
  3592. done
  3593. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3594. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3595. + # mode. It turns out that the SunPro C++ compiler does not properly
  3596. + # handle `-M -o', and we need to detect this. Also, some Intel
  3597. + # versions had trouble with output in subdirs
  3598. + am__obj=sub/conftest.${OBJEXT-o}
  3599. + am__minus_obj="-o $am__obj"
  3600. case $depmode in
  3601. + gcc)
  3602. + # This depmode causes a compiler race in universal mode.
  3603. + test "$am__universal" = false || continue
  3604. + ;;
  3605. nosideeffect)
  3606. # after this tag, mechanisms are not by side-effect, so they'll
  3607. # only be used when explicitly requested
  3608. @@ -4930,19 +4727,23 @@
  3609. break
  3610. fi
  3611. ;;
  3612. + msvisualcpp | msvcmsys)
  3613. + # This compiler won't grok `-c -o', but also, the minuso test has
  3614. + # not run yet. These depmodes are late enough in the game, and
  3615. + # so weak that their functioning should not be impacted.
  3616. + am__obj=conftest.${OBJEXT-o}
  3617. + am__minus_obj=
  3618. + ;;
  3619. none) break ;;
  3620. esac
  3621. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3622. - # mode. It turns out that the SunPro C++ compiler does not properly
  3623. - # handle `-M -o', and we need to detect this.
  3624. if depmode=$depmode \
  3625. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3626. + source=sub/conftest.c object=$am__obj \
  3627. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3628. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3629. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3630. >/dev/null 2>conftest.err &&
  3631. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3632. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3633. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3634. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3635. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3636. # icc doesn't choke on unknown options, it will just issue warnings
  3637. # or remarks (even with -Werror). So we grep stderr for any message
  3638. @@ -5082,18 +4883,20 @@
  3639. done
  3640. +enable_win32_dll=yes
  3641. -
  3642. -if test -n "$ac_tool_prefix"; then
  3643. - # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  3644. -set dummy ${ac_tool_prefix}windres; ac_word=$2
  3645. +case $host in
  3646. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3647. + if test -n "$ac_tool_prefix"; then
  3648. + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3649. +set dummy ${ac_tool_prefix}as; ac_word=$2
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3651. $as_echo_n "checking for $ac_word... " >&6; }
  3652. -if test "${ac_cv_prog_RC+set}" = set; then :
  3653. +if test "${ac_cv_prog_AS+set}" = set; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. - if test -n "$RC"; then
  3657. - ac_cv_prog_RC="$RC" # Let the user override the test.
  3658. + if test -n "$AS"; then
  3659. + ac_cv_prog_AS="$AS" # Let the user override the test.
  3660. else
  3661. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3662. for as_dir in $PATH
  3663. @@ -5102,7 +4905,7 @@
  3664. test -z "$as_dir" && as_dir=.
  3665. for ac_exec_ext in '' $ac_executable_extensions; do
  3666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3667. - ac_cv_prog_RC="${ac_tool_prefix}windres"
  3668. + ac_cv_prog_AS="${ac_tool_prefix}as"
  3669. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3670. break 2
  3671. fi
  3672. @@ -5112,10 +4915,10 @@
  3673. fi
  3674. fi
  3675. -RC=$ac_cv_prog_RC
  3676. -if test -n "$RC"; then
  3677. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  3678. -$as_echo "$RC" >&6; }
  3679. +AS=$ac_cv_prog_AS
  3680. +if test -n "$AS"; then
  3681. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3682. +$as_echo "$AS" >&6; }
  3683. else
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3685. $as_echo "no" >&6; }
  3686. @@ -5123,17 +4926,17 @@
  3687. fi
  3688. -if test -z "$ac_cv_prog_RC"; then
  3689. - ac_ct_RC=$RC
  3690. - # Extract the first word of "windres", so it can be a program name with args.
  3691. -set dummy windres; ac_word=$2
  3692. +if test -z "$ac_cv_prog_AS"; then
  3693. + ac_ct_AS=$AS
  3694. + # Extract the first word of "as", so it can be a program name with args.
  3695. +set dummy as; ac_word=$2
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3697. $as_echo_n "checking for $ac_word... " >&6; }
  3698. -if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
  3699. +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3700. $as_echo_n "(cached) " >&6
  3701. else
  3702. - if test -n "$ac_ct_RC"; then
  3703. - ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  3704. + if test -n "$ac_ct_AS"; then
  3705. + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3706. else
  3707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3708. for as_dir in $PATH
  3709. @@ -5142,7 +4945,7 @@
  3710. test -z "$as_dir" && as_dir=.
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3713. - ac_cv_prog_ac_ct_RC="windres"
  3714. + ac_cv_prog_ac_ct_AS="as"
  3715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3716. break 2
  3717. fi
  3718. @@ -5152,17 +4955,17 @@
  3719. fi
  3720. fi
  3721. -ac_ct_RC=$ac_cv_prog_ac_ct_RC
  3722. -if test -n "$ac_ct_RC"; then
  3723. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  3724. -$as_echo "$ac_ct_RC" >&6; }
  3725. +ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3726. +if test -n "$ac_ct_AS"; then
  3727. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3728. +$as_echo "$ac_ct_AS" >&6; }
  3729. else
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3731. $as_echo "no" >&6; }
  3732. fi
  3733. - if test "x$ac_ct_RC" = x; then
  3734. - RC="no"
  3735. + if test "x$ac_ct_AS" = x; then
  3736. + AS="false"
  3737. else
  3738. case $cross_compiling:$ac_tool_warned in
  3739. yes:)
  3740. @@ -5170,1037 +4973,766 @@
  3741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3742. ac_tool_warned=yes ;;
  3743. esac
  3744. - RC=$ac_ct_RC
  3745. + AS=$ac_ct_AS
  3746. fi
  3747. else
  3748. - RC="$ac_cv_prog_RC"
  3749. + AS="$ac_cv_prog_AS"
  3750. fi
  3751. + if test -n "$ac_tool_prefix"; then
  3752. + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3753. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3755. +$as_echo_n "checking for $ac_word... " >&6; }
  3756. +if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3757. + $as_echo_n "(cached) " >&6
  3758. +else
  3759. + if test -n "$DLLTOOL"; then
  3760. + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3761. +else
  3762. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3763. +for as_dir in $PATH
  3764. +do
  3765. + IFS=$as_save_IFS
  3766. + test -z "$as_dir" && as_dir=.
  3767. + for ac_exec_ext in '' $ac_executable_extensions; do
  3768. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3769. + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3770. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3771. + break 2
  3772. + fi
  3773. +done
  3774. + done
  3775. +IFS=$as_save_IFS
  3776. -
  3777. -
  3778. -
  3779. -
  3780. -# Check whether --enable-shared was given.
  3781. -if test "${enable_shared+set}" = set; then :
  3782. - enableval=$enable_shared; p=${PACKAGE-default}
  3783. - case $enableval in
  3784. - yes) enable_shared=yes ;;
  3785. - no) enable_shared=no ;;
  3786. - *)
  3787. - enable_shared=no
  3788. - # Look at the argument we got. We use all the common list separators.
  3789. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3790. - for pkg in $enableval; do
  3791. - IFS="$lt_save_ifs"
  3792. - if test "X$pkg" = "X$p"; then
  3793. - enable_shared=yes
  3794. - fi
  3795. - done
  3796. - IFS="$lt_save_ifs"
  3797. - ;;
  3798. - esac
  3799. -else
  3800. - enable_shared=yes
  3801. fi
  3802. -
  3803. -
  3804. -# Check whether --enable-static was given.
  3805. -if test "${enable_static+set}" = set; then :
  3806. - enableval=$enable_static; p=${PACKAGE-default}
  3807. - case $enableval in
  3808. - yes) enable_static=yes ;;
  3809. - no) enable_static=no ;;
  3810. - *)
  3811. - enable_static=no
  3812. - # Look at the argument we got. We use all the common list separators.
  3813. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3814. - for pkg in $enableval; do
  3815. - IFS="$lt_save_ifs"
  3816. - if test "X$pkg" = "X$p"; then
  3817. - enable_static=yes
  3818. - fi
  3819. - done
  3820. - IFS="$lt_save_ifs"
  3821. - ;;
  3822. - esac
  3823. -else
  3824. - enable_static=yes
  3825. fi
  3826. -
  3827. -
  3828. -# Check whether --enable-fast-install was given.
  3829. -if test "${enable_fast_install+set}" = set; then :
  3830. - enableval=$enable_fast_install; p=${PACKAGE-default}
  3831. - case $enableval in
  3832. - yes) enable_fast_install=yes ;;
  3833. - no) enable_fast_install=no ;;
  3834. - *)
  3835. - enable_fast_install=no
  3836. - # Look at the argument we got. We use all the common list separators.
  3837. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3838. - for pkg in $enableval; do
  3839. - IFS="$lt_save_ifs"
  3840. - if test "X$pkg" = "X$p"; then
  3841. - enable_fast_install=yes
  3842. - fi
  3843. - done
  3844. - IFS="$lt_save_ifs"
  3845. - ;;
  3846. - esac
  3847. +DLLTOOL=$ac_cv_prog_DLLTOOL
  3848. +if test -n "$DLLTOOL"; then
  3849. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3850. +$as_echo "$DLLTOOL" >&6; }
  3851. else
  3852. - enable_fast_install=yes
  3853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3854. +$as_echo "no" >&6; }
  3855. fi
  3856. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3857. -$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3858. -if test "${lt_cv_path_SED+set}" = set; then :
  3859. +fi
  3860. +if test -z "$ac_cv_prog_DLLTOOL"; then
  3861. + ac_ct_DLLTOOL=$DLLTOOL
  3862. + # Extract the first word of "dlltool", so it can be a program name with args.
  3863. +set dummy dlltool; ac_word=$2
  3864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3865. +$as_echo_n "checking for $ac_word... " >&6; }
  3866. +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3867. $as_echo_n "(cached) " >&6
  3868. else
  3869. - # Loop through the user's path and test for sed and gsed.
  3870. -# Then use that list of sed's as ones to test for truncation.
  3871. + if test -n "$ac_ct_DLLTOOL"; then
  3872. + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3873. +else
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH
  3876. do
  3877. IFS=$as_save_IFS
  3878. test -z "$as_dir" && as_dir=.
  3879. - for lt_ac_prog in sed gsed; do
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3882. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3883. - fi
  3884. - done
  3885. - done
  3886. -done
  3887. -lt_ac_max=0
  3888. -lt_ac_count=0
  3889. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3890. -# along with /bin/sed that truncates output.
  3891. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3892. - test ! -f $lt_ac_sed && break
  3893. - cat /dev/null > conftest.in
  3894. - lt_ac_count=0
  3895. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3896. - # Check for GNU sed and select it if it is found.
  3897. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3898. - lt_cv_path_SED=$lt_ac_sed
  3899. - break
  3900. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3901. + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3902. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3903. + break 2
  3904. fi
  3905. - while true; do
  3906. - cat conftest.in conftest.in >conftest.tmp
  3907. - mv conftest.tmp conftest.in
  3908. - cp conftest.in conftest.nl
  3909. - echo >>conftest.nl
  3910. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3911. - cmp -s conftest.out conftest.nl || break
  3912. - # 10000 chars as input seems more than enough
  3913. - test $lt_ac_count -gt 10 && break
  3914. - lt_ac_count=`expr $lt_ac_count + 1`
  3915. - if test $lt_ac_count -gt $lt_ac_max; then
  3916. - lt_ac_max=$lt_ac_count
  3917. - lt_cv_path_SED=$lt_ac_sed
  3918. - fi
  3919. - done
  3920. done
  3921. -SED=$lt_cv_path_SED
  3922. + done
  3923. +IFS=$as_save_IFS
  3924. fi
  3925. +fi
  3926. +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3927. +if test -n "$ac_ct_DLLTOOL"; then
  3928. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3929. +$as_echo "$ac_ct_DLLTOOL" >&6; }
  3930. +else
  3931. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3932. +$as_echo "no" >&6; }
  3933. +fi
  3934. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3935. -$as_echo "$SED" >&6; }
  3936. + if test "x$ac_ct_DLLTOOL" = x; then
  3937. + DLLTOOL="false"
  3938. + else
  3939. + case $cross_compiling:$ac_tool_warned in
  3940. +yes:)
  3941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3942. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3943. +ac_tool_warned=yes ;;
  3944. +esac
  3945. + DLLTOOL=$ac_ct_DLLTOOL
  3946. + fi
  3947. +else
  3948. + DLLTOOL="$ac_cv_prog_DLLTOOL"
  3949. +fi
  3950. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3951. -$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3952. -if test "${ac_cv_path_GREP+set}" = set; then :
  3953. + if test -n "$ac_tool_prefix"; then
  3954. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3955. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3956. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3957. +$as_echo_n "checking for $ac_word... " >&6; }
  3958. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3959. $as_echo_n "(cached) " >&6
  3960. else
  3961. - if test -z "$GREP"; then
  3962. - ac_path_GREP_found=false
  3963. - # Loop through the user's path and test for each of PROGNAME-LIST
  3964. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3965. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3966. + if test -n "$OBJDUMP"; then
  3967. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3968. +else
  3969. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3970. +for as_dir in $PATH
  3971. do
  3972. IFS=$as_save_IFS
  3973. test -z "$as_dir" && as_dir=.
  3974. - for ac_prog in grep ggrep; do
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3977. - { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3978. -# Check for GNU ac_path_GREP and select it if it is found.
  3979. - # Check for GNU $ac_path_GREP
  3980. -case `"$ac_path_GREP" --version 2>&1` in
  3981. -*GNU*)
  3982. - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3983. -*)
  3984. - ac_count=0
  3985. - $as_echo_n 0123456789 >"conftest.in"
  3986. - while :
  3987. - do
  3988. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  3989. - mv "conftest.tmp" "conftest.in"
  3990. - cp "conftest.in" "conftest.nl"
  3991. - $as_echo 'GREP' >> "conftest.nl"
  3992. - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3993. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3994. - as_fn_arith $ac_count + 1 && ac_count=$as_val
  3995. - if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3996. - # Best one so far, save it but keep looking for a better one
  3997. - ac_cv_path_GREP="$ac_path_GREP"
  3998. - ac_path_GREP_max=$ac_count
  3999. - fi
  4000. - # 10*(2^10) chars as input seems more than enough
  4001. - test $ac_count -gt 10 && break
  4002. - done
  4003. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4004. -esac
  4005. -
  4006. - $ac_path_GREP_found && break 3
  4007. - done
  4008. - done
  4009. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4010. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4011. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4012. + break 2
  4013. + fi
  4014. +done
  4015. done
  4016. IFS=$as_save_IFS
  4017. - if test -z "$ac_cv_path_GREP"; then
  4018. - as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4019. - fi
  4020. -else
  4021. - ac_cv_path_GREP=$GREP
  4022. -fi
  4023. fi
  4024. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4025. -$as_echo "$ac_cv_path_GREP" >&6; }
  4026. - GREP="$ac_cv_path_GREP"
  4027. +fi
  4028. +OBJDUMP=$ac_cv_prog_OBJDUMP
  4029. +if test -n "$OBJDUMP"; then
  4030. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4031. +$as_echo "$OBJDUMP" >&6; }
  4032. +else
  4033. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4034. +$as_echo "no" >&6; }
  4035. +fi
  4036. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4037. -$as_echo_n "checking for egrep... " >&6; }
  4038. -if test "${ac_cv_path_EGREP+set}" = set; then :
  4039. +fi
  4040. +if test -z "$ac_cv_prog_OBJDUMP"; then
  4041. + ac_ct_OBJDUMP=$OBJDUMP
  4042. + # Extract the first word of "objdump", so it can be a program name with args.
  4043. +set dummy objdump; ac_word=$2
  4044. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4045. +$as_echo_n "checking for $ac_word... " >&6; }
  4046. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4047. $as_echo_n "(cached) " >&6
  4048. else
  4049. - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4050. - then ac_cv_path_EGREP="$GREP -E"
  4051. - else
  4052. - if test -z "$EGREP"; then
  4053. - ac_path_EGREP_found=false
  4054. - # Loop through the user's path and test for each of PROGNAME-LIST
  4055. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4056. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4057. + if test -n "$ac_ct_OBJDUMP"; then
  4058. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4059. +else
  4060. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4061. +for as_dir in $PATH
  4062. do
  4063. IFS=$as_save_IFS
  4064. test -z "$as_dir" && as_dir=.
  4065. - for ac_prog in egrep; do
  4066. for ac_exec_ext in '' $ac_executable_extensions; do
  4067. - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4068. - { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4069. -# Check for GNU ac_path_EGREP and select it if it is found.
  4070. - # Check for GNU $ac_path_EGREP
  4071. -case `"$ac_path_EGREP" --version 2>&1` in
  4072. -*GNU*)
  4073. - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4074. -*)
  4075. - ac_count=0
  4076. - $as_echo_n 0123456789 >"conftest.in"
  4077. - while :
  4078. - do
  4079. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  4080. - mv "conftest.tmp" "conftest.in"
  4081. - cp "conftest.in" "conftest.nl"
  4082. - $as_echo 'EGREP' >> "conftest.nl"
  4083. - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4084. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4085. - as_fn_arith $ac_count + 1 && ac_count=$as_val
  4086. - if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4087. - # Best one so far, save it but keep looking for a better one
  4088. - ac_cv_path_EGREP="$ac_path_EGREP"
  4089. - ac_path_EGREP_max=$ac_count
  4090. - fi
  4091. - # 10*(2^10) chars as input seems more than enough
  4092. - test $ac_count -gt 10 && break
  4093. - done
  4094. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4095. -esac
  4096. -
  4097. - $ac_path_EGREP_found && break 3
  4098. - done
  4099. - done
  4100. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4101. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4102. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4103. + break 2
  4104. + fi
  4105. +done
  4106. done
  4107. IFS=$as_save_IFS
  4108. - if test -z "$ac_cv_path_EGREP"; then
  4109. - as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4110. - fi
  4111. -else
  4112. - ac_cv_path_EGREP=$EGREP
  4113. -fi
  4114. -
  4115. - fi
  4116. -fi
  4117. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4118. -$as_echo "$ac_cv_path_EGREP" >&6; }
  4119. - EGREP="$ac_cv_path_EGREP"
  4120. -
  4121. -
  4122. -
  4123. -# Check whether --with-gnu-ld was given.
  4124. -if test "${with_gnu_ld+set}" = set; then :
  4125. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4126. -else
  4127. - with_gnu_ld=no
  4128. -fi
  4129. -ac_prog=ld
  4130. -if test "$GCC" = yes; then
  4131. - # Check if gcc -print-prog-name=ld gives a path.
  4132. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4133. -$as_echo_n "checking for ld used by $CC... " >&6; }
  4134. - case $host in
  4135. - *-*-mingw*)
  4136. - # gcc leaves a trailing carriage return which upsets mingw
  4137. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4138. - *)
  4139. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4140. - esac
  4141. - case $ac_prog in
  4142. - # Accept absolute paths.
  4143. - [\\/]* | ?:[\\/]*)
  4144. - re_direlt='/[^/][^/]*/\.\./'
  4145. - # Canonicalize the pathname of ld
  4146. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4147. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4148. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4149. - done
  4150. - test -z "$LD" && LD="$ac_prog"
  4151. - ;;
  4152. - "")
  4153. - # If it fails, then pretend we aren't using GCC.
  4154. - ac_prog=ld
  4155. - ;;
  4156. - *)
  4157. - # If it is relative, then search for the first ld in PATH.
  4158. - with_gnu_ld=unknown
  4159. - ;;
  4160. - esac
  4161. -elif test "$with_gnu_ld" = yes; then
  4162. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4163. -$as_echo_n "checking for GNU ld... " >&6; }
  4164. -else
  4165. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4166. -$as_echo_n "checking for non-GNU ld... " >&6; }
  4167. -fi
  4168. -if test "${lt_cv_path_LD+set}" = set; then :
  4169. - $as_echo_n "(cached) " >&6
  4170. -else
  4171. - if test -z "$LD"; then
  4172. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4173. - for ac_dir in $PATH; do
  4174. - IFS="$lt_save_ifs"
  4175. - test -z "$ac_dir" && ac_dir=.
  4176. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4177. - lt_cv_path_LD="$ac_dir/$ac_prog"
  4178. - # Check to see if the program is GNU ld. I'd rather use --version,
  4179. - # but apparently some GNU ld's only accept -v.
  4180. - # Break only if it was the GNU/non-GNU ld that we prefer.
  4181. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4182. - *GNU* | *'with BFD'*)
  4183. - test "$with_gnu_ld" != no && break
  4184. - ;;
  4185. - *)
  4186. - test "$with_gnu_ld" != yes && break
  4187. - ;;
  4188. - esac
  4189. - fi
  4190. - done
  4191. - IFS="$lt_save_ifs"
  4192. -else
  4193. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4194. fi
  4195. fi
  4196. -
  4197. -LD="$lt_cv_path_LD"
  4198. -if test -n "$LD"; then
  4199. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4200. -$as_echo "$LD" >&6; }
  4201. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4202. +if test -n "$ac_ct_OBJDUMP"; then
  4203. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4204. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  4205. else
  4206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4207. $as_echo "no" >&6; }
  4208. fi
  4209. -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4210. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4211. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4212. -if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4213. - $as_echo_n "(cached) " >&6
  4214. +
  4215. + if test "x$ac_ct_OBJDUMP" = x; then
  4216. + OBJDUMP="false"
  4217. + else
  4218. + case $cross_compiling:$ac_tool_warned in
  4219. +yes:)
  4220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4221. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4222. +ac_tool_warned=yes ;;
  4223. +esac
  4224. + OBJDUMP=$ac_ct_OBJDUMP
  4225. + fi
  4226. else
  4227. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4228. -case `$LD -v 2>&1 </dev/null` in
  4229. -*GNU* | *'with BFD'*)
  4230. - lt_cv_prog_gnu_ld=yes
  4231. - ;;
  4232. -*)
  4233. - lt_cv_prog_gnu_ld=no
  4234. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  4235. +fi
  4236. +
  4237. ;;
  4238. esac
  4239. -fi
  4240. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4241. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4242. -with_gnu_ld=$lt_cv_prog_gnu_ld
  4243. +test -z "$AS" && AS=as
  4244. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4245. -$as_echo_n "checking for $LD option to reload object files... " >&6; }
  4246. -if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4247. - $as_echo_n "(cached) " >&6
  4248. -else
  4249. - lt_cv_ld_reload_flag='-r'
  4250. -fi
  4251. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4252. -$as_echo "$lt_cv_ld_reload_flag" >&6; }
  4253. -reload_flag=$lt_cv_ld_reload_flag
  4254. -case $reload_flag in
  4255. -"" | " "*) ;;
  4256. -*) reload_flag=" $reload_flag" ;;
  4257. -esac
  4258. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4259. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
  4260. -$as_echo_n "checking for BSD-compatible nm... " >&6; }
  4261. -if test "${lt_cv_path_NM+set}" = set; then :
  4262. - $as_echo_n "(cached) " >&6
  4263. -else
  4264. - if test -n "$NM"; then
  4265. - # Let the user override the test.
  4266. - lt_cv_path_NM="$NM"
  4267. -else
  4268. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4269. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4270. - IFS="$lt_save_ifs"
  4271. - test -z "$ac_dir" && ac_dir=.
  4272. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4273. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4274. - # Check to see if the nm accepts a BSD-compat flag.
  4275. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4276. - # nm: unknown option "B" ignored
  4277. - # Tru64's nm complains that /dev/null is an invalid object file
  4278. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4279. - */dev/null* | *'Invalid file or object type'*)
  4280. - lt_cv_path_NM="$tmp_nm -B"
  4281. - break
  4282. - ;;
  4283. - *)
  4284. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4285. - */dev/null*)
  4286. - lt_cv_path_NM="$tmp_nm -p"
  4287. - break
  4288. - ;;
  4289. - *)
  4290. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4291. - continue # so that we can try to find one that supports BSD flags
  4292. - ;;
  4293. - esac
  4294. - esac
  4295. - fi
  4296. - done
  4297. - IFS="$lt_save_ifs"
  4298. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4299. -fi
  4300. -fi
  4301. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4302. -$as_echo "$lt_cv_path_NM" >&6; }
  4303. -NM="$lt_cv_path_NM"
  4304. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4305. -$as_echo_n "checking whether ln -s works... " >&6; }
  4306. -LN_S=$as_ln_s
  4307. -if test "$LN_S" = "ln -s"; then
  4308. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4309. -$as_echo "yes" >&6; }
  4310. -else
  4311. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4312. -$as_echo "no, using $LN_S" >&6; }
  4313. -fi
  4314. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
  4315. -$as_echo_n "checking how to recognise dependent libraries... " >&6; }
  4316. -if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4317. - $as_echo_n "(cached) " >&6
  4318. -else
  4319. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  4320. -lt_cv_file_magic_test_file=
  4321. -lt_cv_deplibs_check_method='unknown'
  4322. -# Need to set the preceding variable on all platforms that support
  4323. -# interlibrary dependencies.
  4324. -# 'none' -- dependencies not supported.
  4325. -# `unknown' -- same as none, but documents that we really don't know.
  4326. -# 'pass_all' -- all dependencies passed with no checks.
  4327. -# 'test_compile' -- check by making test program.
  4328. -# 'file_magic [[regex]]' -- check by looking for files in library path
  4329. -# which responds to the $file_magic_cmd with a given extended regex.
  4330. -# If you have `file' or equivalent on your system and you're not sure
  4331. -# whether `pass_all' will *always* work, you probably want this one.
  4332. -case $host_os in
  4333. -aix4* | aix5*)
  4334. - lt_cv_deplibs_check_method=pass_all
  4335. - ;;
  4336. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  4337. -beos*)
  4338. - lt_cv_deplibs_check_method=pass_all
  4339. - ;;
  4340. -bsdi4*)
  4341. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4342. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  4343. - lt_cv_file_magic_test_file=/shlib/libc.so
  4344. - ;;
  4345. -cygwin*)
  4346. - # func_win32_libid is a shell function defined in ltmain.sh
  4347. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4348. - lt_cv_file_magic_cmd='func_win32_libid'
  4349. - ;;
  4350. -mingw* | pw32*)
  4351. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4352. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4353. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4354. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4355. - ;;
  4356. -darwin* | rhapsody*)
  4357. - lt_cv_deplibs_check_method=pass_all
  4358. - ;;
  4359. +test -z "$OBJDUMP" && OBJDUMP=objdump
  4360. -freebsd* | kfreebsd*-gnu)
  4361. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4362. - case $host_cpu in
  4363. - i*86 )
  4364. - # Not sure whether the presence of OpenBSD here was a mistake.
  4365. - # Let's accept both of them until this is cleared up.
  4366. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  4367. - lt_cv_file_magic_cmd=/usr/bin/file
  4368. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4369. - ;;
  4370. - esac
  4371. - else
  4372. - lt_cv_deplibs_check_method=pass_all
  4373. - fi
  4374. - ;;
  4375. -gnu*)
  4376. - lt_cv_deplibs_check_method=pass_all
  4377. - ;;
  4378. -hpux10.20* | hpux11*)
  4379. - lt_cv_file_magic_cmd=/usr/bin/file
  4380. - case "$host_cpu" in
  4381. - ia64*)
  4382. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4383. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4384. - ;;
  4385. - hppa*64*)
  4386. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4387. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4388. - ;;
  4389. - *)
  4390. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4391. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4392. - ;;
  4393. - esac
  4394. - ;;
  4395. -irix5* | irix6* | nonstopux*)
  4396. - case $LD in
  4397. - *-32|*"-32 ") libmagic=32-bit;;
  4398. - *-n32|*"-n32 ") libmagic=N32;;
  4399. - *-64|*"-64 ") libmagic=64-bit;;
  4400. - *) libmagic=never-match;;
  4401. - esac
  4402. - lt_cv_deplibs_check_method=pass_all
  4403. - ;;
  4404. -
  4405. -# This must be Linux ELF.
  4406. -linux*)
  4407. - lt_cv_deplibs_check_method=pass_all
  4408. - ;;
  4409. -
  4410. -netbsd* | knetbsd*-gnu)
  4411. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4412. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4413. - else
  4414. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4415. - fi
  4416. - ;;
  4417. -
  4418. -newos6*)
  4419. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4420. - lt_cv_file_magic_cmd=/usr/bin/file
  4421. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4422. - ;;
  4423. -
  4424. -nto-qnx*)
  4425. - lt_cv_deplibs_check_method=unknown
  4426. - ;;
  4427. -openbsd*)
  4428. - lt_cv_file_magic_cmd=/usr/bin/file
  4429. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4430. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4431. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  4432. - else
  4433. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  4434. - fi
  4435. - ;;
  4436. -osf3* | osf4* | osf5*)
  4437. - lt_cv_deplibs_check_method=pass_all
  4438. - ;;
  4439. -sco3.2v5*)
  4440. - lt_cv_deplibs_check_method=pass_all
  4441. - ;;
  4442. -solaris*)
  4443. - lt_cv_deplibs_check_method=pass_all
  4444. - ;;
  4445. +case `pwd` in
  4446. + *\ * | *\ *)
  4447. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4448. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4449. +esac
  4450. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4451. - case $host_vendor in
  4452. - motorola)
  4453. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4454. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4455. - ;;
  4456. - ncr)
  4457. - lt_cv_deplibs_check_method=pass_all
  4458. - ;;
  4459. - sequent)
  4460. - lt_cv_file_magic_cmd='/bin/file'
  4461. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4462. - ;;
  4463. - sni)
  4464. - lt_cv_file_magic_cmd='/bin/file'
  4465. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4466. - lt_cv_file_magic_test_file=/lib/libc.so
  4467. - ;;
  4468. - siemens)
  4469. - lt_cv_deplibs_check_method=pass_all
  4470. - ;;
  4471. - esac
  4472. - ;;
  4473. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4474. - lt_cv_deplibs_check_method=pass_all
  4475. - ;;
  4476. -esac
  4477. -fi
  4478. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4479. -$as_echo "$lt_cv_deplibs_check_method" >&6; }
  4480. -file_magic_cmd=$lt_cv_file_magic_cmd
  4481. -deplibs_check_method=$lt_cv_deplibs_check_method
  4482. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4483. +macro_version='2.2.6b'
  4484. +macro_revision='1.3017'
  4485. -# If no C compiler was specified, use CC.
  4486. -LTCC=${LTCC-"$CC"}
  4487. -# Allow CC to be a program name with arguments.
  4488. -compiler=$CC
  4489. -# Check whether --enable-libtool-lock was given.
  4490. -if test "${enable_libtool_lock+set}" = set; then :
  4491. - enableval=$enable_libtool_lock;
  4492. -fi
  4493. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4494. -# Some flags need to be propagated to the compiler or linker for good
  4495. -# libtool support.
  4496. -case $host in
  4497. -ia64-*-hpux*)
  4498. - # Find out which ABI we are using.
  4499. - echo 'int i;' > conftest.$ac_ext
  4500. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4501. - (eval $ac_compile) 2>&5
  4502. - ac_status=$?
  4503. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4504. - test $ac_status = 0; }; then
  4505. - case `/usr/bin/file conftest.$ac_objext` in
  4506. - *ELF-32*)
  4507. - HPUX_IA64_MODE="32"
  4508. - ;;
  4509. - *ELF-64*)
  4510. - HPUX_IA64_MODE="64"
  4511. - ;;
  4512. - esac
  4513. - fi
  4514. - rm -rf conftest*
  4515. - ;;
  4516. -*-*-irix6*)
  4517. - # Find out which ABI we are using.
  4518. - echo '#line 5841 "configure"' > conftest.$ac_ext
  4519. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4520. - (eval $ac_compile) 2>&5
  4521. - ac_status=$?
  4522. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4523. - test $ac_status = 0; }; then
  4524. - if test "$lt_cv_prog_gnu_ld" = yes; then
  4525. - case `/usr/bin/file conftest.$ac_objext` in
  4526. - *32-bit*)
  4527. - LD="${LD-ld} -melf32bsmip"
  4528. - ;;
  4529. - *N32*)
  4530. - LD="${LD-ld} -melf32bmipn32"
  4531. - ;;
  4532. - *64-bit*)
  4533. - LD="${LD-ld} -melf64bmip"
  4534. - ;;
  4535. - esac
  4536. - else
  4537. - case `/usr/bin/file conftest.$ac_objext` in
  4538. - *32-bit*)
  4539. - LD="${LD-ld} -32"
  4540. - ;;
  4541. - *N32*)
  4542. - LD="${LD-ld} -n32"
  4543. - ;;
  4544. - *64-bit*)
  4545. - LD="${LD-ld} -64"
  4546. - ;;
  4547. - esac
  4548. - fi
  4549. - fi
  4550. - rm -rf conftest*
  4551. - ;;
  4552. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4553. - # Find out which ABI we are using.
  4554. - echo 'int i;' > conftest.$ac_ext
  4555. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4556. - (eval $ac_compile) 2>&5
  4557. - ac_status=$?
  4558. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4559. - test $ac_status = 0; }; then
  4560. - case "`/usr/bin/file conftest.o`" in
  4561. - *32-bit*)
  4562. - case $host in
  4563. - x86_64-*linux*)
  4564. - LD="${LD-ld} -m elf_i386"
  4565. - ;;
  4566. - ppc64-*linux*|powerpc64-*linux*)
  4567. - LD="${LD-ld} -m elf32ppclinux"
  4568. - ;;
  4569. - s390x-*linux*)
  4570. - LD="${LD-ld} -m elf_s390"
  4571. - ;;
  4572. - sparc64-*linux*)
  4573. - LD="${LD-ld} -m elf32_sparc"
  4574. - ;;
  4575. - esac
  4576. - ;;
  4577. - *64-bit*)
  4578. - case $host in
  4579. - x86_64-*linux*)
  4580. - LD="${LD-ld} -m elf_x86_64"
  4581. - ;;
  4582. - ppc*-*linux*|powerpc*-*linux*)
  4583. - LD="${LD-ld} -m elf64ppc"
  4584. - ;;
  4585. - s390*-*linux*)
  4586. - LD="${LD-ld} -m elf64_s390"
  4587. - ;;
  4588. - sparc*-*linux*)
  4589. - LD="${LD-ld} -m elf64_sparc"
  4590. - ;;
  4591. - esac
  4592. - ;;
  4593. - esac
  4594. - fi
  4595. - rm -rf conftest*
  4596. - ;;
  4597. -*-*-sco3.2v5*)
  4598. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4599. - SAVE_CFLAGS="$CFLAGS"
  4600. - CFLAGS="$CFLAGS -belf"
  4601. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  4602. -$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4603. -if test "${lt_cv_cc_needs_belf+set}" = set; then :
  4604. - $as_echo_n "(cached) " >&6
  4605. -else
  4606. - ac_ext=c
  4607. -ac_cpp='$CPP $CPPFLAGS'
  4608. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4609. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4610. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4611. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4612. -/* end confdefs.h. */
  4613. -int
  4614. -main ()
  4615. -{
  4616. - ;
  4617. - return 0;
  4618. -}
  4619. -_ACEOF
  4620. -if ac_fn_c_try_link "$LINENO"; then :
  4621. - lt_cv_cc_needs_belf=yes
  4622. -else
  4623. - lt_cv_cc_needs_belf=no
  4624. -fi
  4625. -rm -f core conftest.err conftest.$ac_objext \
  4626. - conftest$ac_exeext conftest.$ac_ext
  4627. - ac_ext=c
  4628. -ac_cpp='$CPP $CPPFLAGS'
  4629. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4630. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4631. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4632. +ltmain="$ac_aux_dir/ltmain.sh"
  4633. -fi
  4634. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  4635. -$as_echo "$lt_cv_cc_needs_belf" >&6; }
  4636. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4637. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4638. - CFLAGS="$SAVE_CFLAGS"
  4639. - fi
  4640. - ;;
  4641. -*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  4642. - if test -n "$ac_tool_prefix"; then
  4643. - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4644. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4645. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4646. -$as_echo_n "checking for $ac_word... " >&6; }
  4647. -if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  4648. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4649. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4650. +if test "${ac_cv_path_SED+set}" = set; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. - if test -n "$DLLTOOL"; then
  4654. - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4655. -else
  4656. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4657. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4658. + for ac_i in 1 2 3 4 5 6 7; do
  4659. + ac_script="$ac_script$as_nl$ac_script"
  4660. + done
  4661. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4662. + { ac_script=; unset ac_script;}
  4663. + if test -z "$SED"; then
  4664. + ac_path_SED_found=false
  4665. + # Loop through the user's path and test for each of PROGNAME-LIST
  4666. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4667. for as_dir in $PATH
  4668. do
  4669. IFS=$as_save_IFS
  4670. test -z "$as_dir" && as_dir=.
  4671. + for ac_prog in sed gsed; do
  4672. for ac_exec_ext in '' $ac_executable_extensions; do
  4673. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4674. - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4675. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4676. - break 2
  4677. - fi
  4678. -done
  4679. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4680. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4681. +# Check for GNU ac_path_SED and select it if it is found.
  4682. + # Check for GNU $ac_path_SED
  4683. +case `"$ac_path_SED" --version 2>&1` in
  4684. +*GNU*)
  4685. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4686. +*)
  4687. + ac_count=0
  4688. + $as_echo_n 0123456789 >"conftest.in"
  4689. + while :
  4690. + do
  4691. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4692. + mv "conftest.tmp" "conftest.in"
  4693. + cp "conftest.in" "conftest.nl"
  4694. + $as_echo '' >> "conftest.nl"
  4695. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4696. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4697. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  4698. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  4699. + # Best one so far, save it but keep looking for a better one
  4700. + ac_cv_path_SED="$ac_path_SED"
  4701. + ac_path_SED_max=$ac_count
  4702. + fi
  4703. + # 10*(2^10) chars as input seems more than enough
  4704. + test $ac_count -gt 10 && break
  4705. done
  4706. -IFS=$as_save_IFS
  4707. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4708. +esac
  4709. -fi
  4710. -fi
  4711. -DLLTOOL=$ac_cv_prog_DLLTOOL
  4712. -if test -n "$DLLTOOL"; then
  4713. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4714. -$as_echo "$DLLTOOL" >&6; }
  4715. + $ac_path_SED_found && break 3
  4716. + done
  4717. + done
  4718. + done
  4719. +IFS=$as_save_IFS
  4720. + if test -z "$ac_cv_path_SED"; then
  4721. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4722. + fi
  4723. else
  4724. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4725. -$as_echo "no" >&6; }
  4726. + ac_cv_path_SED=$SED
  4727. fi
  4728. -
  4729. fi
  4730. -if test -z "$ac_cv_prog_DLLTOOL"; then
  4731. - ac_ct_DLLTOOL=$DLLTOOL
  4732. - # Extract the first word of "dlltool", so it can be a program name with args.
  4733. -set dummy dlltool; ac_word=$2
  4734. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4735. -$as_echo_n "checking for $ac_word... " >&6; }
  4736. -if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  4737. - $as_echo_n "(cached) " >&6
  4738. -else
  4739. - if test -n "$ac_ct_DLLTOOL"; then
  4740. - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4741. -else
  4742. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4743. -for as_dir in $PATH
  4744. -do
  4745. - IFS=$as_save_IFS
  4746. - test -z "$as_dir" && as_dir=.
  4747. - for ac_exec_ext in '' $ac_executable_extensions; do
  4748. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4749. - ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4750. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4751. - break 2
  4752. - fi
  4753. -done
  4754. - done
  4755. -IFS=$as_save_IFS
  4756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4757. +$as_echo "$ac_cv_path_SED" >&6; }
  4758. + SED="$ac_cv_path_SED"
  4759. + rm -f conftest.sed
  4760. -fi
  4761. -fi
  4762. -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4763. -if test -n "$ac_ct_DLLTOOL"; then
  4764. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4765. -$as_echo "$ac_ct_DLLTOOL" >&6; }
  4766. -else
  4767. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4768. -$as_echo "no" >&6; }
  4769. -fi
  4770. +test -z "$SED" && SED=sed
  4771. +Xsed="$SED -e 1s/^X//"
  4772. - if test "x$ac_ct_DLLTOOL" = x; then
  4773. - DLLTOOL="false"
  4774. - else
  4775. - case $cross_compiling:$ac_tool_warned in
  4776. -yes:)
  4777. -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4778. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4779. -ac_tool_warned=yes ;;
  4780. -esac
  4781. - DLLTOOL=$ac_ct_DLLTOOL
  4782. - fi
  4783. -else
  4784. - DLLTOOL="$ac_cv_prog_DLLTOOL"
  4785. -fi
  4786. - if test -n "$ac_tool_prefix"; then
  4787. - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4788. -set dummy ${ac_tool_prefix}as; ac_word=$2
  4789. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4790. -$as_echo_n "checking for $ac_word... " >&6; }
  4791. -if test "${ac_cv_prog_AS+set}" = set; then :
  4792. +
  4793. +
  4794. +
  4795. +
  4796. +
  4797. +
  4798. +
  4799. +
  4800. +
  4801. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4802. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4803. +if test "${ac_cv_path_GREP+set}" = set; then :
  4804. $as_echo_n "(cached) " >&6
  4805. else
  4806. - if test -n "$AS"; then
  4807. - ac_cv_prog_AS="$AS" # Let the user override the test.
  4808. -else
  4809. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4810. -for as_dir in $PATH
  4811. + if test -z "$GREP"; then
  4812. + ac_path_GREP_found=false
  4813. + # Loop through the user's path and test for each of PROGNAME-LIST
  4814. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. + for ac_prog in grep ggrep; do
  4820. for ac_exec_ext in '' $ac_executable_extensions; do
  4821. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4822. - ac_cv_prog_AS="${ac_tool_prefix}as"
  4823. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4824. - break 2
  4825. - fi
  4826. -done
  4827. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4828. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4829. +# Check for GNU ac_path_GREP and select it if it is found.
  4830. + # Check for GNU $ac_path_GREP
  4831. +case `"$ac_path_GREP" --version 2>&1` in
  4832. +*GNU*)
  4833. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4834. +*)
  4835. + ac_count=0
  4836. + $as_echo_n 0123456789 >"conftest.in"
  4837. + while :
  4838. + do
  4839. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4840. + mv "conftest.tmp" "conftest.in"
  4841. + cp "conftest.in" "conftest.nl"
  4842. + $as_echo 'GREP' >> "conftest.nl"
  4843. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4844. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4845. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  4846. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4847. + # Best one so far, save it but keep looking for a better one
  4848. + ac_cv_path_GREP="$ac_path_GREP"
  4849. + ac_path_GREP_max=$ac_count
  4850. + fi
  4851. + # 10*(2^10) chars as input seems more than enough
  4852. + test $ac_count -gt 10 && break
  4853. done
  4854. -IFS=$as_save_IFS
  4855. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4856. +esac
  4857. -fi
  4858. -fi
  4859. -AS=$ac_cv_prog_AS
  4860. -if test -n "$AS"; then
  4861. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4862. -$as_echo "$AS" >&6; }
  4863. + $ac_path_GREP_found && break 3
  4864. + done
  4865. + done
  4866. + done
  4867. +IFS=$as_save_IFS
  4868. + if test -z "$ac_cv_path_GREP"; then
  4869. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4870. + fi
  4871. else
  4872. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4873. -$as_echo "no" >&6; }
  4874. + ac_cv_path_GREP=$GREP
  4875. fi
  4876. -
  4877. fi
  4878. -if test -z "$ac_cv_prog_AS"; then
  4879. - ac_ct_AS=$AS
  4880. - # Extract the first word of "as", so it can be a program name with args.
  4881. -set dummy as; ac_word=$2
  4882. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4883. -$as_echo_n "checking for $ac_word... " >&6; }
  4884. -if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4885. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4886. +$as_echo "$ac_cv_path_GREP" >&6; }
  4887. + GREP="$ac_cv_path_GREP"
  4888. +
  4889. +
  4890. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4891. +$as_echo_n "checking for egrep... " >&6; }
  4892. +if test "${ac_cv_path_EGREP+set}" = set; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. - if test -n "$ac_ct_AS"; then
  4896. - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4897. -else
  4898. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4899. -for as_dir in $PATH
  4900. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4901. + then ac_cv_path_EGREP="$GREP -E"
  4902. + else
  4903. + if test -z "$EGREP"; then
  4904. + ac_path_EGREP_found=false
  4905. + # Loop through the user's path and test for each of PROGNAME-LIST
  4906. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4907. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4908. do
  4909. IFS=$as_save_IFS
  4910. test -z "$as_dir" && as_dir=.
  4911. + for ac_prog in egrep; do
  4912. for ac_exec_ext in '' $ac_executable_extensions; do
  4913. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4914. - ac_cv_prog_ac_ct_AS="as"
  4915. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4916. - break 2
  4917. - fi
  4918. -done
  4919. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4920. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4921. +# Check for GNU ac_path_EGREP and select it if it is found.
  4922. + # Check for GNU $ac_path_EGREP
  4923. +case `"$ac_path_EGREP" --version 2>&1` in
  4924. +*GNU*)
  4925. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4926. +*)
  4927. + ac_count=0
  4928. + $as_echo_n 0123456789 >"conftest.in"
  4929. + while :
  4930. + do
  4931. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  4932. + mv "conftest.tmp" "conftest.in"
  4933. + cp "conftest.in" "conftest.nl"
  4934. + $as_echo 'EGREP' >> "conftest.nl"
  4935. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4936. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4937. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  4938. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4939. + # Best one so far, save it but keep looking for a better one
  4940. + ac_cv_path_EGREP="$ac_path_EGREP"
  4941. + ac_path_EGREP_max=$ac_count
  4942. + fi
  4943. + # 10*(2^10) chars as input seems more than enough
  4944. + test $ac_count -gt 10 && break
  4945. done
  4946. -IFS=$as_save_IFS
  4947. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4948. +esac
  4949. -fi
  4950. -fi
  4951. -ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4952. -if test -n "$ac_ct_AS"; then
  4953. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4954. -$as_echo "$ac_ct_AS" >&6; }
  4955. + $ac_path_EGREP_found && break 3
  4956. + done
  4957. + done
  4958. + done
  4959. +IFS=$as_save_IFS
  4960. + if test -z "$ac_cv_path_EGREP"; then
  4961. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4962. + fi
  4963. else
  4964. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4965. -$as_echo "no" >&6; }
  4966. + ac_cv_path_EGREP=$EGREP
  4967. fi
  4968. - if test "x$ac_ct_AS" = x; then
  4969. - AS="false"
  4970. - else
  4971. - case $cross_compiling:$ac_tool_warned in
  4972. -yes:)
  4973. -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4974. -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4975. -ac_tool_warned=yes ;;
  4976. -esac
  4977. - AS=$ac_ct_AS
  4978. - fi
  4979. -else
  4980. - AS="$ac_cv_prog_AS"
  4981. + fi
  4982. fi
  4983. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4984. +$as_echo "$ac_cv_path_EGREP" >&6; }
  4985. + EGREP="$ac_cv_path_EGREP"
  4986. - if test -n "$ac_tool_prefix"; then
  4987. - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4988. -set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4989. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4990. -$as_echo_n "checking for $ac_word... " >&6; }
  4991. -if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4992. +
  4993. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4994. +$as_echo_n "checking for fgrep... " >&6; }
  4995. +if test "${ac_cv_path_FGREP+set}" = set; then :
  4996. $as_echo_n "(cached) " >&6
  4997. else
  4998. - if test -n "$OBJDUMP"; then
  4999. - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5000. -else
  5001. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5002. -for as_dir in $PATH
  5003. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5004. + then ac_cv_path_FGREP="$GREP -F"
  5005. + else
  5006. + if test -z "$FGREP"; then
  5007. + ac_path_FGREP_found=false
  5008. + # Loop through the user's path and test for each of PROGNAME-LIST
  5009. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5010. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5011. do
  5012. IFS=$as_save_IFS
  5013. test -z "$as_dir" && as_dir=.
  5014. + for ac_prog in fgrep; do
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5017. - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5018. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. - break 2
  5020. - fi
  5021. -done
  5022. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5023. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  5024. +# Check for GNU ac_path_FGREP and select it if it is found.
  5025. + # Check for GNU $ac_path_FGREP
  5026. +case `"$ac_path_FGREP" --version 2>&1` in
  5027. +*GNU*)
  5028. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5029. +*)
  5030. + ac_count=0
  5031. + $as_echo_n 0123456789 >"conftest.in"
  5032. + while :
  5033. + do
  5034. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  5035. + mv "conftest.tmp" "conftest.in"
  5036. + cp "conftest.in" "conftest.nl"
  5037. + $as_echo 'FGREP' >> "conftest.nl"
  5038. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5039. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5040. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  5041. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5042. + # Best one so far, save it but keep looking for a better one
  5043. + ac_cv_path_FGREP="$ac_path_FGREP"
  5044. + ac_path_FGREP_max=$ac_count
  5045. + fi
  5046. + # 10*(2^10) chars as input seems more than enough
  5047. + test $ac_count -gt 10 && break
  5048. done
  5049. -IFS=$as_save_IFS
  5050. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5051. +esac
  5052. + $ac_path_FGREP_found && break 3
  5053. + done
  5054. + done
  5055. + done
  5056. +IFS=$as_save_IFS
  5057. + if test -z "$ac_cv_path_FGREP"; then
  5058. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5059. + fi
  5060. +else
  5061. + ac_cv_path_FGREP=$FGREP
  5062. fi
  5063. -fi
  5064. -OBJDUMP=$ac_cv_prog_OBJDUMP
  5065. -if test -n "$OBJDUMP"; then
  5066. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5067. -$as_echo "$OBJDUMP" >&6; }
  5068. +
  5069. + fi
  5070. +fi
  5071. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5072. +$as_echo "$ac_cv_path_FGREP" >&6; }
  5073. + FGREP="$ac_cv_path_FGREP"
  5074. +
  5075. +
  5076. +test -z "$GREP" && GREP=grep
  5077. +
  5078. +
  5079. +
  5080. +
  5081. +
  5082. +
  5083. +
  5084. +
  5085. +
  5086. +
  5087. +
  5088. +
  5089. +
  5090. +
  5091. +
  5092. +
  5093. +
  5094. +
  5095. +
  5096. +# Check whether --with-gnu-ld was given.
  5097. +if test "${with_gnu_ld+set}" = set; then :
  5098. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5099. +else
  5100. + with_gnu_ld=no
  5101. +fi
  5102. +
  5103. +ac_prog=ld
  5104. +if test "$GCC" = yes; then
  5105. + # Check if gcc -print-prog-name=ld gives a path.
  5106. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5107. +$as_echo_n "checking for ld used by $CC... " >&6; }
  5108. + case $host in
  5109. + *-*-mingw*)
  5110. + # gcc leaves a trailing carriage return which upsets mingw
  5111. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5112. + *)
  5113. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5114. + esac
  5115. + case $ac_prog in
  5116. + # Accept absolute paths.
  5117. + [\\/]* | ?:[\\/]*)
  5118. + re_direlt='/[^/][^/]*/\.\./'
  5119. + # Canonicalize the pathname of ld
  5120. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5121. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5122. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5123. + done
  5124. + test -z "$LD" && LD="$ac_prog"
  5125. + ;;
  5126. + "")
  5127. + # If it fails, then pretend we aren't using GCC.
  5128. + ac_prog=ld
  5129. + ;;
  5130. + *)
  5131. + # If it is relative, then search for the first ld in PATH.
  5132. + with_gnu_ld=unknown
  5133. + ;;
  5134. + esac
  5135. +elif test "$with_gnu_ld" = yes; then
  5136. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5137. +$as_echo_n "checking for GNU ld... " >&6; }
  5138. +else
  5139. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5140. +$as_echo_n "checking for non-GNU ld... " >&6; }
  5141. +fi
  5142. +if test "${lt_cv_path_LD+set}" = set; then :
  5143. + $as_echo_n "(cached) " >&6
  5144. +else
  5145. + if test -z "$LD"; then
  5146. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5147. + for ac_dir in $PATH; do
  5148. + IFS="$lt_save_ifs"
  5149. + test -z "$ac_dir" && ac_dir=.
  5150. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5151. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5152. + # Check to see if the program is GNU ld. I'd rather use --version,
  5153. + # but apparently some variants of GNU ld only accept -v.
  5154. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5155. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5156. + *GNU* | *'with BFD'*)
  5157. + test "$with_gnu_ld" != no && break
  5158. + ;;
  5159. + *)
  5160. + test "$with_gnu_ld" != yes && break
  5161. + ;;
  5162. + esac
  5163. + fi
  5164. + done
  5165. + IFS="$lt_save_ifs"
  5166. +else
  5167. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5168. +fi
  5169. +fi
  5170. +
  5171. +LD="$lt_cv_path_LD"
  5172. +if test -n "$LD"; then
  5173. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5174. +$as_echo "$LD" >&6; }
  5175. +else
  5176. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5177. +$as_echo "no" >&6; }
  5178. +fi
  5179. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  5180. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5181. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5182. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  5183. + $as_echo_n "(cached) " >&6
  5184. +else
  5185. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5186. +case `$LD -v 2>&1 </dev/null` in
  5187. +*GNU* | *'with BFD'*)
  5188. + lt_cv_prog_gnu_ld=yes
  5189. + ;;
  5190. +*)
  5191. + lt_cv_prog_gnu_ld=no
  5192. + ;;
  5193. +esac
  5194. +fi
  5195. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5196. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5197. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5198. +
  5199. +
  5200. +
  5201. +
  5202. +
  5203. +
  5204. +
  5205. +
  5206. +
  5207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5208. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5209. +if test "${lt_cv_path_NM+set}" = set; then :
  5210. + $as_echo_n "(cached) " >&6
  5211. +else
  5212. + if test -n "$NM"; then
  5213. + # Let the user override the test.
  5214. + lt_cv_path_NM="$NM"
  5215. +else
  5216. + lt_nm_to_check="${ac_tool_prefix}nm"
  5217. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5218. + lt_nm_to_check="$lt_nm_to_check nm"
  5219. + fi
  5220. + for lt_tmp_nm in $lt_nm_to_check; do
  5221. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5222. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5223. + IFS="$lt_save_ifs"
  5224. + test -z "$ac_dir" && ac_dir=.
  5225. + tmp_nm="$ac_dir/$lt_tmp_nm"
  5226. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5227. + # Check to see if the nm accepts a BSD-compat flag.
  5228. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5229. + # nm: unknown option "B" ignored
  5230. + # Tru64's nm complains that /dev/null is an invalid object file
  5231. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5232. + */dev/null* | *'Invalid file or object type'*)
  5233. + lt_cv_path_NM="$tmp_nm -B"
  5234. + break
  5235. + ;;
  5236. + *)
  5237. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5238. + */dev/null*)
  5239. + lt_cv_path_NM="$tmp_nm -p"
  5240. + break
  5241. + ;;
  5242. + *)
  5243. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5244. + continue # so that we can try to find one that supports BSD flags
  5245. + ;;
  5246. + esac
  5247. + ;;
  5248. + esac
  5249. + fi
  5250. + done
  5251. + IFS="$lt_save_ifs"
  5252. + done
  5253. + : ${lt_cv_path_NM=no}
  5254. +fi
  5255. +fi
  5256. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5257. +$as_echo "$lt_cv_path_NM" >&6; }
  5258. +if test "$lt_cv_path_NM" != "no"; then
  5259. + NM="$lt_cv_path_NM"
  5260. +else
  5261. + # Didn't find any BSD compatible name lister, look for dumpbin.
  5262. + if test -n "$ac_tool_prefix"; then
  5263. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5264. + do
  5265. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5266. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5267. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5268. +$as_echo_n "checking for $ac_word... " >&6; }
  5269. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5270. + $as_echo_n "(cached) " >&6
  5271. +else
  5272. + if test -n "$DUMPBIN"; then
  5273. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5274. +else
  5275. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. +for as_dir in $PATH
  5277. +do
  5278. + IFS=$as_save_IFS
  5279. + test -z "$as_dir" && as_dir=.
  5280. + for ac_exec_ext in '' $ac_executable_extensions; do
  5281. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5282. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5283. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5284. + break 2
  5285. + fi
  5286. +done
  5287. + done
  5288. +IFS=$as_save_IFS
  5289. +
  5290. +fi
  5291. +fi
  5292. +DUMPBIN=$ac_cv_prog_DUMPBIN
  5293. +if test -n "$DUMPBIN"; then
  5294. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5295. +$as_echo "$DUMPBIN" >&6; }
  5296. else
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5298. $as_echo "no" >&6; }
  5299. fi
  5300. + test -n "$DUMPBIN" && break
  5301. + done
  5302. fi
  5303. -if test -z "$ac_cv_prog_OBJDUMP"; then
  5304. - ac_ct_OBJDUMP=$OBJDUMP
  5305. - # Extract the first word of "objdump", so it can be a program name with args.
  5306. -set dummy objdump; ac_word=$2
  5307. +if test -z "$DUMPBIN"; then
  5308. + ac_ct_DUMPBIN=$DUMPBIN
  5309. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  5310. +do
  5311. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  5312. +set dummy $ac_prog; ac_word=$2
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5314. $as_echo_n "checking for $ac_word... " >&6; }
  5315. -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5316. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. - if test -n "$ac_ct_OBJDUMP"; then
  5320. - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5321. + if test -n "$ac_ct_DUMPBIN"; then
  5322. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5323. else
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. @@ -6209,7 +5741,7 @@
  5327. test -z "$as_dir" && as_dir=.
  5328. for ac_exec_ext in '' $ac_executable_extensions; do
  5329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5330. - ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5331. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5333. break 2
  5334. fi
  5335. @@ -6219,17 +5751,21 @@
  5336. fi
  5337. fi
  5338. -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5339. -if test -n "$ac_ct_OBJDUMP"; then
  5340. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5341. -$as_echo "$ac_ct_OBJDUMP" >&6; }
  5342. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5343. +if test -n "$ac_ct_DUMPBIN"; then
  5344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5345. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  5346. else
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5348. $as_echo "no" >&6; }
  5349. fi
  5350. - if test "x$ac_ct_OBJDUMP" = x; then
  5351. - OBJDUMP="false"
  5352. +
  5353. + test -n "$ac_ct_DUMPBIN" && break
  5354. +done
  5355. +
  5356. + if test "x$ac_ct_DUMPBIN" = x; then
  5357. + DUMPBIN=":"
  5358. else
  5359. case $cross_compiling:$ac_tool_warned in
  5360. yes:)
  5361. @@ -6237,183 +5773,292 @@
  5362. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5363. ac_tool_warned=yes ;;
  5364. esac
  5365. - OBJDUMP=$ac_ct_OBJDUMP
  5366. + DUMPBIN=$ac_ct_DUMPBIN
  5367. fi
  5368. -else
  5369. - OBJDUMP="$ac_cv_prog_OBJDUMP"
  5370. fi
  5371. - ;;
  5372. -esac
  5373. + if test "$DUMPBIN" != ":"; then
  5374. + NM="$DUMPBIN"
  5375. + fi
  5376. +fi
  5377. +test -z "$NM" && NM=nm
  5378. -need_locks="$enable_libtool_lock"
  5379. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5380. -$as_echo_n "checking for ANSI C header files... " >&6; }
  5381. -if test "${ac_cv_header_stdc+set}" = set; then :
  5382. - $as_echo_n "(cached) " >&6
  5383. -else
  5384. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. -/* end confdefs.h. */
  5386. -#include <stdlib.h>
  5387. -#include <stdarg.h>
  5388. -#include <string.h>
  5389. -#include <float.h>
  5390. -int
  5391. -main ()
  5392. -{
  5393. - ;
  5394. - return 0;
  5395. -}
  5396. -_ACEOF
  5397. -if ac_fn_c_try_compile "$LINENO"; then :
  5398. - ac_cv_header_stdc=yes
  5399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5400. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5401. +if test "${lt_cv_nm_interface+set}" = set; then :
  5402. + $as_echo_n "(cached) " >&6
  5403. +else
  5404. + lt_cv_nm_interface="BSD nm"
  5405. + echo "int some_variable = 0;" > conftest.$ac_ext
  5406. + (eval echo "\"\$as_me:5799: $ac_compile\"" >&5)
  5407. + (eval "$ac_compile" 2>conftest.err)
  5408. + cat conftest.err >&5
  5409. + (eval echo "\"\$as_me:5802: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5410. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5411. + cat conftest.err >&5
  5412. + (eval echo "\"\$as_me:5805: output\"" >&5)
  5413. + cat conftest.out >&5
  5414. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5415. + lt_cv_nm_interface="MS dumpbin"
  5416. + fi
  5417. + rm -f conftest*
  5418. +fi
  5419. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5420. +$as_echo "$lt_cv_nm_interface" >&6; }
  5421. +
  5422. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5423. +$as_echo_n "checking whether ln -s works... " >&6; }
  5424. +LN_S=$as_ln_s
  5425. +if test "$LN_S" = "ln -s"; then
  5426. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5427. +$as_echo "yes" >&6; }
  5428. else
  5429. - ac_cv_header_stdc=no
  5430. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5431. +$as_echo "no, using $LN_S" >&6; }
  5432. fi
  5433. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5434. -if test $ac_cv_header_stdc = yes; then
  5435. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5436. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5437. -/* end confdefs.h. */
  5438. -#include <string.h>
  5439. +# find the maximum length of command line arguments
  5440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5441. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5442. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5443. + $as_echo_n "(cached) " >&6
  5444. +else
  5445. + i=0
  5446. + teststring="ABCD"
  5447. -_ACEOF
  5448. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5449. - $EGREP "memchr" >/dev/null 2>&1; then :
  5450. + case $build_os in
  5451. + msdosdjgpp*)
  5452. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  5453. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  5454. + # during glob expansion). Even if it were fixed, the result of this
  5455. + # check would be larger than it should be.
  5456. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5457. + ;;
  5458. -else
  5459. - ac_cv_header_stdc=no
  5460. -fi
  5461. -rm -f conftest*
  5462. + gnu*)
  5463. + # Under GNU Hurd, this test is not required because there is
  5464. + # no limit to the length of command line arguments.
  5465. + # Libtool will interpret -1 as no limit whatsoever
  5466. + lt_cv_sys_max_cmd_len=-1;
  5467. + ;;
  5468. -fi
  5469. + cygwin* | mingw* | cegcc*)
  5470. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  5471. + # about 5 minutes as the teststring grows exponentially.
  5472. + # Worse, since 9x/ME are not pre-emptively multitasking,
  5473. + # you end up with a "frozen" computer, even though with patience
  5474. + # the test eventually succeeds (with a max line length of 256k).
  5475. + # Instead, let's just punt: use the minimum linelength reported by
  5476. + # all of the supported platforms: 8192 (on NT/2K/XP).
  5477. + lt_cv_sys_max_cmd_len=8192;
  5478. + ;;
  5479. -if test $ac_cv_header_stdc = yes; then
  5480. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5481. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5482. -/* end confdefs.h. */
  5483. -#include <stdlib.h>
  5484. + amigaos*)
  5485. + # On AmigaOS with pdksh, this test takes hours, literally.
  5486. + # So we just punt and use a minimum line length of 8192.
  5487. + lt_cv_sys_max_cmd_len=8192;
  5488. + ;;
  5489. -_ACEOF
  5490. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5491. - $EGREP "free" >/dev/null 2>&1; then :
  5492. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5493. + # This has been around since 386BSD, at least. Likely further.
  5494. + if test -x /sbin/sysctl; then
  5495. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5496. + elif test -x /usr/sbin/sysctl; then
  5497. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5498. + else
  5499. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5500. + fi
  5501. + # And add a safety zone
  5502. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5503. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5504. + ;;
  5505. -else
  5506. - ac_cv_header_stdc=no
  5507. -fi
  5508. -rm -f conftest*
  5509. + interix*)
  5510. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5511. + lt_cv_sys_max_cmd_len=196608
  5512. + ;;
  5513. +
  5514. + osf*)
  5515. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5516. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5517. + # nice to cause kernel panics so lets avoid the loop below.
  5518. + # First set a reasonable default.
  5519. + lt_cv_sys_max_cmd_len=16384
  5520. + #
  5521. + if test -x /sbin/sysconfig; then
  5522. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5523. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5524. + esac
  5525. + fi
  5526. + ;;
  5527. + sco3.2v5*)
  5528. + lt_cv_sys_max_cmd_len=102400
  5529. + ;;
  5530. + sysv5* | sco5v6* | sysv4.2uw2*)
  5531. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5532. + if test -n "$kargmax"; then
  5533. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5534. + else
  5535. + lt_cv_sys_max_cmd_len=32768
  5536. + fi
  5537. + ;;
  5538. + *)
  5539. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5540. + if test -n "$lt_cv_sys_max_cmd_len"; then
  5541. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5542. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5543. + else
  5544. + # Make teststring a little bigger before we do anything with it.
  5545. + # a 1K string should be a reasonable start.
  5546. + for i in 1 2 3 4 5 6 7 8 ; do
  5547. + teststring=$teststring$teststring
  5548. + done
  5549. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5550. + # If test is not a shell built-in, we'll probably end up computing a
  5551. + # maximum length that is only half of the actual maximum length, but
  5552. + # we can't tell.
  5553. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  5554. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  5555. + test $i != 17 # 1/2 MB should be enough
  5556. + do
  5557. + i=`expr $i + 1`
  5558. + teststring=$teststring$teststring
  5559. + done
  5560. + # Only check the string length outside the loop.
  5561. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5562. + teststring=
  5563. + # Add a significant safety factor because C++ compilers can tack on
  5564. + # massive amounts of additional arguments before passing them to the
  5565. + # linker. It appears as though 1/2 is a usable value.
  5566. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5567. + fi
  5568. + ;;
  5569. + esac
  5570. fi
  5571. -if test $ac_cv_header_stdc = yes; then
  5572. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5573. - if test "$cross_compiling" = yes; then :
  5574. - :
  5575. +if test -n $lt_cv_sys_max_cmd_len ; then
  5576. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5577. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5578. else
  5579. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5580. -/* end confdefs.h. */
  5581. -#include <ctype.h>
  5582. -#include <stdlib.h>
  5583. -#if ((' ' & 0x0FF) == 0x020)
  5584. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5585. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5586. -#else
  5587. -# define ISLOWER(c) \
  5588. - (('a' <= (c) && (c) <= 'i') \
  5589. - || ('j' <= (c) && (c) <= 'r') \
  5590. - || ('s' <= (c) && (c) <= 'z'))
  5591. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5592. -#endif
  5593. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5594. +$as_echo "none" >&6; }
  5595. +fi
  5596. +max_cmd_len=$lt_cv_sys_max_cmd_len
  5597. +
  5598. +
  5599. +
  5600. +
  5601. +
  5602. +
  5603. +: ${CP="cp -f"}
  5604. +: ${MV="mv -f"}
  5605. +: ${RM="rm -f"}
  5606. +
  5607. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5608. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5609. +# Try some XSI features
  5610. +xsi_shell=no
  5611. +( _lt_dummy="a/b/c"
  5612. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5613. + = c,a/b,, \
  5614. + && eval 'test $(( 1 + 1 )) -eq 2 \
  5615. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5616. + && xsi_shell=yes
  5617. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5618. +$as_echo "$xsi_shell" >&6; }
  5619. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5620. -int
  5621. -main ()
  5622. -{
  5623. - int i;
  5624. - for (i = 0; i < 256; i++)
  5625. - if (XOR (islower (i), ISLOWER (i))
  5626. - || toupper (i) != TOUPPER (i))
  5627. - return 2;
  5628. - return 0;
  5629. -}
  5630. -_ACEOF
  5631. -if ac_fn_c_try_run "$LINENO"; then :
  5632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5633. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5634. +lt_shell_append=no
  5635. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5636. + >/dev/null 2>&1 \
  5637. + && lt_shell_append=yes
  5638. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5639. +$as_echo "$lt_shell_append" >&6; }
  5640. +
  5641. +
  5642. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5643. + lt_unset=unset
  5644. else
  5645. - ac_cv_header_stdc=no
  5646. -fi
  5647. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5648. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  5649. + lt_unset=false
  5650. fi
  5651. -fi
  5652. -fi
  5653. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5654. -$as_echo "$ac_cv_header_stdc" >&6; }
  5655. -if test $ac_cv_header_stdc = yes; then
  5656. -$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5657. -fi
  5658. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5659. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5660. - inttypes.h stdint.h unistd.h
  5661. -do :
  5662. - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5663. -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5664. -"
  5665. -eval as_val=\$$as_ac_Header
  5666. - if test "x$as_val" = x""yes; then :
  5667. - cat >>confdefs.h <<_ACEOF
  5668. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5669. -_ACEOF
  5670. -fi
  5671. +# test EBCDIC or ASCII
  5672. +case `echo X|tr X '\101'` in
  5673. + A) # ASCII based system
  5674. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5675. + lt_SP2NL='tr \040 \012'
  5676. + lt_NL2SP='tr \015\012 \040\040'
  5677. + ;;
  5678. + *) # EBCDIC based system
  5679. + lt_SP2NL='tr \100 \n'
  5680. + lt_NL2SP='tr \r\n \100\100'
  5681. + ;;
  5682. +esac
  5683. +
  5684. +
  5685. +
  5686. +
  5687. -done
  5688. -for ac_header in dlfcn.h
  5689. -do :
  5690. - ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  5691. -if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  5692. - cat >>confdefs.h <<_ACEOF
  5693. -#define HAVE_DLFCN_H 1
  5694. -_ACEOF
  5695. +
  5696. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5697. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  5698. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5699. + $as_echo_n "(cached) " >&6
  5700. +else
  5701. + lt_cv_ld_reload_flag='-r'
  5702. fi
  5703. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5704. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  5705. +reload_flag=$lt_cv_ld_reload_flag
  5706. +case $reload_flag in
  5707. +"" | " "*) ;;
  5708. +*) reload_flag=" $reload_flag" ;;
  5709. +esac
  5710. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5711. +case $host_os in
  5712. + darwin*)
  5713. + if test "$GCC" = yes; then
  5714. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5715. + else
  5716. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5717. + fi
  5718. + ;;
  5719. +esac
  5720. -done
  5721. -ac_ext=cpp
  5722. -ac_cpp='$CXXCPP $CPPFLAGS'
  5723. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5724. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5725. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5726. -if test -z "$CXX"; then
  5727. - if test -n "$CCC"; then
  5728. - CXX=$CCC
  5729. - else
  5730. - if test -n "$ac_tool_prefix"; then
  5731. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5732. - do
  5733. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5734. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5735. +
  5736. +
  5737. +
  5738. +
  5739. +
  5740. +
  5741. +
  5742. +if test -n "$ac_tool_prefix"; then
  5743. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5744. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5746. $as_echo_n "checking for $ac_word... " >&6; }
  5747. -if test "${ac_cv_prog_CXX+set}" = set; then :
  5748. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. - if test -n "$CXX"; then
  5752. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5753. + if test -n "$OBJDUMP"; then
  5754. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5755. else
  5756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5757. for as_dir in $PATH
  5758. @@ -6422,7 +6067,7 @@
  5759. test -z "$as_dir" && as_dir=.
  5760. for ac_exec_ext in '' $ac_executable_extensions; do
  5761. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5762. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5763. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5764. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5765. break 2
  5766. fi
  5767. @@ -6432,32 +6077,28 @@
  5768. fi
  5769. fi
  5770. -CXX=$ac_cv_prog_CXX
  5771. -if test -n "$CXX"; then
  5772. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5773. -$as_echo "$CXX" >&6; }
  5774. +OBJDUMP=$ac_cv_prog_OBJDUMP
  5775. +if test -n "$OBJDUMP"; then
  5776. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5777. +$as_echo "$OBJDUMP" >&6; }
  5778. else
  5779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5780. $as_echo "no" >&6; }
  5781. fi
  5782. - test -n "$CXX" && break
  5783. - done
  5784. fi
  5785. -if test -z "$CXX"; then
  5786. - ac_ct_CXX=$CXX
  5787. - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5788. -do
  5789. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  5790. -set dummy $ac_prog; ac_word=$2
  5791. +if test -z "$ac_cv_prog_OBJDUMP"; then
  5792. + ac_ct_OBJDUMP=$OBJDUMP
  5793. + # Extract the first word of "objdump", so it can be a program name with args.
  5794. +set dummy objdump; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  5798. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5799. $as_echo_n "(cached) " >&6
  5800. else
  5801. - if test -n "$ac_ct_CXX"; then
  5802. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5803. + if test -n "$ac_ct_OBJDUMP"; then
  5804. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5805. else
  5806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5807. for as_dir in $PATH
  5808. @@ -6466,7 +6107,7 @@
  5809. test -z "$as_dir" && as_dir=.
  5810. for ac_exec_ext in '' $ac_executable_extensions; do
  5811. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5812. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  5813. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5815. break 2
  5816. fi
  5817. @@ -6476,21 +6117,17 @@
  5818. fi
  5819. fi
  5820. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5821. -if test -n "$ac_ct_CXX"; then
  5822. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5823. -$as_echo "$ac_ct_CXX" >&6; }
  5824. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5825. +if test -n "$ac_ct_OBJDUMP"; then
  5826. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5827. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  5828. else
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5830. $as_echo "no" >&6; }
  5831. fi
  5832. -
  5833. - test -n "$ac_ct_CXX" && break
  5834. -done
  5835. -
  5836. - if test "x$ac_ct_CXX" = x; then
  5837. - CXX="g++"
  5838. + if test "x$ac_ct_OBJDUMP" = x; then
  5839. + OBJDUMP="false"
  5840. else
  5841. case $cross_compiling:$ac_tool_warned in
  5842. yes:)
  5843. @@ -6498,416 +6135,242 @@
  5844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5845. ac_tool_warned=yes ;;
  5846. esac
  5847. - CXX=$ac_ct_CXX
  5848. + OBJDUMP=$ac_ct_OBJDUMP
  5849. fi
  5850. +else
  5851. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  5852. fi
  5853. - fi
  5854. -fi
  5855. -# Provide some information about the compiler.
  5856. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5857. -set X $ac_compile
  5858. -ac_compiler=$2
  5859. -for ac_option in --version -v -V -qversion; do
  5860. - { { ac_try="$ac_compiler $ac_option >&5"
  5861. -case "(($ac_try" in
  5862. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5863. - *) ac_try_echo=$ac_try;;
  5864. -esac
  5865. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5866. -$as_echo "$ac_try_echo"; } >&5
  5867. - (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5868. - ac_status=$?
  5869. - if test -s conftest.err; then
  5870. - sed '10a\
  5871. -... rest of stderr output deleted ...
  5872. - 10q' conftest.err >conftest.er1
  5873. - cat conftest.er1 >&5
  5874. - rm -f conftest.er1 conftest.err
  5875. - fi
  5876. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5877. - test $ac_status = 0; }
  5878. -done
  5879. +test -z "$OBJDUMP" && OBJDUMP=objdump
  5880. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5881. -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5882. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  5883. - $as_echo_n "(cached) " >&6
  5884. -else
  5885. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5886. -/* end confdefs.h. */
  5887. -int
  5888. -main ()
  5889. -{
  5890. -#ifndef __GNUC__
  5891. - choke me
  5892. -#endif
  5893. - ;
  5894. - return 0;
  5895. -}
  5896. -_ACEOF
  5897. -if ac_fn_cxx_try_compile "$LINENO"; then :
  5898. - ac_compiler_gnu=yes
  5899. -else
  5900. - ac_compiler_gnu=no
  5901. -fi
  5902. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5903. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5904. -fi
  5905. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5906. -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5907. -if test $ac_compiler_gnu = yes; then
  5908. - GXX=yes
  5909. -else
  5910. - GXX=
  5911. -fi
  5912. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  5913. -ac_save_CXXFLAGS=$CXXFLAGS
  5914. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5915. -$as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5916. -if test "${ac_cv_prog_cxx_g+set}" = set; then :
  5917. - $as_echo_n "(cached) " >&6
  5918. -else
  5919. - ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5920. - ac_cxx_werror_flag=yes
  5921. - ac_cv_prog_cxx_g=no
  5922. - CXXFLAGS="-g"
  5923. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5924. -/* end confdefs.h. */
  5925. -int
  5926. -main ()
  5927. -{
  5928. - ;
  5929. - return 0;
  5930. -}
  5931. -_ACEOF
  5932. -if ac_fn_cxx_try_compile "$LINENO"; then :
  5933. - ac_cv_prog_cxx_g=yes
  5934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5935. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5936. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5937. + $as_echo_n "(cached) " >&6
  5938. else
  5939. - CXXFLAGS=""
  5940. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5941. -/* end confdefs.h. */
  5942. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  5943. +lt_cv_file_magic_test_file=
  5944. +lt_cv_deplibs_check_method='unknown'
  5945. +# Need to set the preceding variable on all platforms that support
  5946. +# interlibrary dependencies.
  5947. +# 'none' -- dependencies not supported.
  5948. +# `unknown' -- same as none, but documents that we really don't know.
  5949. +# 'pass_all' -- all dependencies passed with no checks.
  5950. +# 'test_compile' -- check by making test program.
  5951. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5952. +# which responds to the $file_magic_cmd with a given extended regex.
  5953. +# If you have `file' or equivalent on your system and you're not sure
  5954. +# whether `pass_all' will *always* work, you probably want this one.
  5955. -int
  5956. -main ()
  5957. -{
  5958. +case $host_os in
  5959. +aix[4-9]*)
  5960. + lt_cv_deplibs_check_method=pass_all
  5961. + ;;
  5962. - ;
  5963. - return 0;
  5964. -}
  5965. -_ACEOF
  5966. -if ac_fn_cxx_try_compile "$LINENO"; then :
  5967. +beos*)
  5968. + lt_cv_deplibs_check_method=pass_all
  5969. + ;;
  5970. -else
  5971. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5972. - CXXFLAGS="-g"
  5973. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5974. -/* end confdefs.h. */
  5975. +bsdi[45]*)
  5976. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5977. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5978. + lt_cv_file_magic_test_file=/shlib/libc.so
  5979. + ;;
  5980. -int
  5981. -main ()
  5982. -{
  5983. +cygwin*)
  5984. + # func_win32_libid is a shell function defined in ltmain.sh
  5985. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5986. + lt_cv_file_magic_cmd='func_win32_libid'
  5987. + ;;
  5988. - ;
  5989. - return 0;
  5990. -}
  5991. -_ACEOF
  5992. -if ac_fn_cxx_try_compile "$LINENO"; then :
  5993. - ac_cv_prog_cxx_g=yes
  5994. -fi
  5995. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5996. -fi
  5997. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5998. -fi
  5999. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6000. - ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6001. -fi
  6002. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6003. -$as_echo "$ac_cv_prog_cxx_g" >&6; }
  6004. -if test "$ac_test_CXXFLAGS" = set; then
  6005. - CXXFLAGS=$ac_save_CXXFLAGS
  6006. -elif test $ac_cv_prog_cxx_g = yes; then
  6007. - if test "$GXX" = yes; then
  6008. - CXXFLAGS="-g -O2"
  6009. - else
  6010. - CXXFLAGS="-g"
  6011. - fi
  6012. -else
  6013. - if test "$GXX" = yes; then
  6014. - CXXFLAGS="-O2"
  6015. +mingw* | pw32*)
  6016. + # Base MSYS/MinGW do not provide the 'file' command needed by
  6017. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6018. + # unless we find 'file', for example because we are cross-compiling.
  6019. + if ( file / ) >/dev/null 2>&1; then
  6020. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6021. + lt_cv_file_magic_cmd='func_win32_libid'
  6022. else
  6023. - CXXFLAGS=
  6024. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6025. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  6026. fi
  6027. -fi
  6028. -ac_ext=cpp
  6029. -ac_cpp='$CXXCPP $CPPFLAGS'
  6030. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6031. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6032. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6033. -
  6034. -depcc="$CXX" am_compiler_list=
  6035. + ;;
  6036. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6037. -$as_echo_n "checking dependency style of $depcc... " >&6; }
  6038. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6039. - $as_echo_n "(cached) " >&6
  6040. -else
  6041. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6042. - # We make a subdir and do the tests there. Otherwise we can end up
  6043. - # making bogus files that we don't know about and never remove. For
  6044. - # instance it was reported that on HP-UX the gcc test will end up
  6045. - # making a dummy file named `D' -- because `-MD' means `put the output
  6046. - # in D'.
  6047. - mkdir conftest.dir
  6048. - # Copy depcomp to subdir because otherwise we won't find it if we're
  6049. - # using a relative directory.
  6050. - cp "$am_depcomp" conftest.dir
  6051. - cd conftest.dir
  6052. - # We will build objects and dependencies in a subdirectory because
  6053. - # it helps to detect inapplicable dependency modes. For instance
  6054. - # both Tru64's cc and ICC support -MD to output dependencies as a
  6055. - # side effect of compilation, but ICC will put the dependencies in
  6056. - # the current directory while Tru64 will put them in the object
  6057. - # directory.
  6058. - mkdir sub
  6059. +cegcc)
  6060. + # use the weaker test based on 'objdump'. See mingw*.
  6061. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6062. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  6063. + ;;
  6064. - am_cv_CXX_dependencies_compiler_type=none
  6065. - if test "$am_compiler_list" = ""; then
  6066. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6067. - fi
  6068. - for depmode in $am_compiler_list; do
  6069. - # Setup a source with many dependencies, because some compilers
  6070. - # like to wrap large dependency lists on column 80 (with \), and
  6071. - # we should not choose a depcomp mode which is confused by this.
  6072. - #
  6073. - # We need to recreate these files for each test, as the compiler may
  6074. - # overwrite some of them when testing with obscure command lines.
  6075. - # This happens at least with the AIX C compiler.
  6076. - : > sub/conftest.c
  6077. - for i in 1 2 3 4 5 6; do
  6078. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6079. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6080. - # Solaris 8's {/usr,}/bin/sh.
  6081. - touch sub/conftst$i.h
  6082. - done
  6083. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6084. +darwin* | rhapsody*)
  6085. + lt_cv_deplibs_check_method=pass_all
  6086. + ;;
  6087. - case $depmode in
  6088. - nosideeffect)
  6089. - # after this tag, mechanisms are not by side-effect, so they'll
  6090. - # only be used when explicitly requested
  6091. - if test "x$enable_dependency_tracking" = xyes; then
  6092. - continue
  6093. - else
  6094. - break
  6095. - fi
  6096. +freebsd* | dragonfly*)
  6097. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6098. + case $host_cpu in
  6099. + i*86 )
  6100. + # Not sure whether the presence of OpenBSD here was a mistake.
  6101. + # Let's accept both of them until this is cleared up.
  6102. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6103. + lt_cv_file_magic_cmd=/usr/bin/file
  6104. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6105. ;;
  6106. - none) break ;;
  6107. esac
  6108. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6109. - # mode. It turns out that the SunPro C++ compiler does not properly
  6110. - # handle `-M -o', and we need to detect this.
  6111. - if depmode=$depmode \
  6112. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6113. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6114. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  6115. - >/dev/null 2>conftest.err &&
  6116. - grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6117. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6118. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  6119. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6120. - # icc doesn't choke on unknown options, it will just issue warnings
  6121. - # or remarks (even with -Werror). So we grep stderr for any message
  6122. - # that says an option was ignored or not supported.
  6123. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  6124. - # icc: Command line warning: ignoring option '-M'; no argument required
  6125. - # The diagnosis changed in icc 8.0:
  6126. - # icc: Command line remark: option '-MP' not supported
  6127. - if (grep 'ignoring option' conftest.err ||
  6128. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6129. - am_cv_CXX_dependencies_compiler_type=$depmode
  6130. - break
  6131. - fi
  6132. - fi
  6133. - done
  6134. + else
  6135. + lt_cv_deplibs_check_method=pass_all
  6136. + fi
  6137. + ;;
  6138. - cd ..
  6139. - rm -rf conftest.dir
  6140. -else
  6141. - am_cv_CXX_dependencies_compiler_type=none
  6142. -fi
  6143. +gnu*)
  6144. + lt_cv_deplibs_check_method=pass_all
  6145. + ;;
  6146. -fi
  6147. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6148. -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6149. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6150. +hpux10.20* | hpux11*)
  6151. + lt_cv_file_magic_cmd=/usr/bin/file
  6152. + case $host_cpu in
  6153. + ia64*)
  6154. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6155. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6156. + ;;
  6157. + hppa*64*)
  6158. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  6159. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6160. + ;;
  6161. + *)
  6162. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  6163. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6164. + ;;
  6165. + esac
  6166. + ;;
  6167. - if
  6168. - test "x$enable_dependency_tracking" != xno \
  6169. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6170. - am__fastdepCXX_TRUE=
  6171. - am__fastdepCXX_FALSE='#'
  6172. -else
  6173. - am__fastdepCXX_TRUE='#'
  6174. - am__fastdepCXX_FALSE=
  6175. -fi
  6176. +interix[3-9]*)
  6177. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6178. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6179. + ;;
  6180. +irix5* | irix6* | nonstopux*)
  6181. + case $LD in
  6182. + *-32|*"-32 ") libmagic=32-bit;;
  6183. + *-n32|*"-n32 ") libmagic=N32;;
  6184. + *-64|*"-64 ") libmagic=64-bit;;
  6185. + *) libmagic=never-match;;
  6186. + esac
  6187. + lt_cv_deplibs_check_method=pass_all
  6188. + ;;
  6189. -ac_ext=cpp
  6190. -ac_cpp='$CXXCPP $CPPFLAGS'
  6191. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6192. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6193. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6194. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6195. -$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6196. -if test -z "$CXXCPP"; then
  6197. - if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6198. - $as_echo_n "(cached) " >&6
  6199. -else
  6200. - # Double quotes because CXXCPP needs to be expanded
  6201. - for CXXCPP in "$CXX -E" "/lib/cpp"
  6202. - do
  6203. - ac_preproc_ok=false
  6204. -for ac_cxx_preproc_warn_flag in '' yes
  6205. -do
  6206. - # Use a header file that comes with gcc, so configuring glibc
  6207. - # with a fresh cross-compiler works.
  6208. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6209. - # <limits.h> exists even on freestanding compilers.
  6210. - # On the NeXT, cc -E runs the code through the compiler's parser,
  6211. - # not just through cpp. "Syntax error" is here to catch this case.
  6212. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. -/* end confdefs.h. */
  6214. -#ifdef __STDC__
  6215. -# include <limits.h>
  6216. -#else
  6217. -# include <assert.h>
  6218. -#endif
  6219. - Syntax error
  6220. -_ACEOF
  6221. -if ac_fn_cxx_try_cpp "$LINENO"; then :
  6222. +# This must be Linux ELF.
  6223. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6224. + lt_cv_deplibs_check_method=pass_all
  6225. + ;;
  6226. -else
  6227. - # Broken: fails on valid input.
  6228. -continue
  6229. -fi
  6230. -rm -f conftest.err conftest.$ac_ext
  6231. +netbsd* | netbsdelf*-gnu)
  6232. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6233. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6234. + else
  6235. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6236. + fi
  6237. + ;;
  6238. - # OK, works on sane cases. Now check whether nonexistent headers
  6239. - # can be detected and how.
  6240. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6241. -/* end confdefs.h. */
  6242. -#include <ac_nonexistent.h>
  6243. -_ACEOF
  6244. -if ac_fn_cxx_try_cpp "$LINENO"; then :
  6245. - # Broken: success on invalid input.
  6246. -continue
  6247. -else
  6248. - # Passes both tests.
  6249. -ac_preproc_ok=:
  6250. -break
  6251. -fi
  6252. -rm -f conftest.err conftest.$ac_ext
  6253. +newos6*)
  6254. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6255. + lt_cv_file_magic_cmd=/usr/bin/file
  6256. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6257. + ;;
  6258. -done
  6259. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6260. -rm -f conftest.err conftest.$ac_ext
  6261. -if $ac_preproc_ok; then :
  6262. - break
  6263. -fi
  6264. +*nto* | *qnx*)
  6265. + lt_cv_deplibs_check_method=pass_all
  6266. + ;;
  6267. - done
  6268. - ac_cv_prog_CXXCPP=$CXXCPP
  6269. +openbsd*)
  6270. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6271. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6272. + else
  6273. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6274. + fi
  6275. + ;;
  6276. -fi
  6277. - CXXCPP=$ac_cv_prog_CXXCPP
  6278. -else
  6279. - ac_cv_prog_CXXCPP=$CXXCPP
  6280. -fi
  6281. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6282. -$as_echo "$CXXCPP" >&6; }
  6283. -ac_preproc_ok=false
  6284. -for ac_cxx_preproc_warn_flag in '' yes
  6285. -do
  6286. - # Use a header file that comes with gcc, so configuring glibc
  6287. - # with a fresh cross-compiler works.
  6288. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6289. - # <limits.h> exists even on freestanding compilers.
  6290. - # On the NeXT, cc -E runs the code through the compiler's parser,
  6291. - # not just through cpp. "Syntax error" is here to catch this case.
  6292. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6293. -/* end confdefs.h. */
  6294. -#ifdef __STDC__
  6295. -# include <limits.h>
  6296. -#else
  6297. -# include <assert.h>
  6298. -#endif
  6299. - Syntax error
  6300. -_ACEOF
  6301. -if ac_fn_cxx_try_cpp "$LINENO"; then :
  6302. +osf3* | osf4* | osf5*)
  6303. + lt_cv_deplibs_check_method=pass_all
  6304. + ;;
  6305. -else
  6306. - # Broken: fails on valid input.
  6307. -continue
  6308. -fi
  6309. -rm -f conftest.err conftest.$ac_ext
  6310. +rdos*)
  6311. + lt_cv_deplibs_check_method=pass_all
  6312. + ;;
  6313. - # OK, works on sane cases. Now check whether nonexistent headers
  6314. - # can be detected and how.
  6315. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. -/* end confdefs.h. */
  6317. -#include <ac_nonexistent.h>
  6318. -_ACEOF
  6319. -if ac_fn_cxx_try_cpp "$LINENO"; then :
  6320. - # Broken: success on invalid input.
  6321. -continue
  6322. -else
  6323. - # Passes both tests.
  6324. -ac_preproc_ok=:
  6325. -break
  6326. -fi
  6327. -rm -f conftest.err conftest.$ac_ext
  6328. +solaris*)
  6329. + lt_cv_deplibs_check_method=pass_all
  6330. + ;;
  6331. -done
  6332. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6333. -rm -f conftest.err conftest.$ac_ext
  6334. -if $ac_preproc_ok; then :
  6335. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6336. + lt_cv_deplibs_check_method=pass_all
  6337. + ;;
  6338. +
  6339. +sysv4 | sysv4.3*)
  6340. + case $host_vendor in
  6341. + motorola)
  6342. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  6343. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6344. + ;;
  6345. + ncr)
  6346. + lt_cv_deplibs_check_method=pass_all
  6347. + ;;
  6348. + sequent)
  6349. + lt_cv_file_magic_cmd='/bin/file'
  6350. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6351. + ;;
  6352. + sni)
  6353. + lt_cv_file_magic_cmd='/bin/file'
  6354. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6355. + lt_cv_file_magic_test_file=/lib/libc.so
  6356. + ;;
  6357. + siemens)
  6358. + lt_cv_deplibs_check_method=pass_all
  6359. + ;;
  6360. + pc)
  6361. + lt_cv_deplibs_check_method=pass_all
  6362. + ;;
  6363. + esac
  6364. + ;;
  6365. +
  6366. +tpf*)
  6367. + lt_cv_deplibs_check_method=pass_all
  6368. + ;;
  6369. +esac
  6370. -else
  6371. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6372. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6373. -as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  6374. -See \`config.log' for more details." "$LINENO" 5; }
  6375. fi
  6376. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6377. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  6378. +file_magic_cmd=$lt_cv_file_magic_cmd
  6379. +deplibs_check_method=$lt_cv_deplibs_check_method
  6380. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6381. +
  6382. +
  6383. +
  6384. +
  6385. +
  6386. +
  6387. +
  6388. +
  6389. +
  6390. -ac_ext=cpp
  6391. -ac_cpp='$CXXCPP $CPPFLAGS'
  6392. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6393. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6394. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6395. -ac_ext=f
  6396. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  6397. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6398. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  6399. if test -n "$ac_tool_prefix"; then
  6400. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  6401. - do
  6402. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6403. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6404. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6405. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6407. $as_echo_n "checking for $ac_word... " >&6; }
  6408. -if test "${ac_cv_prog_F77+set}" = set; then :
  6409. +if test "${ac_cv_prog_AR+set}" = set; then :
  6410. $as_echo_n "(cached) " >&6
  6411. else
  6412. - if test -n "$F77"; then
  6413. - ac_cv_prog_F77="$F77" # Let the user override the test.
  6414. + if test -n "$AR"; then
  6415. + ac_cv_prog_AR="$AR" # Let the user override the test.
  6416. else
  6417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6418. for as_dir in $PATH
  6419. @@ -6916,7 +6379,7 @@
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6423. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  6424. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  6425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6426. break 2
  6427. fi
  6428. @@ -6926,32 +6389,28 @@
  6429. fi
  6430. fi
  6431. -F77=$ac_cv_prog_F77
  6432. -if test -n "$F77"; then
  6433. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
  6434. -$as_echo "$F77" >&6; }
  6435. +AR=$ac_cv_prog_AR
  6436. +if test -n "$AR"; then
  6437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6438. +$as_echo "$AR" >&6; }
  6439. else
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6441. $as_echo "no" >&6; }
  6442. fi
  6443. - test -n "$F77" && break
  6444. - done
  6445. fi
  6446. -if test -z "$F77"; then
  6447. - ac_ct_F77=$F77
  6448. - for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  6449. -do
  6450. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  6451. -set dummy $ac_prog; ac_word=$2
  6452. +if test -z "$ac_cv_prog_AR"; then
  6453. + ac_ct_AR=$AR
  6454. + # Extract the first word of "ar", so it can be a program name with args.
  6455. +set dummy ar; ac_word=$2
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
  6459. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. - if test -n "$ac_ct_F77"; then
  6463. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  6464. + if test -n "$ac_ct_AR"; then
  6465. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6466. else
  6467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6468. for as_dir in $PATH
  6469. @@ -6960,7 +6419,7 @@
  6470. test -z "$as_dir" && as_dir=.
  6471. for ac_exec_ext in '' $ac_executable_extensions; do
  6472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6473. - ac_cv_prog_ac_ct_F77="$ac_prog"
  6474. + ac_cv_prog_ac_ct_AR="ar"
  6475. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6476. break 2
  6477. fi
  6478. @@ -6970,21 +6429,17 @@
  6479. fi
  6480. fi
  6481. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  6482. -if test -n "$ac_ct_F77"; then
  6483. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
  6484. -$as_echo "$ac_ct_F77" >&6; }
  6485. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6486. +if test -n "$ac_ct_AR"; then
  6487. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6488. +$as_echo "$ac_ct_AR" >&6; }
  6489. else
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6491. $as_echo "no" >&6; }
  6492. fi
  6493. -
  6494. - test -n "$ac_ct_F77" && break
  6495. -done
  6496. -
  6497. - if test "x$ac_ct_F77" = x; then
  6498. - F77=""
  6499. + if test "x$ac_ct_AR" = x; then
  6500. + AR="false"
  6501. else
  6502. case $cross_compiling:$ac_tool_warned in
  6503. yes:)
  6504. @@ -6992,294 +6447,409 @@
  6505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6506. ac_tool_warned=yes ;;
  6507. esac
  6508. - F77=$ac_ct_F77
  6509. + AR=$ac_ct_AR
  6510. fi
  6511. +else
  6512. + AR="$ac_cv_prog_AR"
  6513. fi
  6514. +test -z "$AR" && AR=ar
  6515. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  6516. -# Provide some information about the compiler.
  6517. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
  6518. -set X $ac_compile
  6519. -ac_compiler=$2
  6520. -for ac_option in --version -v -V -qversion; do
  6521. - { { ac_try="$ac_compiler $ac_option >&5"
  6522. -case "(($ac_try" in
  6523. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6524. - *) ac_try_echo=$ac_try;;
  6525. -esac
  6526. -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6527. -$as_echo "$ac_try_echo"; } >&5
  6528. - (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6529. - ac_status=$?
  6530. - if test -s conftest.err; then
  6531. - sed '10a\
  6532. -... rest of stderr output deleted ...
  6533. - 10q' conftest.err >conftest.er1
  6534. - cat conftest.er1 >&5
  6535. - rm -f conftest.er1 conftest.err
  6536. - fi
  6537. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6538. - test $ac_status = 0; }
  6539. -done
  6540. -rm -f a.out
  6541. -# If we don't use `.F' as extension, the preprocessor is not run on the
  6542. -# input file. (Note that this only needs to work for GNU compilers.)
  6543. -ac_save_ext=$ac_ext
  6544. -ac_ext=F
  6545. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
  6546. -$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
  6547. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
  6548. - $as_echo_n "(cached) " >&6
  6549. -else
  6550. - cat > conftest.$ac_ext <<_ACEOF
  6551. - program main
  6552. -#ifndef __GNUC__
  6553. - choke me
  6554. -#endif
  6555. - end
  6556. -_ACEOF
  6557. -if ac_fn_f77_try_compile "$LINENO"; then :
  6558. - ac_compiler_gnu=yes
  6559. -else
  6560. - ac_compiler_gnu=no
  6561. -fi
  6562. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6563. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  6564. -fi
  6565. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
  6566. -$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
  6567. -ac_ext=$ac_save_ext
  6568. -ac_test_FFLAGS=${FFLAGS+set}
  6569. -ac_save_FFLAGS=$FFLAGS
  6570. -FFLAGS=
  6571. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
  6572. -$as_echo_n "checking whether $F77 accepts -g... " >&6; }
  6573. -if test "${ac_cv_prog_f77_g+set}" = set; then :
  6574. - $as_echo_n "(cached) " >&6
  6575. -else
  6576. - FFLAGS=-g
  6577. -cat > conftest.$ac_ext <<_ACEOF
  6578. - program main
  6579. - end
  6580. -_ACEOF
  6581. -if ac_fn_f77_try_compile "$LINENO"; then :
  6582. - ac_cv_prog_f77_g=yes
  6583. -else
  6584. - ac_cv_prog_f77_g=no
  6585. -fi
  6586. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. -fi
  6588. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
  6589. -$as_echo "$ac_cv_prog_f77_g" >&6; }
  6590. -if test "$ac_test_FFLAGS" = set; then
  6591. - FFLAGS=$ac_save_FFLAGS
  6592. -elif test $ac_cv_prog_f77_g = yes; then
  6593. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6594. - FFLAGS="-g -O2"
  6595. - else
  6596. - FFLAGS="-g"
  6597. - fi
  6598. -else
  6599. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  6600. - FFLAGS="-O2"
  6601. - else
  6602. - FFLAGS=
  6603. - fi
  6604. -fi
  6605. -if test $ac_compiler_gnu = yes; then
  6606. - G77=yes
  6607. -else
  6608. - G77=
  6609. -fi
  6610. -ac_ext=c
  6611. -ac_cpp='$CPP $CPPFLAGS'
  6612. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6613. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6614. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6615. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  6616. -# find the maximum length of command line arguments
  6617. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6618. -$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6619. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  6620. +if test -n "$ac_tool_prefix"; then
  6621. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6622. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  6623. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6624. +$as_echo_n "checking for $ac_word... " >&6; }
  6625. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  6626. $as_echo_n "(cached) " >&6
  6627. else
  6628. - i=0
  6629. - teststring="ABCD"
  6630. -
  6631. - case $build_os in
  6632. - msdosdjgpp*)
  6633. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  6634. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  6635. - # during glob expansion). Even if it were fixed, the result of this
  6636. - # check would be larger than it should be.
  6637. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6638. - ;;
  6639. -
  6640. - gnu*)
  6641. - # Under GNU Hurd, this test is not required because there is
  6642. - # no limit to the length of command line arguments.
  6643. - # Libtool will interpret -1 as no limit whatsoever
  6644. - lt_cv_sys_max_cmd_len=-1;
  6645. - ;;
  6646. -
  6647. - cygwin* | mingw*)
  6648. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  6649. - # about 5 minutes as the teststring grows exponentially.
  6650. - # Worse, since 9x/ME are not pre-emptively multitasking,
  6651. - # you end up with a "frozen" computer, even though with patience
  6652. - # the test eventually succeeds (with a max line length of 256k).
  6653. - # Instead, let's just punt: use the minimum linelength reported by
  6654. - # all of the supported platforms: 8192 (on NT/2K/XP).
  6655. - lt_cv_sys_max_cmd_len=8192;
  6656. - ;;
  6657. + if test -n "$STRIP"; then
  6658. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6659. +else
  6660. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6661. +for as_dir in $PATH
  6662. +do
  6663. + IFS=$as_save_IFS
  6664. + test -z "$as_dir" && as_dir=.
  6665. + for ac_exec_ext in '' $ac_executable_extensions; do
  6666. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6667. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6668. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6669. + break 2
  6670. + fi
  6671. +done
  6672. + done
  6673. +IFS=$as_save_IFS
  6674. - amigaos*)
  6675. - # On AmigaOS with pdksh, this test takes hours, literally.
  6676. - # So we just punt and use a minimum line length of 8192.
  6677. - lt_cv_sys_max_cmd_len=8192;
  6678. - ;;
  6679. +fi
  6680. +fi
  6681. +STRIP=$ac_cv_prog_STRIP
  6682. +if test -n "$STRIP"; then
  6683. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6684. +$as_echo "$STRIP" >&6; }
  6685. +else
  6686. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6687. +$as_echo "no" >&6; }
  6688. +fi
  6689. - *)
  6690. - # If test is not a shell built-in, we'll probably end up computing a
  6691. - # maximum length that is only half of the actual maximum length, but
  6692. - # we can't tell.
  6693. - while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6694. - = "XX$teststring") >/dev/null 2>&1 &&
  6695. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6696. - lt_cv_sys_max_cmd_len=$new_result &&
  6697. - test $i != 17 # 1/2 MB should be enough
  6698. - do
  6699. - i=`expr $i + 1`
  6700. - teststring=$teststring$teststring
  6701. - done
  6702. - teststring=
  6703. - # Add a significant safety factor because C++ compilers can tack on massive
  6704. - # amounts of additional arguments before passing them to the linker.
  6705. - # It appears as though 1/2 is a usable value.
  6706. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6707. - ;;
  6708. - esac
  6709. fi
  6710. +if test -z "$ac_cv_prog_STRIP"; then
  6711. + ac_ct_STRIP=$STRIP
  6712. + # Extract the first word of "strip", so it can be a program name with args.
  6713. +set dummy strip; ac_word=$2
  6714. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6715. +$as_echo_n "checking for $ac_word... " >&6; }
  6716. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  6717. + $as_echo_n "(cached) " >&6
  6718. +else
  6719. + if test -n "$ac_ct_STRIP"; then
  6720. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6721. +else
  6722. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6723. +for as_dir in $PATH
  6724. +do
  6725. + IFS=$as_save_IFS
  6726. + test -z "$as_dir" && as_dir=.
  6727. + for ac_exec_ext in '' $ac_executable_extensions; do
  6728. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6729. + ac_cv_prog_ac_ct_STRIP="strip"
  6730. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6731. + break 2
  6732. + fi
  6733. +done
  6734. + done
  6735. +IFS=$as_save_IFS
  6736. -if test -n $lt_cv_sys_max_cmd_len ; then
  6737. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6738. -$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6739. +fi
  6740. +fi
  6741. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6742. +if test -n "$ac_ct_STRIP"; then
  6743. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6744. +$as_echo "$ac_ct_STRIP" >&6; }
  6745. else
  6746. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6747. -$as_echo "none" >&6; }
  6748. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6749. +$as_echo "no" >&6; }
  6750. fi
  6751. + if test "x$ac_ct_STRIP" = x; then
  6752. + STRIP=":"
  6753. + else
  6754. + case $cross_compiling:$ac_tool_warned in
  6755. +yes:)
  6756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6757. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6758. +ac_tool_warned=yes ;;
  6759. +esac
  6760. + STRIP=$ac_ct_STRIP
  6761. + fi
  6762. +else
  6763. + STRIP="$ac_cv_prog_STRIP"
  6764. +fi
  6765. +test -z "$STRIP" && STRIP=:
  6766. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  6767. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6768. -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6769. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  6770. - $as_echo_n "(cached) " >&6
  6771. -else
  6772. -# These are sane defaults that work on at least a few old systems.
  6773. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6774. -# Character class describing NM global symbol codes.
  6775. -symcode='[BCDEGRST]'
  6776. -# Regexp to match symbols that can be accessed directly from C.
  6777. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6778. -# Transform the above into a raw symbol and a C symbol.
  6779. -symxfrm='\1 \2\3 \3'
  6780. +if test -n "$ac_tool_prefix"; then
  6781. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6782. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6783. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6784. +$as_echo_n "checking for $ac_word... " >&6; }
  6785. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6786. + $as_echo_n "(cached) " >&6
  6787. +else
  6788. + if test -n "$RANLIB"; then
  6789. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6790. +else
  6791. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6792. +for as_dir in $PATH
  6793. +do
  6794. + IFS=$as_save_IFS
  6795. + test -z "$as_dir" && as_dir=.
  6796. + for ac_exec_ext in '' $ac_executable_extensions; do
  6797. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6798. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6799. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6800. + break 2
  6801. + fi
  6802. +done
  6803. + done
  6804. +IFS=$as_save_IFS
  6805. -# Transform an extracted symbol line into a proper C declaration
  6806. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6807. +fi
  6808. +fi
  6809. +RANLIB=$ac_cv_prog_RANLIB
  6810. +if test -n "$RANLIB"; then
  6811. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6812. +$as_echo "$RANLIB" >&6; }
  6813. +else
  6814. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6815. +$as_echo "no" >&6; }
  6816. +fi
  6817. -# Transform an extracted symbol line into symbol name and symbol address
  6818. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6819. -# Define system-specific variables.
  6820. -case $host_os in
  6821. -aix*)
  6822. - symcode='[BCDT]'
  6823. - ;;
  6824. -cygwin* | mingw* | pw32*)
  6825. - symcode='[ABCDGISTW]'
  6826. - ;;
  6827. -hpux*) # Its linker distinguishes data from code symbols
  6828. - if test "$host_cpu" = ia64; then
  6829. - symcode='[ABCDEGRST]'
  6830. +fi
  6831. +if test -z "$ac_cv_prog_RANLIB"; then
  6832. + ac_ct_RANLIB=$RANLIB
  6833. + # Extract the first word of "ranlib", so it can be a program name with args.
  6834. +set dummy ranlib; ac_word=$2
  6835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6836. +$as_echo_n "checking for $ac_word... " >&6; }
  6837. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6838. + $as_echo_n "(cached) " >&6
  6839. +else
  6840. + if test -n "$ac_ct_RANLIB"; then
  6841. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6842. +else
  6843. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6844. +for as_dir in $PATH
  6845. +do
  6846. + IFS=$as_save_IFS
  6847. + test -z "$as_dir" && as_dir=.
  6848. + for ac_exec_ext in '' $ac_executable_extensions; do
  6849. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6850. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  6851. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6852. + break 2
  6853. fi
  6854. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6855. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  6856. - ;;
  6857. -irix* | nonstopux*)
  6858. - symcode='[BCDEGRST]'
  6859. - ;;
  6860. -osf*)
  6861. - symcode='[BCDEGQRST]'
  6862. - ;;
  6863. -solaris* | sysv5*)
  6864. - symcode='[BDRT]'
  6865. - ;;
  6866. -sysv4)
  6867. - symcode='[DFNSTU]'
  6868. - ;;
  6869. -esac
  6870. +done
  6871. + done
  6872. +IFS=$as_save_IFS
  6873. -# Handle CRLF in mingw tool chain
  6874. -opt_cr=
  6875. -case $build_os in
  6876. -mingw*)
  6877. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6878. - ;;
  6879. -esac
  6880. +fi
  6881. +fi
  6882. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6883. +if test -n "$ac_ct_RANLIB"; then
  6884. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6885. +$as_echo "$ac_ct_RANLIB" >&6; }
  6886. +else
  6887. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6888. +$as_echo "no" >&6; }
  6889. +fi
  6890. -# If we're using GNU nm, then use its standard symbol codes.
  6891. -case `$NM -V 2>&1` in
  6892. -*GNU* | *'with BFD'*)
  6893. - symcode='[ABCDGIRSTW]' ;;
  6894. + if test "x$ac_ct_RANLIB" = x; then
  6895. + RANLIB=":"
  6896. + else
  6897. + case $cross_compiling:$ac_tool_warned in
  6898. +yes:)
  6899. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6900. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6901. +ac_tool_warned=yes ;;
  6902. esac
  6903. + RANLIB=$ac_ct_RANLIB
  6904. + fi
  6905. +else
  6906. + RANLIB="$ac_cv_prog_RANLIB"
  6907. +fi
  6908. -# Try without a prefix undercore, then with it.
  6909. -for ac_symprfx in "" "_"; do
  6910. +test -z "$RANLIB" && RANLIB=:
  6911. - # Write the raw and C identifiers.
  6912. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  6913. - # Check to see that the pipe works correctly.
  6914. - pipe_works=no
  6915. - rm -f conftest*
  6916. - cat > conftest.$ac_ext <<EOF
  6917. -#ifdef __cplusplus
  6918. -extern "C" {
  6919. -#endif
  6920. -char nm_test_var;
  6921. -void nm_test_func(){}
  6922. -#ifdef __cplusplus
  6923. -}
  6924. -#endif
  6925. -int main(){nm_test_var='a';nm_test_func();return(0);}
  6926. -EOF
  6927. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6928. - (eval $ac_compile) 2>&5
  6929. - ac_status=$?
  6930. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6931. - test $ac_status = 0; }; then
  6932. - # Now try to grab the symbols.
  6933. - nlist=conftest.nm
  6934. +
  6935. +
  6936. +# Determine commands to create old-style static archives.
  6937. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6938. +old_postinstall_cmds='chmod 644 $oldlib'
  6939. +old_postuninstall_cmds=
  6940. +
  6941. +if test -n "$RANLIB"; then
  6942. + case $host_os in
  6943. + openbsd*)
  6944. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6945. + ;;
  6946. + *)
  6947. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6948. + ;;
  6949. + esac
  6950. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6951. +fi
  6952. +
  6953. +
  6954. +
  6955. +
  6956. +
  6957. +
  6958. +
  6959. +
  6960. +
  6961. +
  6962. +
  6963. +
  6964. +
  6965. +
  6966. +
  6967. +
  6968. +
  6969. +
  6970. +
  6971. +
  6972. +
  6973. +
  6974. +
  6975. +
  6976. +
  6977. +
  6978. +
  6979. +
  6980. +
  6981. +
  6982. +
  6983. +
  6984. +
  6985. +
  6986. +# If no C compiler was specified, use CC.
  6987. +LTCC=${LTCC-"$CC"}
  6988. +
  6989. +# If no C compiler flags were specified, use CFLAGS.
  6990. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6991. +
  6992. +# Allow CC to be a program name with arguments.
  6993. +compiler=$CC
  6994. +
  6995. +
  6996. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6998. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6999. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  7000. + $as_echo_n "(cached) " >&6
  7001. +else
  7002. +
  7003. +# These are sane defaults that work on at least a few old systems.
  7004. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7005. +
  7006. +# Character class describing NM global symbol codes.
  7007. +symcode='[BCDEGRST]'
  7008. +
  7009. +# Regexp to match symbols that can be accessed directly from C.
  7010. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7011. +
  7012. +# Define system-specific variables.
  7013. +case $host_os in
  7014. +aix*)
  7015. + symcode='[BCDT]'
  7016. + ;;
  7017. +cygwin* | mingw* | pw32* | cegcc*)
  7018. + symcode='[ABCDGISTW]'
  7019. + ;;
  7020. +hpux*)
  7021. + if test "$host_cpu" = ia64; then
  7022. + symcode='[ABCDEGRST]'
  7023. + fi
  7024. + ;;
  7025. +irix* | nonstopux*)
  7026. + symcode='[BCDEGRST]'
  7027. + ;;
  7028. +osf*)
  7029. + symcode='[BCDEGQRST]'
  7030. + ;;
  7031. +solaris*)
  7032. + symcode='[BDRT]'
  7033. + ;;
  7034. +sco3.2v5*)
  7035. + symcode='[DT]'
  7036. + ;;
  7037. +sysv4.2uw2*)
  7038. + symcode='[DT]'
  7039. + ;;
  7040. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7041. + symcode='[ABDT]'
  7042. + ;;
  7043. +sysv4)
  7044. + symcode='[DFNSTU]'
  7045. + ;;
  7046. +esac
  7047. +
  7048. +# If we're using GNU nm, then use its standard symbol codes.
  7049. +case `$NM -V 2>&1` in
  7050. +*GNU* | *'with BFD'*)
  7051. + symcode='[ABCDGIRSTW]' ;;
  7052. +esac
  7053. +
  7054. +# Transform an extracted symbol line into a proper C declaration.
  7055. +# Some systems (esp. on ia64) link data and code symbols differently,
  7056. +# so use this general approach.
  7057. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7058. +
  7059. +# Transform an extracted symbol line into symbol name and symbol address
  7060. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  7061. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  7062. +
  7063. +# Handle CRLF in mingw tool chain
  7064. +opt_cr=
  7065. +case $build_os in
  7066. +mingw*)
  7067. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7068. + ;;
  7069. +esac
  7070. +
  7071. +# Try without a prefix underscore, then with it.
  7072. +for ac_symprfx in "" "_"; do
  7073. +
  7074. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7075. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  7076. +
  7077. + # Write the raw and C identifiers.
  7078. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7079. + # Fake it for dumpbin and say T for any non-static function
  7080. + # and D for any global variable.
  7081. + # Also find C++ and __fastcall symbols from MSVC++,
  7082. + # which start with @ or ?.
  7083. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  7084. +" {last_section=section; section=\$ 3};"\
  7085. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7086. +" \$ 0!~/External *\|/{next};"\
  7087. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7088. +" {if(hide[section]) next};"\
  7089. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7090. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7091. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7092. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7093. +" ' prfx=^$ac_symprfx"
  7094. + else
  7095. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7096. + fi
  7097. +
  7098. + # Check to see that the pipe works correctly.
  7099. + pipe_works=no
  7100. +
  7101. + rm -f conftest*
  7102. + cat > conftest.$ac_ext <<_LT_EOF
  7103. +#ifdef __cplusplus
  7104. +extern "C" {
  7105. +#endif
  7106. +char nm_test_var;
  7107. +void nm_test_func(void);
  7108. +void nm_test_func(void){}
  7109. +#ifdef __cplusplus
  7110. +}
  7111. +#endif
  7112. +int main(){nm_test_var='a';nm_test_func();return(0);}
  7113. +_LT_EOF
  7114. +
  7115. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7116. + (eval $ac_compile) 2>&5
  7117. + ac_status=$?
  7118. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7119. + test $ac_status = 0; }; then
  7120. + # Now try to grab the symbols.
  7121. + nlist=conftest.nm
  7122. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  7123. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  7124. ac_status=$?
  7125. @@ -7293,42 +6863,44 @@
  7126. fi
  7127. # Make sure that we snagged all the symbols we need.
  7128. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7129. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7130. - cat <<EOF > conftest.$ac_ext
  7131. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7132. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7133. + cat <<_LT_EOF > conftest.$ac_ext
  7134. #ifdef __cplusplus
  7135. extern "C" {
  7136. #endif
  7137. -EOF
  7138. +_LT_EOF
  7139. # Now generate the symbol file.
  7140. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  7141. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7142. - cat <<EOF >> conftest.$ac_ext
  7143. -#if defined (__STDC__) && __STDC__
  7144. -# define lt_ptr_t void *
  7145. -#else
  7146. -# define lt_ptr_t char *
  7147. -# define const
  7148. -#endif
  7149. + cat <<_LT_EOF >> conftest.$ac_ext
  7150. -/* The mapping between symbol names and symbols. */
  7151. +/* The mapping between symbol names and symbols. */
  7152. const struct {
  7153. const char *name;
  7154. - lt_ptr_t address;
  7155. + void *address;
  7156. }
  7157. -lt_preloaded_symbols[] =
  7158. +lt__PROGRAM__LTX_preloaded_symbols[] =
  7159. {
  7160. -EOF
  7161. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  7162. - cat <<\EOF >> conftest.$ac_ext
  7163. - {0, (lt_ptr_t) 0}
  7164. + { "@PROGRAM@", (void *) 0 },
  7165. +_LT_EOF
  7166. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7167. + cat <<\_LT_EOF >> conftest.$ac_ext
  7168. + {0, (void *) 0}
  7169. };
  7170. +/* This works around a problem in FreeBSD linker */
  7171. +#ifdef FREEBSD_WORKAROUND
  7172. +static const void *lt_preloaded_setup() {
  7173. + return lt__PROGRAM__LTX_preloaded_symbols;
  7174. +}
  7175. +#endif
  7176. +
  7177. #ifdef __cplusplus
  7178. }
  7179. #endif
  7180. -EOF
  7181. +_LT_EOF
  7182. # Now try linking the two files.
  7183. mv conftest.$ac_objext conftstm.$ac_objext
  7184. lt_save_LIBS="$LIBS"
  7185. @@ -7357,7 +6929,7 @@
  7186. echo "$progname: failed program was:" >&5
  7187. cat conftest.$ac_ext >&5
  7188. fi
  7189. - rm -f conftest* conftst*
  7190. + rm -rf conftest* conftst*
  7191. # Do not use the global_symbol_pipe unless it works.
  7192. if test "$pipe_works" = yes; then
  7193. @@ -7380,129 +6952,242 @@
  7194. $as_echo "ok" >&6; }
  7195. fi
  7196. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7197. -$as_echo_n "checking for objdir... " >&6; }
  7198. -if test "${lt_cv_objdir+set}" = set; then :
  7199. - $as_echo_n "(cached) " >&6
  7200. -else
  7201. - rm -f .libs 2>/dev/null
  7202. -mkdir .libs 2>/dev/null
  7203. -if test -d .libs; then
  7204. - lt_cv_objdir=.libs
  7205. -else
  7206. - # MS-DOS does not allow filenames that begin with a dot.
  7207. - lt_cv_objdir=_libs
  7208. -fi
  7209. -rmdir .libs 2>/dev/null
  7210. -fi
  7211. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7212. -$as_echo "$lt_cv_objdir" >&6; }
  7213. -objdir=$lt_cv_objdir
  7214. -case $host_os in
  7215. -aix3*)
  7216. - # AIX sometimes has problems with the GCC collect2 program. For some
  7217. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  7218. - # vanish in a puff of smoke.
  7219. - if test "X${COLLECT_NAMES+set}" != Xset; then
  7220. - COLLECT_NAMES=
  7221. - export COLLECT_NAMES
  7222. - fi
  7223. - ;;
  7224. -esac
  7225. -# Sed substitution that helps us do robust quoting. It backslashifies
  7226. -# metacharacters that are still active within double-quoted strings.
  7227. -Xsed='sed -e s/^X//'
  7228. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  7229. -# Same as above, but do not quote variable references.
  7230. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  7231. -# Sed substitution to delay expansion of an escaped shell variable in a
  7232. -# double_quote_subst'ed string.
  7233. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7234. -# Sed substitution to avoid accidental globbing in evaled expressions
  7235. -no_glob_subst='s/\*/\\\*/g'
  7236. -# Constants:
  7237. -rm="rm -f"
  7238. -# Global variables:
  7239. -default_ofile=libtool
  7240. -can_build_shared=yes
  7241. -# All known linkers require a `.a' archive for static linking (except M$VC,
  7242. -# which needs '.lib').
  7243. -libext=a
  7244. -ltmain="$ac_aux_dir/ltmain.sh"
  7245. -ofile="$default_ofile"
  7246. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  7247. -if test -n "$ac_tool_prefix"; then
  7248. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7249. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  7250. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7251. -$as_echo_n "checking for $ac_word... " >&6; }
  7252. -if test "${ac_cv_prog_AR+set}" = set; then :
  7253. - $as_echo_n "(cached) " >&6
  7254. -else
  7255. - if test -n "$AR"; then
  7256. - ac_cv_prog_AR="$AR" # Let the user override the test.
  7257. -else
  7258. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7259. -for as_dir in $PATH
  7260. -do
  7261. - IFS=$as_save_IFS
  7262. - test -z "$as_dir" && as_dir=.
  7263. - for ac_exec_ext in '' $ac_executable_extensions; do
  7264. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7265. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  7266. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7267. - break 2
  7268. - fi
  7269. -done
  7270. - done
  7271. -IFS=$as_save_IFS
  7272. -fi
  7273. -fi
  7274. -AR=$ac_cv_prog_AR
  7275. -if test -n "$AR"; then
  7276. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7277. -$as_echo "$AR" >&6; }
  7278. -else
  7279. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7280. -$as_echo "no" >&6; }
  7281. -fi
  7282. +
  7283. +
  7284. +
  7285. +
  7286. +
  7287. +# Check whether --enable-libtool-lock was given.
  7288. +if test "${enable_libtool_lock+set}" = set; then :
  7289. + enableval=$enable_libtool_lock;
  7290. fi
  7291. -if test -z "$ac_cv_prog_AR"; then
  7292. - ac_ct_AR=$AR
  7293. - # Extract the first word of "ar", so it can be a program name with args.
  7294. -set dummy ar; ac_word=$2
  7295. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7296. -$as_echo_n "checking for $ac_word... " >&6; }
  7297. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  7298. - $as_echo_n "(cached) " >&6
  7299. -else
  7300. - if test -n "$ac_ct_AR"; then
  7301. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7302. -else
  7303. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7304. -for as_dir in $PATH
  7305. -do
  7306. - IFS=$as_save_IFS
  7307. - test -z "$as_dir" && as_dir=.
  7308. +
  7309. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7310. +
  7311. +# Some flags need to be propagated to the compiler or linker for good
  7312. +# libtool support.
  7313. +case $host in
  7314. +ia64-*-hpux*)
  7315. + # Find out which ABI we are using.
  7316. + echo 'int i;' > conftest.$ac_ext
  7317. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7318. + (eval $ac_compile) 2>&5
  7319. + ac_status=$?
  7320. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7321. + test $ac_status = 0; }; then
  7322. + case `/usr/bin/file conftest.$ac_objext` in
  7323. + *ELF-32*)
  7324. + HPUX_IA64_MODE="32"
  7325. + ;;
  7326. + *ELF-64*)
  7327. + HPUX_IA64_MODE="64"
  7328. + ;;
  7329. + esac
  7330. + fi
  7331. + rm -rf conftest*
  7332. + ;;
  7333. +*-*-irix6*)
  7334. + # Find out which ABI we are using.
  7335. + echo '#line 7007 "configure"' > conftest.$ac_ext
  7336. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7337. + (eval $ac_compile) 2>&5
  7338. + ac_status=$?
  7339. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7340. + test $ac_status = 0; }; then
  7341. + if test "$lt_cv_prog_gnu_ld" = yes; then
  7342. + case `/usr/bin/file conftest.$ac_objext` in
  7343. + *32-bit*)
  7344. + LD="${LD-ld} -melf32bsmip"
  7345. + ;;
  7346. + *N32*)
  7347. + LD="${LD-ld} -melf32bmipn32"
  7348. + ;;
  7349. + *64-bit*)
  7350. + LD="${LD-ld} -melf64bmip"
  7351. + ;;
  7352. + esac
  7353. + else
  7354. + case `/usr/bin/file conftest.$ac_objext` in
  7355. + *32-bit*)
  7356. + LD="${LD-ld} -32"
  7357. + ;;
  7358. + *N32*)
  7359. + LD="${LD-ld} -n32"
  7360. + ;;
  7361. + *64-bit*)
  7362. + LD="${LD-ld} -64"
  7363. + ;;
  7364. + esac
  7365. + fi
  7366. + fi
  7367. + rm -rf conftest*
  7368. + ;;
  7369. +
  7370. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  7371. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7372. + # Find out which ABI we are using.
  7373. + echo 'int i;' > conftest.$ac_ext
  7374. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7375. + (eval $ac_compile) 2>&5
  7376. + ac_status=$?
  7377. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7378. + test $ac_status = 0; }; then
  7379. + case `/usr/bin/file conftest.o` in
  7380. + *32-bit*)
  7381. + case $host in
  7382. + x86_64-*kfreebsd*-gnu)
  7383. + LD="${LD-ld} -m elf_i386_fbsd"
  7384. + ;;
  7385. + x86_64-*linux*)
  7386. + LD="${LD-ld} -m elf_i386"
  7387. + ;;
  7388. + ppc64-*linux*|powerpc64-*linux*)
  7389. + LD="${LD-ld} -m elf32ppclinux"
  7390. + ;;
  7391. + s390x-*linux*)
  7392. + LD="${LD-ld} -m elf_s390"
  7393. + ;;
  7394. + sparc64-*linux*)
  7395. + LD="${LD-ld} -m elf32_sparc"
  7396. + ;;
  7397. + esac
  7398. + ;;
  7399. + *64-bit*)
  7400. + case $host in
  7401. + x86_64-*kfreebsd*-gnu)
  7402. + LD="${LD-ld} -m elf_x86_64_fbsd"
  7403. + ;;
  7404. + x86_64-*linux*)
  7405. + LD="${LD-ld} -m elf_x86_64"
  7406. + ;;
  7407. + ppc*-*linux*|powerpc*-*linux*)
  7408. + LD="${LD-ld} -m elf64ppc"
  7409. + ;;
  7410. + s390*-*linux*|s390*-*tpf*)
  7411. + LD="${LD-ld} -m elf64_s390"
  7412. + ;;
  7413. + sparc*-*linux*)
  7414. + LD="${LD-ld} -m elf64_sparc"
  7415. + ;;
  7416. + esac
  7417. + ;;
  7418. + esac
  7419. + fi
  7420. + rm -rf conftest*
  7421. + ;;
  7422. +
  7423. +*-*-sco3.2v5*)
  7424. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7425. + SAVE_CFLAGS="$CFLAGS"
  7426. + CFLAGS="$CFLAGS -belf"
  7427. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7428. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7429. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  7430. + $as_echo_n "(cached) " >&6
  7431. +else
  7432. + ac_ext=c
  7433. +ac_cpp='$CPP $CPPFLAGS'
  7434. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7435. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7436. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7437. +
  7438. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7439. +/* end confdefs.h. */
  7440. +
  7441. +int
  7442. +main ()
  7443. +{
  7444. +
  7445. + ;
  7446. + return 0;
  7447. +}
  7448. +_ACEOF
  7449. +if ac_fn_c_try_link "$LINENO"; then :
  7450. + lt_cv_cc_needs_belf=yes
  7451. +else
  7452. + lt_cv_cc_needs_belf=no
  7453. +fi
  7454. +rm -f core conftest.err conftest.$ac_objext \
  7455. + conftest$ac_exeext conftest.$ac_ext
  7456. + ac_ext=c
  7457. +ac_cpp='$CPP $CPPFLAGS'
  7458. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7459. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7460. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7461. +
  7462. +fi
  7463. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7464. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  7465. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7466. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7467. + CFLAGS="$SAVE_CFLAGS"
  7468. + fi
  7469. + ;;
  7470. +sparc*-*solaris*)
  7471. + # Find out which ABI we are using.
  7472. + echo 'int i;' > conftest.$ac_ext
  7473. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7474. + (eval $ac_compile) 2>&5
  7475. + ac_status=$?
  7476. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7477. + test $ac_status = 0; }; then
  7478. + case `/usr/bin/file conftest.o` in
  7479. + *64-bit*)
  7480. + case $lt_cv_prog_gnu_ld in
  7481. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7482. + *)
  7483. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7484. + LD="${LD-ld} -64"
  7485. + fi
  7486. + ;;
  7487. + esac
  7488. + ;;
  7489. + esac
  7490. + fi
  7491. + rm -rf conftest*
  7492. + ;;
  7493. +esac
  7494. +
  7495. +need_locks="$enable_libtool_lock"
  7496. +
  7497. +
  7498. + case $host_os in
  7499. + rhapsody* | darwin*)
  7500. + if test -n "$ac_tool_prefix"; then
  7501. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7502. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7503. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7504. +$as_echo_n "checking for $ac_word... " >&6; }
  7505. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  7506. + $as_echo_n "(cached) " >&6
  7507. +else
  7508. + if test -n "$DSYMUTIL"; then
  7509. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7510. +else
  7511. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7512. +for as_dir in $PATH
  7513. +do
  7514. + IFS=$as_save_IFS
  7515. + test -z "$as_dir" && as_dir=.
  7516. for ac_exec_ext in '' $ac_executable_extensions; do
  7517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7518. - ac_cv_prog_ac_ct_AR="ar"
  7519. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7521. break 2
  7522. fi
  7523. @@ -7512,17 +7197,57 @@
  7524. fi
  7525. fi
  7526. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7527. -if test -n "$ac_ct_AR"; then
  7528. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7529. -$as_echo "$ac_ct_AR" >&6; }
  7530. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7531. +if test -n "$DSYMUTIL"; then
  7532. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7533. +$as_echo "$DSYMUTIL" >&6; }
  7534. else
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7536. $as_echo "no" >&6; }
  7537. fi
  7538. - if test "x$ac_ct_AR" = x; then
  7539. - AR="false"
  7540. +
  7541. +fi
  7542. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  7543. + ac_ct_DSYMUTIL=$DSYMUTIL
  7544. + # Extract the first word of "dsymutil", so it can be a program name with args.
  7545. +set dummy dsymutil; ac_word=$2
  7546. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7547. +$as_echo_n "checking for $ac_word... " >&6; }
  7548. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  7549. + $as_echo_n "(cached) " >&6
  7550. +else
  7551. + if test -n "$ac_ct_DSYMUTIL"; then
  7552. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7553. +else
  7554. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7555. +for as_dir in $PATH
  7556. +do
  7557. + IFS=$as_save_IFS
  7558. + test -z "$as_dir" && as_dir=.
  7559. + for ac_exec_ext in '' $ac_executable_extensions; do
  7560. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7561. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7562. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7563. + break 2
  7564. + fi
  7565. +done
  7566. + done
  7567. +IFS=$as_save_IFS
  7568. +
  7569. +fi
  7570. +fi
  7571. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7572. +if test -n "$ac_ct_DSYMUTIL"; then
  7573. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7574. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  7575. +else
  7576. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7577. +$as_echo "no" >&6; }
  7578. +fi
  7579. +
  7580. + if test "x$ac_ct_DSYMUTIL" = x; then
  7581. + DSYMUTIL=":"
  7582. else
  7583. case $cross_compiling:$ac_tool_warned in
  7584. yes:)
  7585. @@ -7530,22 +7255,22 @@
  7586. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7587. ac_tool_warned=yes ;;
  7588. esac
  7589. - AR=$ac_ct_AR
  7590. + DSYMUTIL=$ac_ct_DSYMUTIL
  7591. fi
  7592. else
  7593. - AR="$ac_cv_prog_AR"
  7594. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7595. fi
  7596. -if test -n "$ac_tool_prefix"; then
  7597. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7598. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7599. + if test -n "$ac_tool_prefix"; then
  7600. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7601. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7603. $as_echo_n "checking for $ac_word... " >&6; }
  7604. -if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7605. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  7606. $as_echo_n "(cached) " >&6
  7607. else
  7608. - if test -n "$RANLIB"; then
  7609. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7610. + if test -n "$NMEDIT"; then
  7611. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7612. else
  7613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7614. for as_dir in $PATH
  7615. @@ -7554,7 +7279,7 @@
  7616. test -z "$as_dir" && as_dir=.
  7617. for ac_exec_ext in '' $ac_executable_extensions; do
  7618. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7619. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7620. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7622. break 2
  7623. fi
  7624. @@ -7564,10 +7289,10 @@
  7625. fi
  7626. fi
  7627. -RANLIB=$ac_cv_prog_RANLIB
  7628. -if test -n "$RANLIB"; then
  7629. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7630. -$as_echo "$RANLIB" >&6; }
  7631. +NMEDIT=$ac_cv_prog_NMEDIT
  7632. +if test -n "$NMEDIT"; then
  7633. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7634. +$as_echo "$NMEDIT" >&6; }
  7635. else
  7636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7637. $as_echo "no" >&6; }
  7638. @@ -7575,17 +7300,17 @@
  7639. fi
  7640. -if test -z "$ac_cv_prog_RANLIB"; then
  7641. - ac_ct_RANLIB=$RANLIB
  7642. - # Extract the first word of "ranlib", so it can be a program name with args.
  7643. -set dummy ranlib; ac_word=$2
  7644. +if test -z "$ac_cv_prog_NMEDIT"; then
  7645. + ac_ct_NMEDIT=$NMEDIT
  7646. + # Extract the first word of "nmedit", so it can be a program name with args.
  7647. +set dummy nmedit; ac_word=$2
  7648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7649. $as_echo_n "checking for $ac_word... " >&6; }
  7650. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  7651. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. - if test -n "$ac_ct_RANLIB"; then
  7655. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7656. + if test -n "$ac_ct_NMEDIT"; then
  7657. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7658. else
  7659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7660. for as_dir in $PATH
  7661. @@ -7594,7 +7319,7 @@
  7662. test -z "$as_dir" && as_dir=.
  7663. for ac_exec_ext in '' $ac_executable_extensions; do
  7664. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7665. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  7666. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7668. break 2
  7669. fi
  7670. @@ -7604,17 +7329,17 @@
  7671. fi
  7672. fi
  7673. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7674. -if test -n "$ac_ct_RANLIB"; then
  7675. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7676. -$as_echo "$ac_ct_RANLIB" >&6; }
  7677. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7678. +if test -n "$ac_ct_NMEDIT"; then
  7679. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7680. +$as_echo "$ac_ct_NMEDIT" >&6; }
  7681. else
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7683. $as_echo "no" >&6; }
  7684. fi
  7685. - if test "x$ac_ct_RANLIB" = x; then
  7686. - RANLIB=":"
  7687. + if test "x$ac_ct_NMEDIT" = x; then
  7688. + NMEDIT=":"
  7689. else
  7690. case $cross_compiling:$ac_tool_warned in
  7691. yes:)
  7692. @@ -7622,22 +7347,22 @@
  7693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7694. ac_tool_warned=yes ;;
  7695. esac
  7696. - RANLIB=$ac_ct_RANLIB
  7697. + NMEDIT=$ac_ct_NMEDIT
  7698. fi
  7699. else
  7700. - RANLIB="$ac_cv_prog_RANLIB"
  7701. + NMEDIT="$ac_cv_prog_NMEDIT"
  7702. fi
  7703. -if test -n "$ac_tool_prefix"; then
  7704. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7705. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  7706. + if test -n "$ac_tool_prefix"; then
  7707. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7708. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7710. $as_echo_n "checking for $ac_word... " >&6; }
  7711. -if test "${ac_cv_prog_STRIP+set}" = set; then :
  7712. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  7713. $as_echo_n "(cached) " >&6
  7714. else
  7715. - if test -n "$STRIP"; then
  7716. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7717. + if test -n "$LIPO"; then
  7718. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7719. else
  7720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7721. for as_dir in $PATH
  7722. @@ -7646,7 +7371,7 @@
  7723. test -z "$as_dir" && as_dir=.
  7724. for ac_exec_ext in '' $ac_executable_extensions; do
  7725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7726. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7727. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7728. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7729. break 2
  7730. fi
  7731. @@ -7656,10 +7381,10 @@
  7732. fi
  7733. fi
  7734. -STRIP=$ac_cv_prog_STRIP
  7735. -if test -n "$STRIP"; then
  7736. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7737. -$as_echo "$STRIP" >&6; }
  7738. +LIPO=$ac_cv_prog_LIPO
  7739. +if test -n "$LIPO"; then
  7740. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7741. +$as_echo "$LIPO" >&6; }
  7742. else
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7744. $as_echo "no" >&6; }
  7745. @@ -7667,17 +7392,17 @@
  7746. fi
  7747. -if test -z "$ac_cv_prog_STRIP"; then
  7748. - ac_ct_STRIP=$STRIP
  7749. - # Extract the first word of "strip", so it can be a program name with args.
  7750. -set dummy strip; ac_word=$2
  7751. +if test -z "$ac_cv_prog_LIPO"; then
  7752. + ac_ct_LIPO=$LIPO
  7753. + # Extract the first word of "lipo", so it can be a program name with args.
  7754. +set dummy lipo; ac_word=$2
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7756. $as_echo_n "checking for $ac_word... " >&6; }
  7757. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  7758. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  7759. $as_echo_n "(cached) " >&6
  7760. else
  7761. - if test -n "$ac_ct_STRIP"; then
  7762. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7763. + if test -n "$ac_ct_LIPO"; then
  7764. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7765. else
  7766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7767. for as_dir in $PATH
  7768. @@ -7686,7 +7411,7 @@
  7769. test -z "$as_dir" && as_dir=.
  7770. for ac_exec_ext in '' $ac_executable_extensions; do
  7771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7772. - ac_cv_prog_ac_ct_STRIP="strip"
  7773. + ac_cv_prog_ac_ct_LIPO="lipo"
  7774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7775. break 2
  7776. fi
  7777. @@ -7696,17 +7421,17 @@
  7778. fi
  7779. fi
  7780. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7781. -if test -n "$ac_ct_STRIP"; then
  7782. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7783. -$as_echo "$ac_ct_STRIP" >&6; }
  7784. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7785. +if test -n "$ac_ct_LIPO"; then
  7786. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7787. +$as_echo "$ac_ct_LIPO" >&6; }
  7788. else
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7790. $as_echo "no" >&6; }
  7791. fi
  7792. - if test "x$ac_ct_STRIP" = x; then
  7793. - STRIP=":"
  7794. + if test "x$ac_ct_LIPO" = x; then
  7795. + LIPO=":"
  7796. else
  7797. case $cross_compiling:$ac_tool_warned in
  7798. yes:)
  7799. @@ -7714,4958 +7439,2902 @@
  7800. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7801. ac_tool_warned=yes ;;
  7802. esac
  7803. - STRIP=$ac_ct_STRIP
  7804. + LIPO=$ac_ct_LIPO
  7805. fi
  7806. else
  7807. - STRIP="$ac_cv_prog_STRIP"
  7808. + LIPO="$ac_cv_prog_LIPO"
  7809. fi
  7810. + if test -n "$ac_tool_prefix"; then
  7811. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7812. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  7813. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7814. +$as_echo_n "checking for $ac_word... " >&6; }
  7815. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  7816. + $as_echo_n "(cached) " >&6
  7817. +else
  7818. + if test -n "$OTOOL"; then
  7819. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7820. +else
  7821. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7822. +for as_dir in $PATH
  7823. +do
  7824. + IFS=$as_save_IFS
  7825. + test -z "$as_dir" && as_dir=.
  7826. + for ac_exec_ext in '' $ac_executable_extensions; do
  7827. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7828. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7829. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7830. + break 2
  7831. + fi
  7832. +done
  7833. + done
  7834. +IFS=$as_save_IFS
  7835. -old_CC="$CC"
  7836. -old_CFLAGS="$CFLAGS"
  7837. -
  7838. -# Set sane defaults for various variables
  7839. -test -z "$AR" && AR=ar
  7840. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  7841. -test -z "$AS" && AS=as
  7842. -test -z "$CC" && CC=cc
  7843. -test -z "$LTCC" && LTCC=$CC
  7844. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  7845. -test -z "$LD" && LD=ld
  7846. -test -z "$LN_S" && LN_S="ln -s"
  7847. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7848. -test -z "$NM" && NM=nm
  7849. -test -z "$SED" && SED=sed
  7850. -test -z "$OBJDUMP" && OBJDUMP=objdump
  7851. -test -z "$RANLIB" && RANLIB=:
  7852. -test -z "$STRIP" && STRIP=:
  7853. -test -z "$ac_objext" && ac_objext=o
  7854. -
  7855. -# Determine commands to create old-style static archives.
  7856. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  7857. -old_postinstall_cmds='chmod 644 $oldlib'
  7858. -old_postuninstall_cmds=
  7859. -
  7860. -if test -n "$RANLIB"; then
  7861. - case $host_os in
  7862. - openbsd*)
  7863. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  7864. - ;;
  7865. - *)
  7866. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  7867. - ;;
  7868. - esac
  7869. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7870. +fi
  7871. +fi
  7872. +OTOOL=$ac_cv_prog_OTOOL
  7873. +if test -n "$OTOOL"; then
  7874. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7875. +$as_echo "$OTOOL" >&6; }
  7876. +else
  7877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7878. +$as_echo "no" >&6; }
  7879. fi
  7880. -# Only perform the check for file, if the check method requires it
  7881. -case $deplibs_check_method in
  7882. -file_magic*)
  7883. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7884. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7885. -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7886. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7887. +
  7888. +fi
  7889. +if test -z "$ac_cv_prog_OTOOL"; then
  7890. + ac_ct_OTOOL=$OTOOL
  7891. + # Extract the first word of "otool", so it can be a program name with args.
  7892. +set dummy otool; ac_word=$2
  7893. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. +$as_echo_n "checking for $ac_word... " >&6; }
  7895. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. - case $MAGIC_CMD in
  7899. -[\\/*] | ?:[\\/]*)
  7900. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7901. - ;;
  7902. -*)
  7903. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  7904. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7905. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7906. - for ac_dir in $ac_dummy; do
  7907. - IFS="$lt_save_ifs"
  7908. - test -z "$ac_dir" && ac_dir=.
  7909. - if test -f $ac_dir/${ac_tool_prefix}file; then
  7910. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7911. - if test -n "$file_magic_test_file"; then
  7912. - case $deplibs_check_method in
  7913. - "file_magic "*)
  7914. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7915. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7916. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7917. - $EGREP "$file_magic_regex" > /dev/null; then
  7918. - :
  7919. - else
  7920. - cat <<EOF 1>&2
  7921. + if test -n "$ac_ct_OTOOL"; then
  7922. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7923. +else
  7924. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7925. +for as_dir in $PATH
  7926. +do
  7927. + IFS=$as_save_IFS
  7928. + test -z "$as_dir" && as_dir=.
  7929. + for ac_exec_ext in '' $ac_executable_extensions; do
  7930. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7931. + ac_cv_prog_ac_ct_OTOOL="otool"
  7932. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7933. + break 2
  7934. + fi
  7935. +done
  7936. + done
  7937. +IFS=$as_save_IFS
  7938. -*** Warning: the command libtool uses to detect shared libraries,
  7939. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  7940. -*** The result is that libtool may fail to recognize shared libraries
  7941. -*** as such. This will affect the creation of libtool libraries that
  7942. -*** depend on shared libraries, but programs linked with such libtool
  7943. -*** libraries will work regardless of this problem. Nevertheless, you
  7944. -*** may want to report the problem to your system manager and/or to
  7945. -*** bug-libtool@gnu.org
  7946. +fi
  7947. +fi
  7948. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7949. +if test -n "$ac_ct_OTOOL"; then
  7950. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7951. +$as_echo "$ac_ct_OTOOL" >&6; }
  7952. +else
  7953. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7954. +$as_echo "no" >&6; }
  7955. +fi
  7956. -EOF
  7957. - fi ;;
  7958. - esac
  7959. - fi
  7960. - break
  7961. - fi
  7962. - done
  7963. - IFS="$lt_save_ifs"
  7964. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  7965. - ;;
  7966. + if test "x$ac_ct_OTOOL" = x; then
  7967. + OTOOL=":"
  7968. + else
  7969. + case $cross_compiling:$ac_tool_warned in
  7970. +yes:)
  7971. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7972. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7973. +ac_tool_warned=yes ;;
  7974. esac
  7975. + OTOOL=$ac_ct_OTOOL
  7976. + fi
  7977. +else
  7978. + OTOOL="$ac_cv_prog_OTOOL"
  7979. fi
  7980. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7981. -if test -n "$MAGIC_CMD"; then
  7982. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7983. -$as_echo "$MAGIC_CMD" >&6; }
  7984. + if test -n "$ac_tool_prefix"; then
  7985. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7986. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7988. +$as_echo_n "checking for $ac_word... " >&6; }
  7989. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  7990. + $as_echo_n "(cached) " >&6
  7991. +else
  7992. + if test -n "$OTOOL64"; then
  7993. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7994. +else
  7995. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7996. +for as_dir in $PATH
  7997. +do
  7998. + IFS=$as_save_IFS
  7999. + test -z "$as_dir" && as_dir=.
  8000. + for ac_exec_ext in '' $ac_executable_extensions; do
  8001. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8002. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8003. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8004. + break 2
  8005. + fi
  8006. +done
  8007. + done
  8008. +IFS=$as_save_IFS
  8009. +
  8010. +fi
  8011. +fi
  8012. +OTOOL64=$ac_cv_prog_OTOOL64
  8013. +if test -n "$OTOOL64"; then
  8014. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8015. +$as_echo "$OTOOL64" >&6; }
  8016. else
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8018. $as_echo "no" >&6; }
  8019. fi
  8020. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  8021. - if test -n "$ac_tool_prefix"; then
  8022. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8023. -$as_echo_n "checking for file... " >&6; }
  8024. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8025. +
  8026. +fi
  8027. +if test -z "$ac_cv_prog_OTOOL64"; then
  8028. + ac_ct_OTOOL64=$OTOOL64
  8029. + # Extract the first word of "otool64", so it can be a program name with args.
  8030. +set dummy otool64; ac_word=$2
  8031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8032. +$as_echo_n "checking for $ac_word... " >&6; }
  8033. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. - case $MAGIC_CMD in
  8037. -[\\/*] | ?:[\\/]*)
  8038. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8039. - ;;
  8040. -*)
  8041. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  8042. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8043. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8044. - for ac_dir in $ac_dummy; do
  8045. - IFS="$lt_save_ifs"
  8046. - test -z "$ac_dir" && ac_dir=.
  8047. - if test -f $ac_dir/file; then
  8048. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8049. - if test -n "$file_magic_test_file"; then
  8050. - case $deplibs_check_method in
  8051. - "file_magic "*)
  8052. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  8053. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8054. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8055. - $EGREP "$file_magic_regex" > /dev/null; then
  8056. - :
  8057. - else
  8058. - cat <<EOF 1>&2
  8059. -
  8060. -*** Warning: the command libtool uses to detect shared libraries,
  8061. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  8062. -*** The result is that libtool may fail to recognize shared libraries
  8063. -*** as such. This will affect the creation of libtool libraries that
  8064. -*** depend on shared libraries, but programs linked with such libtool
  8065. -*** libraries will work regardless of this problem. Nevertheless, you
  8066. -*** may want to report the problem to your system manager and/or to
  8067. -*** bug-libtool@gnu.org
  8068. -
  8069. -EOF
  8070. - fi ;;
  8071. - esac
  8072. - fi
  8073. - break
  8074. - fi
  8075. + if test -n "$ac_ct_OTOOL64"; then
  8076. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8077. +else
  8078. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8079. +for as_dir in $PATH
  8080. +do
  8081. + IFS=$as_save_IFS
  8082. + test -z "$as_dir" && as_dir=.
  8083. + for ac_exec_ext in '' $ac_executable_extensions; do
  8084. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8085. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  8086. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8087. + break 2
  8088. + fi
  8089. +done
  8090. done
  8091. - IFS="$lt_save_ifs"
  8092. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  8093. - ;;
  8094. -esac
  8095. -fi
  8096. +IFS=$as_save_IFS
  8097. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8098. -if test -n "$MAGIC_CMD"; then
  8099. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8100. -$as_echo "$MAGIC_CMD" >&6; }
  8101. +fi
  8102. +fi
  8103. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8104. +if test -n "$ac_ct_OTOOL64"; then
  8105. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8106. +$as_echo "$ac_ct_OTOOL64" >&6; }
  8107. else
  8108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8109. $as_echo "no" >&6; }
  8110. fi
  8111. + if test "x$ac_ct_OTOOL64" = x; then
  8112. + OTOOL64=":"
  8113. else
  8114. - MAGIC_CMD=:
  8115. + case $cross_compiling:$ac_tool_warned in
  8116. +yes:)
  8117. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8118. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8119. +ac_tool_warned=yes ;;
  8120. +esac
  8121. + OTOOL64=$ac_ct_OTOOL64
  8122. fi
  8123. +else
  8124. + OTOOL64="$ac_cv_prog_OTOOL64"
  8125. fi
  8126. - fi
  8127. - ;;
  8128. -esac
  8129. -enable_dlopen=no
  8130. -enable_win32_dll=yes
  8131. -# Check whether --enable-libtool-lock was given.
  8132. -if test "${enable_libtool_lock+set}" = set; then :
  8133. - enableval=$enable_libtool_lock;
  8134. -fi
  8135. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8136. -# Check whether --with-pic was given.
  8137. -if test "${with_pic+set}" = set; then :
  8138. - withval=$with_pic; pic_mode="$withval"
  8139. -else
  8140. - pic_mode=default
  8141. -fi
  8142. -test -z "$pic_mode" && pic_mode=default
  8143. -# Use C for the default configuration in the libtool script
  8144. -tagname=
  8145. -lt_save_CC="$CC"
  8146. -ac_ext=c
  8147. -ac_cpp='$CPP $CPPFLAGS'
  8148. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8149. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8150. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8151. -# Source file extension for C test sources.
  8152. -ac_ext=c
  8153. -# Object file extension for compiled C test sources.
  8154. -objext=o
  8155. -objext=$objext
  8156. -# Code to be used in simple compile tests
  8157. -lt_simple_compile_test_code="int some_variable = 0;\n"
  8158. -# Code to be used in simple link tests
  8159. -lt_simple_link_test_code='int main(){return(0);}\n'
  8160. -# If no C compiler was specified, use CC.
  8161. -LTCC=${LTCC-"$CC"}
  8162. -# Allow CC to be a program name with arguments.
  8163. -compiler=$CC
  8164. -#
  8165. -# Check for any special shared library compilation flags.
  8166. -#
  8167. -lt_prog_cc_shlib=
  8168. -if test "$GCC" = no; then
  8169. - case $host_os in
  8170. - sco3.2v5*)
  8171. - lt_prog_cc_shlib='-belf'
  8172. - ;;
  8173. - esac
  8174. +
  8175. +
  8176. +
  8177. +
  8178. +
  8179. +
  8180. +
  8181. +
  8182. +
  8183. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8184. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  8185. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  8186. + $as_echo_n "(cached) " >&6
  8187. +else
  8188. + lt_cv_apple_cc_single_mod=no
  8189. + if test -z "${LT_MULTI_MODULE}"; then
  8190. + # By default we will add the -single_module flag. You can override
  8191. + # by either setting the environment variable LT_MULTI_MODULE
  8192. + # non-empty at configure time, or by adding -multi_module to the
  8193. + # link flags.
  8194. + rm -rf libconftest.dylib*
  8195. + echo "int foo(void){return 1;}" > conftest.c
  8196. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8197. +-dynamiclib -Wl,-single_module conftest.c" >&5
  8198. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8199. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8200. + _lt_result=$?
  8201. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  8202. + lt_cv_apple_cc_single_mod=yes
  8203. + else
  8204. + cat conftest.err >&5
  8205. + fi
  8206. + rm -rf libconftest.dylib*
  8207. + rm -f conftest.*
  8208. + fi
  8209. fi
  8210. -if test -n "$lt_prog_cc_shlib"; then
  8211. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  8212. -$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  8213. - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  8214. - else
  8215. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  8216. -$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  8217. - lt_cv_prog_cc_can_build_shared=no
  8218. - fi
  8219. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8220. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8221. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8222. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8223. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  8224. + $as_echo_n "(cached) " >&6
  8225. +else
  8226. + lt_cv_ld_exported_symbols_list=no
  8227. + save_LDFLAGS=$LDFLAGS
  8228. + echo "_main" > conftest.sym
  8229. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8230. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8231. +/* end confdefs.h. */
  8232. +
  8233. +int
  8234. +main ()
  8235. +{
  8236. +
  8237. + ;
  8238. + return 0;
  8239. +}
  8240. +_ACEOF
  8241. +if ac_fn_c_try_link "$LINENO"; then :
  8242. + lt_cv_ld_exported_symbols_list=yes
  8243. +else
  8244. + lt_cv_ld_exported_symbols_list=no
  8245. +fi
  8246. +rm -f core conftest.err conftest.$ac_objext \
  8247. + conftest$ac_exeext conftest.$ac_ext
  8248. + LDFLAGS="$save_LDFLAGS"
  8249. +
  8250. fi
  8251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8252. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8253. + case $host_os in
  8254. + rhapsody* | darwin1.[012])
  8255. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  8256. + darwin1.*)
  8257. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8258. + darwin*) # darwin 5.x on
  8259. + # if running on 10.5 or later, the deployment target defaults
  8260. + # to the OS version, if on x86, and 10.4, the deployment
  8261. + # target defaults to 10.4. Don't you love it?
  8262. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8263. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8264. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8265. + 10.[012]*)
  8266. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  8267. + 10.*)
  8268. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  8269. + esac
  8270. + ;;
  8271. + esac
  8272. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  8273. + _lt_dar_single_mod='$single_module'
  8274. + fi
  8275. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  8276. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  8277. + else
  8278. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8279. + fi
  8280. + if test "$DSYMUTIL" != ":"; then
  8281. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  8282. + else
  8283. + _lt_dsymutil=
  8284. + fi
  8285. + ;;
  8286. + esac
  8287. -#
  8288. -# Check to make sure the static flag actually works.
  8289. -#
  8290. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  8291. -$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
  8292. -if test "${lt_prog_compiler_static_works+set}" = set; then :
  8293. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8294. +$as_echo_n "checking for ANSI C header files... " >&6; }
  8295. +if test "${ac_cv_header_stdc+set}" = set; then :
  8296. $as_echo_n "(cached) " >&6
  8297. else
  8298. - lt_prog_compiler_static_works=no
  8299. - save_LDFLAGS="$LDFLAGS"
  8300. - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  8301. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  8302. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8303. - # The compiler can only warn and ignore the option if not recognized
  8304. - # So say no if there are warnings
  8305. - if test -s conftest.err; then
  8306. - # Append any errors to the config.log.
  8307. - cat conftest.err 1>&5
  8308. - else
  8309. - lt_prog_compiler_static_works=yes
  8310. - fi
  8311. - fi
  8312. - $rm conftest*
  8313. - LDFLAGS="$save_LDFLAGS"
  8314. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8315. +/* end confdefs.h. */
  8316. +#include <stdlib.h>
  8317. +#include <stdarg.h>
  8318. +#include <string.h>
  8319. +#include <float.h>
  8320. -fi
  8321. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
  8322. -$as_echo "$lt_prog_compiler_static_works" >&6; }
  8323. +int
  8324. +main ()
  8325. +{
  8326. -if test x"$lt_prog_compiler_static_works" = xyes; then
  8327. - :
  8328. + ;
  8329. + return 0;
  8330. +}
  8331. +_ACEOF
  8332. +if ac_fn_c_try_compile "$LINENO"; then :
  8333. + ac_cv_header_stdc=yes
  8334. else
  8335. - lt_prog_compiler_static=
  8336. + ac_cv_header_stdc=no
  8337. fi
  8338. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8339. +if test $ac_cv_header_stdc = yes; then
  8340. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8341. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8342. +/* end confdefs.h. */
  8343. +#include <string.h>
  8344. +_ACEOF
  8345. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8346. + $EGREP "memchr" >/dev/null 2>&1; then :
  8347. -## CAVEAT EMPTOR:
  8348. -## There is no encapsulation within the following macros, do not change
  8349. -## the running order or otherwise move them around unless you know exactly
  8350. -## what you are doing...
  8351. +else
  8352. + ac_cv_header_stdc=no
  8353. +fi
  8354. +rm -f conftest*
  8355. -lt_prog_compiler_no_builtin_flag=
  8356. +fi
  8357. -if test "$GCC" = yes; then
  8358. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8359. +if test $ac_cv_header_stdc = yes; then
  8360. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8361. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8362. +/* end confdefs.h. */
  8363. +#include <stdlib.h>
  8364. +_ACEOF
  8365. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8366. + $EGREP "free" >/dev/null 2>&1; then :
  8367. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8368. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8369. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  8370. - $as_echo_n "(cached) " >&6
  8371. else
  8372. - lt_cv_prog_compiler_rtti_exceptions=no
  8373. - ac_outfile=conftest.$ac_objext
  8374. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8375. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  8376. - # Insert the option either (1) after the last *FLAGS variable, or
  8377. - # (2) before a word containing "conftest.", or (3) at the end.
  8378. - # Note that $ac_compile itself does not contain backslashes and begins
  8379. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  8380. - # The option is referenced via a variable to avoid confusing sed.
  8381. - lt_compile=`echo "$ac_compile" | $SED \
  8382. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  8383. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8384. - -e 's:$: $lt_compiler_flag:'`
  8385. - (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
  8386. - (eval "$lt_compile" 2>conftest.err)
  8387. - ac_status=$?
  8388. - cat conftest.err >&5
  8389. - echo "$as_me:8040: \$? = $ac_status" >&5
  8390. - if (exit $ac_status) && test -s "$ac_outfile"; then
  8391. - # The compiler can only warn and ignore the option if not recognized
  8392. - # So say no if there are warnings
  8393. - if test ! -s conftest.err; then
  8394. - lt_cv_prog_compiler_rtti_exceptions=yes
  8395. - fi
  8396. - fi
  8397. - $rm conftest*
  8398. + ac_cv_header_stdc=no
  8399. +fi
  8400. +rm -f conftest*
  8401. fi
  8402. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8403. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8404. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8405. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8406. +if test $ac_cv_header_stdc = yes; then
  8407. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8408. + if test "$cross_compiling" = yes; then :
  8409. + :
  8410. else
  8411. - :
  8412. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8413. +/* end confdefs.h. */
  8414. +#include <ctype.h>
  8415. +#include <stdlib.h>
  8416. +#if ((' ' & 0x0FF) == 0x020)
  8417. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8418. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8419. +#else
  8420. +# define ISLOWER(c) \
  8421. + (('a' <= (c) && (c) <= 'i') \
  8422. + || ('j' <= (c) && (c) <= 'r') \
  8423. + || ('s' <= (c) && (c) <= 'z'))
  8424. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8425. +#endif
  8426. +
  8427. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8428. +int
  8429. +main ()
  8430. +{
  8431. + int i;
  8432. + for (i = 0; i < 256; i++)
  8433. + if (XOR (islower (i), ISLOWER (i))
  8434. + || toupper (i) != TOUPPER (i))
  8435. + return 2;
  8436. + return 0;
  8437. +}
  8438. +_ACEOF
  8439. +if ac_fn_c_try_run "$LINENO"; then :
  8440. +
  8441. +else
  8442. + ac_cv_header_stdc=no
  8443. +fi
  8444. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8445. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  8446. fi
  8447. fi
  8448. +fi
  8449. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8450. +$as_echo "$ac_cv_header_stdc" >&6; }
  8451. +if test $ac_cv_header_stdc = yes; then
  8452. -lt_prog_compiler_wl=
  8453. -lt_prog_compiler_pic=
  8454. -lt_prog_compiler_static=
  8455. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  8456. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8457. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8458. +fi
  8459. - if test "$GCC" = yes; then
  8460. - lt_prog_compiler_wl='-Wl,'
  8461. - lt_prog_compiler_static='-static'
  8462. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  8463. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  8464. + inttypes.h stdint.h unistd.h
  8465. +do :
  8466. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8467. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8468. +"
  8469. +eval as_val=\$$as_ac_Header
  8470. + if test "x$as_val" = x""yes; then :
  8471. + cat >>confdefs.h <<_ACEOF
  8472. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8473. +_ACEOF
  8474. - case $host_os in
  8475. - aix*)
  8476. - # All AIX code is PIC.
  8477. - if test "$host_cpu" = ia64; then
  8478. - # AIX 5 now supports IA64 processor
  8479. - lt_prog_compiler_static='-Bstatic'
  8480. - fi
  8481. - ;;
  8482. +fi
  8483. - amigaos*)
  8484. - # FIXME: we need at least 68020 code to build shared libraries, but
  8485. - # adding the `-m68020' flag to GCC prevents building anything better,
  8486. - # like `-m68040'.
  8487. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8488. - ;;
  8489. +done
  8490. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8491. - # PIC is the default for these OSes.
  8492. - ;;
  8493. - mingw* | pw32* | os2*)
  8494. - # This hack is so that the source file can tell whether it is being
  8495. - # built for inclusion in a dll (and should export symbols for example).
  8496. - lt_prog_compiler_pic='-DDLL_EXPORT'
  8497. - ;;
  8498. +for ac_header in dlfcn.h
  8499. +do :
  8500. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8501. +"
  8502. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  8503. + cat >>confdefs.h <<_ACEOF
  8504. +#define HAVE_DLFCN_H 1
  8505. +_ACEOF
  8506. - darwin* | rhapsody*)
  8507. - # PIC is the default on this platform
  8508. - # Common symbols not allowed in MH_DYLIB files
  8509. - lt_prog_compiler_pic='-fno-common'
  8510. - ;;
  8511. +fi
  8512. - msdosdjgpp*)
  8513. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  8514. - # on systems that don't support them.
  8515. - lt_prog_compiler_can_build_shared=no
  8516. - enable_shared=no
  8517. - ;;
  8518. +done
  8519. - sysv4*MP*)
  8520. - if test -d /usr/nec; then
  8521. - lt_prog_compiler_pic=-Kconform_pic
  8522. - fi
  8523. - ;;
  8524. - hpux*)
  8525. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8526. - # not for PA HP-UX.
  8527. - case "$host_cpu" in
  8528. - hppa*64*|ia64*)
  8529. - # +Z the default
  8530. - ;;
  8531. - *)
  8532. - lt_prog_compiler_pic='-fPIC'
  8533. - ;;
  8534. - esac
  8535. - ;;
  8536. - *)
  8537. - lt_prog_compiler_pic='-fPIC'
  8538. - ;;
  8539. - esac
  8540. - else
  8541. - # PORTME Check for flag to pass linker flags through the system compiler.
  8542. - case $host_os in
  8543. - aix*)
  8544. - lt_prog_compiler_wl='-Wl,'
  8545. - if test "$host_cpu" = ia64; then
  8546. - # AIX 5 now supports IA64 processor
  8547. - lt_prog_compiler_static='-Bstatic'
  8548. - else
  8549. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8550. - fi
  8551. - ;;
  8552. +# Set options
  8553. - mingw* | pw32* | os2*)
  8554. - # This hack is so that the source file can tell whether it is being
  8555. - # built for inclusion in a dll (and should export symbols for example).
  8556. - lt_prog_compiler_pic='-DDLL_EXPORT'
  8557. - ;;
  8558. - hpux9* | hpux10* | hpux11*)
  8559. - lt_prog_compiler_wl='-Wl,'
  8560. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8561. - # not for PA HP-UX.
  8562. - case "$host_cpu" in
  8563. - hppa*64*|ia64*)
  8564. - # +Z the default
  8565. - ;;
  8566. - *)
  8567. - lt_prog_compiler_pic='+Z'
  8568. - ;;
  8569. - esac
  8570. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8571. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  8572. - ;;
  8573. - irix5* | irix6* | nonstopux*)
  8574. - lt_prog_compiler_wl='-Wl,'
  8575. - # PIC (with -KPIC) is the default.
  8576. - lt_prog_compiler_static='-non_shared'
  8577. - ;;
  8578. + enable_dlopen=no
  8579. - newsos6)
  8580. - lt_prog_compiler_pic='-KPIC'
  8581. - lt_prog_compiler_static='-Bstatic'
  8582. - ;;
  8583. - linux*)
  8584. - case $CC in
  8585. - icc* | ecc*)
  8586. - lt_prog_compiler_wl='-Wl,'
  8587. - lt_prog_compiler_pic='-KPIC'
  8588. - lt_prog_compiler_static='-static'
  8589. - ;;
  8590. - ccc*)
  8591. - lt_prog_compiler_wl='-Wl,'
  8592. - # All Alpha code is PIC.
  8593. - lt_prog_compiler_static='-non_shared'
  8594. - ;;
  8595. - esac
  8596. - ;;
  8597. - osf3* | osf4* | osf5*)
  8598. - lt_prog_compiler_wl='-Wl,'
  8599. - # All OSF/1 code is PIC.
  8600. - lt_prog_compiler_static='-non_shared'
  8601. + # Check whether --enable-shared was given.
  8602. +if test "${enable_shared+set}" = set; then :
  8603. + enableval=$enable_shared; p=${PACKAGE-default}
  8604. + case $enableval in
  8605. + yes) enable_shared=yes ;;
  8606. + no) enable_shared=no ;;
  8607. + *)
  8608. + enable_shared=no
  8609. + # Look at the argument we got. We use all the common list separators.
  8610. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8611. + for pkg in $enableval; do
  8612. + IFS="$lt_save_ifs"
  8613. + if test "X$pkg" = "X$p"; then
  8614. + enable_shared=yes
  8615. + fi
  8616. + done
  8617. + IFS="$lt_save_ifs"
  8618. ;;
  8619. + esac
  8620. +else
  8621. + enable_shared=yes
  8622. +fi
  8623. +
  8624. +
  8625. - sco3.2v5*)
  8626. - lt_prog_compiler_pic='-Kpic'
  8627. - lt_prog_compiler_static='-dn'
  8628. - ;;
  8629. - solaris*)
  8630. - lt_prog_compiler_wl='-Wl,'
  8631. - lt_prog_compiler_pic='-KPIC'
  8632. - lt_prog_compiler_static='-Bstatic'
  8633. - ;;
  8634. - sunos4*)
  8635. - lt_prog_compiler_wl='-Qoption ld '
  8636. - lt_prog_compiler_pic='-PIC'
  8637. - lt_prog_compiler_static='-Bstatic'
  8638. - ;;
  8639. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8640. - lt_prog_compiler_wl='-Wl,'
  8641. - lt_prog_compiler_pic='-KPIC'
  8642. - lt_prog_compiler_static='-Bstatic'
  8643. - ;;
  8644. - sysv4*MP*)
  8645. - if test -d /usr/nec ;then
  8646. - lt_prog_compiler_pic='-Kconform_pic'
  8647. - lt_prog_compiler_static='-Bstatic'
  8648. - fi
  8649. - ;;
  8650. - uts4*)
  8651. - lt_prog_compiler_pic='-pic'
  8652. - lt_prog_compiler_static='-Bstatic'
  8653. - ;;
  8654. + # Check whether --enable-static was given.
  8655. +if test "${enable_static+set}" = set; then :
  8656. + enableval=$enable_static; p=${PACKAGE-default}
  8657. + case $enableval in
  8658. + yes) enable_static=yes ;;
  8659. + no) enable_static=no ;;
  8660. *)
  8661. - lt_prog_compiler_can_build_shared=no
  8662. + enable_static=no
  8663. + # Look at the argument we got. We use all the common list separators.
  8664. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8665. + for pkg in $enableval; do
  8666. + IFS="$lt_save_ifs"
  8667. + if test "X$pkg" = "X$p"; then
  8668. + enable_static=yes
  8669. + fi
  8670. + done
  8671. + IFS="$lt_save_ifs"
  8672. ;;
  8673. esac
  8674. - fi
  8675. +else
  8676. + enable_static=yes
  8677. +fi
  8678. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8679. -$as_echo "$lt_prog_compiler_pic" >&6; }
  8680. -#
  8681. -# Check to make sure the PIC flag actually works.
  8682. -#
  8683. -if test -n "$lt_prog_compiler_pic"; then
  8684. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8685. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8686. -if test "${lt_prog_compiler_pic_works+set}" = set; then :
  8687. - $as_echo_n "(cached) " >&6
  8688. -else
  8689. - lt_prog_compiler_pic_works=no
  8690. - ac_outfile=conftest.$ac_objext
  8691. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8692. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8693. - # Insert the option either (1) after the last *FLAGS variable, or
  8694. - # (2) before a word containing "conftest.", or (3) at the end.
  8695. - # Note that $ac_compile itself does not contain backslashes and begins
  8696. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  8697. - # The option is referenced via a variable to avoid confusing sed.
  8698. - lt_compile=`echo "$ac_compile" | $SED \
  8699. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  8700. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8701. - -e 's:$: $lt_compiler_flag:'`
  8702. - (eval echo "\"\$as_me:8269: $lt_compile\"" >&5)
  8703. - (eval "$lt_compile" 2>conftest.err)
  8704. - ac_status=$?
  8705. - cat conftest.err >&5
  8706. - echo "$as_me:8273: \$? = $ac_status" >&5
  8707. - if (exit $ac_status) && test -s "$ac_outfile"; then
  8708. - # The compiler can only warn and ignore the option if not recognized
  8709. - # So say no if there are warnings
  8710. - if test ! -s conftest.err; then
  8711. - lt_prog_compiler_pic_works=yes
  8712. - fi
  8713. - fi
  8714. - $rm conftest*
  8715. -fi
  8716. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
  8717. -$as_echo "$lt_prog_compiler_pic_works" >&6; }
  8718. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  8719. - case $lt_prog_compiler_pic in
  8720. - "" | " "*) ;;
  8721. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8722. - esac
  8723. +
  8724. +
  8725. +
  8726. +
  8727. +
  8728. +# Check whether --with-pic was given.
  8729. +if test "${with_pic+set}" = set; then :
  8730. + withval=$with_pic; pic_mode="$withval"
  8731. else
  8732. - lt_prog_compiler_pic=
  8733. - lt_prog_compiler_can_build_shared=no
  8734. + pic_mode=default
  8735. fi
  8736. -fi
  8737. -case "$host_os" in
  8738. - # For platforms which do not support PIC, -DPIC is meaningless:
  8739. - *djgpp*)
  8740. - lt_prog_compiler_pic=
  8741. - ;;
  8742. - *)
  8743. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8744. - ;;
  8745. -esac
  8746. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8747. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8748. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8749. - $as_echo_n "(cached) " >&6
  8750. -else
  8751. - lt_cv_prog_compiler_c_o=no
  8752. - $rm -r conftest 2>/dev/null
  8753. - mkdir conftest
  8754. - cd conftest
  8755. - mkdir out
  8756. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8757. +test -z "$pic_mode" && pic_mode=default
  8758. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  8759. - # Insert the option either (1) after the last *FLAGS variable, or
  8760. - # (2) before a word containing "conftest.", or (3) at the end.
  8761. - # Note that $ac_compile itself does not contain backslashes and begins
  8762. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  8763. - lt_compile=`echo "$ac_compile" | $SED \
  8764. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  8765. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8766. - -e 's:$: $lt_compiler_flag:'`
  8767. - (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
  8768. - (eval "$lt_compile" 2>out/conftest.err)
  8769. - ac_status=$?
  8770. - cat out/conftest.err >&5
  8771. - echo "$as_me:8333: \$? = $ac_status" >&5
  8772. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8773. - then
  8774. - # The compiler can only warn and ignore the option if not recognized
  8775. - # So say no if there are warnings
  8776. - if test ! -s out/conftest.err; then
  8777. - lt_cv_prog_compiler_c_o=yes
  8778. - fi
  8779. - fi
  8780. - chmod u+w .
  8781. - $rm conftest*
  8782. - # SGI C++ compiler will create directory out/ii_files/ for
  8783. - # template instantiation
  8784. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  8785. - $rm out/* && rmdir out
  8786. - cd ..
  8787. - rmdir conftest
  8788. - $rm conftest*
  8789. -fi
  8790. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8791. -$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8792. -hard_links="nottested"
  8793. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8794. - # do not overwrite the value of need_locks provided by the user
  8795. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8796. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  8797. - hard_links=yes
  8798. - $rm conftest*
  8799. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8800. - touch conftest.a
  8801. - ln conftest.a conftest.b 2>&5 || hard_links=no
  8802. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8803. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8804. -$as_echo "$hard_links" >&6; }
  8805. - if test "$hard_links" = no; then
  8806. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8807. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8808. - need_locks=warn
  8809. - fi
  8810. -else
  8811. - need_locks=no
  8812. -fi
  8813. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8814. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8815. - runpath_var=
  8816. - allow_undefined_flag=
  8817. - enable_shared_with_static_runtimes=no
  8818. - archive_cmds=
  8819. - archive_expsym_cmds=
  8820. - old_archive_From_new_cmds=
  8821. - old_archive_from_expsyms_cmds=
  8822. - export_dynamic_flag_spec=
  8823. - whole_archive_flag_spec=
  8824. - thread_safe_flag_spec=
  8825. - hardcode_libdir_flag_spec=
  8826. - hardcode_libdir_flag_spec_ld=
  8827. - hardcode_libdir_separator=
  8828. - hardcode_direct=no
  8829. - hardcode_minus_L=no
  8830. - hardcode_shlibpath_var=unsupported
  8831. - link_all_deplibs=unknown
  8832. - hardcode_automatic=no
  8833. - module_cmds=
  8834. - module_expsym_cmds=
  8835. - always_export_symbols=no
  8836. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8837. - # include_expsyms should be a list of space-separated symbols to be *always*
  8838. - # included in the symbol list
  8839. - include_expsyms=
  8840. - # exclude_expsyms can be an extended regexp of symbols to exclude
  8841. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8842. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8843. - # as well as any symbol that contains `d'.
  8844. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  8845. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8846. - # platforms (ab)use it in PIC code, but their linkers get confused if
  8847. - # the symbol is explicitly referenced. Since portable code cannot
  8848. - # rely on this symbol name, it's probably fine to never include it in
  8849. - # preloaded symbol tables.
  8850. - extract_expsyms_cmds=
  8851. - case $host_os in
  8852. - cygwin* | mingw* | pw32*)
  8853. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8854. - # When not using gcc, we currently assume that we are using
  8855. - # Microsoft Visual C++.
  8856. - if test "$GCC" != yes; then
  8857. - with_gnu_ld=no
  8858. - fi
  8859. - ;;
  8860. - openbsd*)
  8861. - with_gnu_ld=no
  8862. - ;;
  8863. - esac
  8864. + # Check whether --enable-fast-install was given.
  8865. +if test "${enable_fast_install+set}" = set; then :
  8866. + enableval=$enable_fast_install; p=${PACKAGE-default}
  8867. + case $enableval in
  8868. + yes) enable_fast_install=yes ;;
  8869. + no) enable_fast_install=no ;;
  8870. + *)
  8871. + enable_fast_install=no
  8872. + # Look at the argument we got. We use all the common list separators.
  8873. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8874. + for pkg in $enableval; do
  8875. + IFS="$lt_save_ifs"
  8876. + if test "X$pkg" = "X$p"; then
  8877. + enable_fast_install=yes
  8878. + fi
  8879. + done
  8880. + IFS="$lt_save_ifs"
  8881. + ;;
  8882. + esac
  8883. +else
  8884. + enable_fast_install=yes
  8885. +fi
  8886. - ld_shlibs=yes
  8887. - if test "$with_gnu_ld" = yes; then
  8888. - # If archive_cmds runs LD, not CC, wlarc should be empty
  8889. - wlarc='${wl}'
  8890. - # See if GNU ld supports shared libraries.
  8891. - case $host_os in
  8892. - aix3* | aix4* | aix5*)
  8893. - # On AIX/PPC, the GNU linker is very broken
  8894. - if test "$host_cpu" != ia64; then
  8895. - ld_shlibs=no
  8896. - cat <<EOF 1>&2
  8897. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8898. -*** to be unable to reliably create shared libraries on AIX.
  8899. -*** Therefore, libtool is disabling shared libraries support. If you
  8900. -*** really care for shared libraries, you may want to modify your PATH
  8901. -*** so that a non-GNU linker is found, and then restart.
  8902. -EOF
  8903. - fi
  8904. - ;;
  8905. - amigaos*)
  8906. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8907. - hardcode_libdir_flag_spec='-L$libdir'
  8908. - hardcode_minus_L=yes
  8909. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8910. - # that the semantics of dynamic libraries on AmigaOS, at least up
  8911. - # to version 4, is to share data among multiple programs linked
  8912. - # with the same dynamic library. Since this doesn't match the
  8913. - # behavior of shared libraries on other platforms, we can't use
  8914. - # them.
  8915. - ld_shlibs=no
  8916. - ;;
  8917. - beos*)
  8918. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8919. - allow_undefined_flag=unsupported
  8920. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8921. - # support --undefined. This deserves some investigation. FIXME
  8922. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8923. - else
  8924. - ld_shlibs=no
  8925. - fi
  8926. - ;;
  8927. - cygwin* | mingw* | pw32*)
  8928. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8929. - # as there is no search path for DLLs.
  8930. - hardcode_libdir_flag_spec='-L$libdir'
  8931. - allow_undefined_flag=unsupported
  8932. - always_export_symbols=no
  8933. - enable_shared_with_static_runtimes=yes
  8934. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  8935. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8936. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8937. - # If the export-symbols file already is a .def file (1st line
  8938. - # is EXPORTS), use it as is; otherwise, prepend...
  8939. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8940. - cp $export_symbols $output_objdir/$soname.def;
  8941. - else
  8942. - echo EXPORTS > $output_objdir/$soname.def;
  8943. - cat $export_symbols >> $output_objdir/$soname.def;
  8944. - fi~
  8945. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8946. - else
  8947. - ld_shlibs=no
  8948. - fi
  8949. - ;;
  8950. - netbsd* | knetbsd*-gnu)
  8951. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8952. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8953. - wlarc=
  8954. - else
  8955. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8956. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8957. - fi
  8958. - ;;
  8959. - solaris* | sysv5*)
  8960. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  8961. - ld_shlibs=no
  8962. - cat <<EOF 1>&2
  8963. +# This can be used to rebuild libtool when needed
  8964. +LIBTOOL_DEPS="$ltmain"
  8965. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8966. -*** create shared libraries on Solaris systems. Therefore, libtool
  8967. -*** is disabling shared libraries support. We urge you to upgrade GNU
  8968. -*** binutils to release 2.9.1 or newer. Another option is to modify
  8969. -*** your PATH or compiler configuration so that the native linker is
  8970. -*** used, and then restart.
  8971. +# Always use our own libtool.
  8972. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8973. -EOF
  8974. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8975. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8976. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8977. - else
  8978. - ld_shlibs=no
  8979. - fi
  8980. - ;;
  8981. - sunos4*)
  8982. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8983. - wlarc=
  8984. - hardcode_direct=yes
  8985. - hardcode_shlibpath_var=no
  8986. - ;;
  8987. - linux*)
  8988. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8989. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8990. - archive_cmds="$tmp_archive_cmds"
  8991. - supports_anon_versioning=no
  8992. - case `$LD -v 2>/dev/null` in
  8993. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8994. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8995. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8996. - *\ 2.11.*) ;; # other 2.11 versions
  8997. - *) supports_anon_versioning=yes ;;
  8998. - esac
  8999. - if test $supports_anon_versioning = yes; then
  9000. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  9001. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9002. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  9003. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9004. - else
  9005. - archive_expsym_cmds="$tmp_archive_cmds"
  9006. - fi
  9007. - link_all_deplibs=no
  9008. - else
  9009. - ld_shlibs=no
  9010. - fi
  9011. - ;;
  9012. - *)
  9013. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9014. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9015. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9016. - else
  9017. - ld_shlibs=no
  9018. - fi
  9019. - ;;
  9020. - esac
  9021. - if test "$ld_shlibs" = yes; then
  9022. - runpath_var=LD_RUN_PATH
  9023. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  9024. - export_dynamic_flag_spec='${wl}--export-dynamic'
  9025. - # ancient GNU ld didn't support --whole-archive et. al.
  9026. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9027. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9028. - else
  9029. - whole_archive_flag_spec=
  9030. - fi
  9031. - fi
  9032. - else
  9033. - # PORTME fill in a description of your system's linker (not GNU ld)
  9034. - case $host_os in
  9035. - aix3*)
  9036. - allow_undefined_flag=unsupported
  9037. - always_export_symbols=yes
  9038. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9039. - # Note: this linker hardcodes the directories in LIBPATH if there
  9040. - # are no directories specified by -L.
  9041. - hardcode_minus_L=yes
  9042. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  9043. - # Neither direct hardcoding nor static linking is supported with a
  9044. - # broken collect2.
  9045. - hardcode_direct=unsupported
  9046. - fi
  9047. - ;;
  9048. - aix4* | aix5*)
  9049. - if test "$host_cpu" = ia64; then
  9050. - # On IA64, the linker does run time linking by default, so we don't
  9051. - # have to do anything special.
  9052. - aix_use_runtimelinking=no
  9053. - exp_sym_flag='-Bexport'
  9054. - no_entry_flag=""
  9055. - else
  9056. - # If we're using GNU nm, then we don't want the "-C" option.
  9057. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9058. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9059. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9060. - else
  9061. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9062. - fi
  9063. - aix_use_runtimelinking=no
  9064. - # Test if we are trying to use run time linking or normal
  9065. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9066. - # need to do runtime linking.
  9067. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9068. - for ld_flag in $LDFLAGS; do
  9069. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9070. - aix_use_runtimelinking=yes
  9071. - break
  9072. - fi
  9073. - done
  9074. - esac
  9075. - exp_sym_flag='-bexport'
  9076. - no_entry_flag='-bnoentry'
  9077. - fi
  9078. - # When large executables or shared objects are built, AIX ld can
  9079. - # have problems creating the table of contents. If linking a library
  9080. - # or program results in "error TOC overflow" add -mminimal-toc to
  9081. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9082. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9083. - archive_cmds=''
  9084. - hardcode_direct=yes
  9085. - hardcode_libdir_separator=':'
  9086. - link_all_deplibs=yes
  9087. - if test "$GCC" = yes; then
  9088. - case $host_os in aix4.012|aix4.012.*)
  9089. - # We only want to do this on AIX 4.2 and lower, the check
  9090. - # below for broken collect2 doesn't work under 4.3+
  9091. - collect2name=`${CC} -print-prog-name=collect2`
  9092. - if test -f "$collect2name" && \
  9093. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  9094. - then
  9095. - # We have reworked collect2
  9096. - hardcode_direct=yes
  9097. - else
  9098. - # We have old collect2
  9099. - hardcode_direct=unsupported
  9100. - # It fails to find uninstalled libraries when the uninstalled
  9101. - # path is not listed in the libpath. Setting hardcode_minus_L
  9102. - # to unsupported forces relinking
  9103. - hardcode_minus_L=yes
  9104. - hardcode_libdir_flag_spec='-L$libdir'
  9105. - hardcode_libdir_separator=
  9106. - fi
  9107. - esac
  9108. - shared_flag='-shared'
  9109. - else
  9110. - # not using gcc
  9111. - if test "$host_cpu" = ia64; then
  9112. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9113. - # chokes on -Wl,-G. The following line is correct:
  9114. - shared_flag='-G'
  9115. - else
  9116. - if test "$aix_use_runtimelinking" = yes; then
  9117. - shared_flag='${wl}-G'
  9118. - else
  9119. - shared_flag='${wl}-bM:SRE'
  9120. - fi
  9121. - fi
  9122. - fi
  9123. - # It seems that -bexpall does not export symbols beginning with
  9124. - # underscore (_), so it is better to generate a list of symbols to export.
  9125. - always_export_symbols=yes
  9126. - if test "$aix_use_runtimelinking" = yes; then
  9127. - # Warning - without using the other runtime loading flags (-brtl),
  9128. - # -berok will link without error, but may produce a broken library.
  9129. - allow_undefined_flag='-berok'
  9130. - # Determine the default libpath from the value encoded in an empty executable.
  9131. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9132. -/* end confdefs.h. */
  9133. -int
  9134. -main ()
  9135. -{
  9136. - ;
  9137. - return 0;
  9138. -}
  9139. -_ACEOF
  9140. -if ac_fn_c_try_link "$LINENO"; then :
  9141. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9142. -}'`
  9143. -# Check for a 64-bit object if we didn't find anything.
  9144. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9145. -}'`; fi
  9146. -fi
  9147. -rm -f core conftest.err conftest.$ac_objext \
  9148. - conftest$ac_exeext conftest.$ac_ext
  9149. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9150. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9151. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9152. - else
  9153. - if test "$host_cpu" = ia64; then
  9154. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9155. - allow_undefined_flag="-z nodefs"
  9156. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9157. - else
  9158. - # Determine the default libpath from the value encoded in an empty executable.
  9159. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9160. -/* end confdefs.h. */
  9161. -int
  9162. -main ()
  9163. -{
  9164. - ;
  9165. - return 0;
  9166. -}
  9167. -_ACEOF
  9168. -if ac_fn_c_try_link "$LINENO"; then :
  9169. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9170. -}'`
  9171. -# Check for a 64-bit object if we didn't find anything.
  9172. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9173. -}'`; fi
  9174. -fi
  9175. -rm -f core conftest.err conftest.$ac_objext \
  9176. - conftest$ac_exeext conftest.$ac_ext
  9177. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9178. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9179. - # Warning - without using the other run time loading flags,
  9180. - # -berok will link without error, but may produce a broken library.
  9181. - no_undefined_flag=' ${wl}-bernotok'
  9182. - allow_undefined_flag=' ${wl}-berok'
  9183. - # -bexpall does not export symbols beginning with underscore (_)
  9184. - always_export_symbols=yes
  9185. - # Exported symbols can be pulled into shared objects from archives
  9186. - whole_archive_flag_spec=' '
  9187. - archive_cmds_need_lc=yes
  9188. - # This is similar to how AIX traditionally builds it's shared libraries.
  9189. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9190. - fi
  9191. - fi
  9192. - ;;
  9193. - amigaos*)
  9194. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9195. - hardcode_libdir_flag_spec='-L$libdir'
  9196. - hardcode_minus_L=yes
  9197. - # see comment about different semantics on the GNU ld section
  9198. - ld_shlibs=no
  9199. - ;;
  9200. - bsdi4*)
  9201. - export_dynamic_flag_spec=-rdynamic
  9202. - ;;
  9203. - cygwin* | mingw* | pw32*)
  9204. - # When not using gcc, we currently assume that we are using
  9205. - # Microsoft Visual C++.
  9206. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  9207. - # no search path for DLLs.
  9208. - hardcode_libdir_flag_spec=' '
  9209. - allow_undefined_flag=unsupported
  9210. - # Tell ltmain to make .lib files, not .a files.
  9211. - libext=lib
  9212. - # Tell ltmain to make .dll files, not .so files.
  9213. - shrext_cmds=".dll"
  9214. - # FIXME: Setting linknames here is a bad hack.
  9215. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9216. - # The linker will automatically build a .lib file if we build a DLL.
  9217. - old_archive_From_new_cmds='true'
  9218. - # FIXME: Should let the user specify the lib program.
  9219. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9220. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  9221. - enable_shared_with_static_runtimes=yes
  9222. - ;;
  9223. - darwin* | rhapsody*)
  9224. - if test "$GXX" = yes ; then
  9225. - archive_cmds_need_lc=no
  9226. - case "$host_os" in
  9227. - rhapsody* | darwin1.[012])
  9228. - allow_undefined_flag='-undefined suppress'
  9229. - ;;
  9230. - *) # Darwin 1.3 on
  9231. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9232. - allow_undefined_flag='-flat_namespace -undefined suppress'
  9233. - else
  9234. - case ${MACOSX_DEPLOYMENT_TARGET} in
  9235. - 10.[012])
  9236. - allow_undefined_flag='-flat_namespace -undefined suppress'
  9237. - ;;
  9238. - 10.*)
  9239. - allow_undefined_flag='-undefined dynamic_lookup'
  9240. - ;;
  9241. - esac
  9242. - fi
  9243. - ;;
  9244. - esac
  9245. - lt_int_apple_cc_single_mod=no
  9246. - output_verbose_link_cmd='echo'
  9247. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  9248. - lt_int_apple_cc_single_mod=yes
  9249. - fi
  9250. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9251. - archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9252. - else
  9253. - archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9254. - fi
  9255. - module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9256. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  9257. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  9258. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9259. - else
  9260. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9261. - fi
  9262. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9263. - hardcode_direct=no
  9264. - hardcode_automatic=yes
  9265. - hardcode_shlibpath_var=unsupported
  9266. - whole_archive_flag_spec='-all_load $convenience'
  9267. - link_all_deplibs=yes
  9268. - else
  9269. - ld_shlibs=no
  9270. - fi
  9271. - ;;
  9272. - dgux*)
  9273. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9274. - hardcode_libdir_flag_spec='-L$libdir'
  9275. - hardcode_shlibpath_var=no
  9276. - ;;
  9277. +test -z "$LN_S" && LN_S="ln -s"
  9278. - freebsd1*)
  9279. - ld_shlibs=no
  9280. - ;;
  9281. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9282. - # support. Future versions do this automatically, but an explicit c++rt0.o
  9283. - # does not break anything, and helps significantly (at the cost of a little
  9284. - # extra space).
  9285. - freebsd2.2*)
  9286. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9287. - hardcode_libdir_flag_spec='-R$libdir'
  9288. - hardcode_direct=yes
  9289. - hardcode_shlibpath_var=no
  9290. - ;;
  9291. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9292. - freebsd2*)
  9293. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9294. - hardcode_direct=yes
  9295. - hardcode_minus_L=yes
  9296. - hardcode_shlibpath_var=no
  9297. - ;;
  9298. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9299. - freebsd* | kfreebsd*-gnu)
  9300. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9301. - hardcode_libdir_flag_spec='-R$libdir'
  9302. - hardcode_direct=yes
  9303. - hardcode_shlibpath_var=no
  9304. - ;;
  9305. - hpux9*)
  9306. - if test "$GCC" = yes; then
  9307. - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9308. - else
  9309. - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9310. - fi
  9311. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9312. - hardcode_libdir_separator=:
  9313. - hardcode_direct=yes
  9314. - # hardcode_minus_L: Not really in the search PATH,
  9315. - # but as the default location of the library.
  9316. - hardcode_minus_L=yes
  9317. - export_dynamic_flag_spec='${wl}-E'
  9318. - ;;
  9319. - hpux10* | hpux11*)
  9320. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9321. - case "$host_cpu" in
  9322. - hppa*64*|ia64*)
  9323. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9324. - ;;
  9325. - *)
  9326. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9327. - ;;
  9328. - esac
  9329. - else
  9330. - case "$host_cpu" in
  9331. - hppa*64*|ia64*)
  9332. - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  9333. - ;;
  9334. - *)
  9335. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9336. - ;;
  9337. - esac
  9338. - fi
  9339. - if test "$with_gnu_ld" = no; then
  9340. - case "$host_cpu" in
  9341. - hppa*64*)
  9342. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9343. - hardcode_libdir_flag_spec_ld='+b $libdir'
  9344. - hardcode_libdir_separator=:
  9345. - hardcode_direct=no
  9346. - hardcode_shlibpath_var=no
  9347. - ;;
  9348. - ia64*)
  9349. - hardcode_libdir_flag_spec='-L$libdir'
  9350. - hardcode_direct=no
  9351. - hardcode_shlibpath_var=no
  9352. - # hardcode_minus_L: Not really in the search PATH,
  9353. - # but as the default location of the library.
  9354. - hardcode_minus_L=yes
  9355. - ;;
  9356. - *)
  9357. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9358. - hardcode_libdir_separator=:
  9359. - hardcode_direct=yes
  9360. - export_dynamic_flag_spec='${wl}-E'
  9361. - # hardcode_minus_L: Not really in the search PATH,
  9362. - # but as the default location of the library.
  9363. - hardcode_minus_L=yes
  9364. - ;;
  9365. - esac
  9366. - fi
  9367. - ;;
  9368. - irix5* | irix6* | nonstopux*)
  9369. - if test "$GCC" = yes; then
  9370. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9371. - else
  9372. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9373. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9374. - fi
  9375. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9376. - hardcode_libdir_separator=:
  9377. - link_all_deplibs=yes
  9378. - ;;
  9379. - netbsd* | knetbsd*-gnu)
  9380. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9381. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9382. - else
  9383. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9384. - fi
  9385. - hardcode_libdir_flag_spec='-R$libdir'
  9386. - hardcode_direct=yes
  9387. - hardcode_shlibpath_var=no
  9388. - ;;
  9389. - newsos6)
  9390. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9391. - hardcode_direct=yes
  9392. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9393. - hardcode_libdir_separator=:
  9394. - hardcode_shlibpath_var=no
  9395. - ;;
  9396. - openbsd*)
  9397. - hardcode_direct=yes
  9398. - hardcode_shlibpath_var=no
  9399. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9400. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9401. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9402. - export_dynamic_flag_spec='${wl}-E'
  9403. - else
  9404. - case $host_os in
  9405. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9406. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9407. - hardcode_libdir_flag_spec='-R$libdir'
  9408. - ;;
  9409. - *)
  9410. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9411. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9412. - ;;
  9413. - esac
  9414. - fi
  9415. - ;;
  9416. - os2*)
  9417. - hardcode_libdir_flag_spec='-L$libdir'
  9418. - hardcode_minus_L=yes
  9419. - allow_undefined_flag=unsupported
  9420. - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9421. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9422. - ;;
  9423. +if test -n "${ZSH_VERSION+set}" ; then
  9424. + setopt NO_GLOB_SUBST
  9425. +fi
  9426. - osf3*)
  9427. - if test "$GCC" = yes; then
  9428. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9429. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9430. - else
  9431. - allow_undefined_flag=' -expect_unresolved \*'
  9432. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9433. - fi
  9434. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9435. - hardcode_libdir_separator=:
  9436. - ;;
  9437. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9438. +$as_echo_n "checking for objdir... " >&6; }
  9439. +if test "${lt_cv_objdir+set}" = set; then :
  9440. + $as_echo_n "(cached) " >&6
  9441. +else
  9442. + rm -f .libs 2>/dev/null
  9443. +mkdir .libs 2>/dev/null
  9444. +if test -d .libs; then
  9445. + lt_cv_objdir=.libs
  9446. +else
  9447. + # MS-DOS does not allow filenames that begin with a dot.
  9448. + lt_cv_objdir=_libs
  9449. +fi
  9450. +rmdir .libs 2>/dev/null
  9451. +fi
  9452. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9453. +$as_echo "$lt_cv_objdir" >&6; }
  9454. +objdir=$lt_cv_objdir
  9455. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  9456. - if test "$GCC" = yes; then
  9457. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9458. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9459. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9460. - else
  9461. - allow_undefined_flag=' -expect_unresolved \*'
  9462. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9463. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  9464. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  9465. - # Both c and cxx compiler support -rpath directly
  9466. - hardcode_libdir_flag_spec='-rpath $libdir'
  9467. - fi
  9468. - hardcode_libdir_separator=:
  9469. - ;;
  9470. - sco3.2v5*)
  9471. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9472. - hardcode_shlibpath_var=no
  9473. - export_dynamic_flag_spec='${wl}-Bexport'
  9474. - runpath_var=LD_RUN_PATH
  9475. - hardcode_runpath_var=yes
  9476. - ;;
  9477. - solaris*)
  9478. - no_undefined_flag=' -z text'
  9479. - if test "$GCC" = yes; then
  9480. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9481. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9482. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  9483. - else
  9484. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9485. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9486. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9487. - fi
  9488. - hardcode_libdir_flag_spec='-R$libdir'
  9489. - hardcode_shlibpath_var=no
  9490. - case $host_os in
  9491. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  9492. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  9493. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  9494. - esac
  9495. - link_all_deplibs=yes
  9496. - ;;
  9497. - sunos4*)
  9498. - if test "x$host_vendor" = xsequent; then
  9499. - # Use $CC to link under sequent, because it throws in some extra .o
  9500. - # files that make .init and .fini sections work.
  9501. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9502. - else
  9503. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9504. - fi
  9505. - hardcode_libdir_flag_spec='-L$libdir'
  9506. - hardcode_direct=yes
  9507. - hardcode_minus_L=yes
  9508. - hardcode_shlibpath_var=no
  9509. - ;;
  9510. +cat >>confdefs.h <<_ACEOF
  9511. +#define LT_OBJDIR "$lt_cv_objdir/"
  9512. +_ACEOF
  9513. +
  9514. - sysv4)
  9515. - case $host_vendor in
  9516. - sni)
  9517. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9518. - hardcode_direct=yes # is this really true???
  9519. - ;;
  9520. - siemens)
  9521. - ## LD is ld it makes a PLAMLIB
  9522. - ## CC just makes a GrossModule.
  9523. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9524. - reload_cmds='$CC -r -o $output$reload_objs'
  9525. - hardcode_direct=no
  9526. - ;;
  9527. - motorola)
  9528. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9529. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9530. - ;;
  9531. - esac
  9532. - runpath_var='LD_RUN_PATH'
  9533. - hardcode_shlibpath_var=no
  9534. - ;;
  9535. - sysv4.3*)
  9536. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9537. - hardcode_shlibpath_var=no
  9538. - export_dynamic_flag_spec='-Bexport'
  9539. - ;;
  9540. - sysv4*MP*)
  9541. - if test -d /usr/nec; then
  9542. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9543. - hardcode_shlibpath_var=no
  9544. - runpath_var=LD_RUN_PATH
  9545. - hardcode_runpath_var=yes
  9546. - ld_shlibs=yes
  9547. - fi
  9548. - ;;
  9549. - sysv4.2uw2*)
  9550. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9551. - hardcode_direct=yes
  9552. - hardcode_minus_L=no
  9553. - hardcode_shlibpath_var=no
  9554. - hardcode_runpath_var=yes
  9555. - runpath_var=LD_RUN_PATH
  9556. - ;;
  9557. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9558. - no_undefined_flag='${wl}-z ${wl}text'
  9559. - if test "$GCC" = yes; then
  9560. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9561. - else
  9562. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9563. - fi
  9564. - runpath_var='LD_RUN_PATH'
  9565. - hardcode_shlibpath_var=no
  9566. - ;;
  9567. - sysv5*)
  9568. - no_undefined_flag=' -z text'
  9569. - # $CC -shared without GNU ld will not create a library from C++
  9570. - # object files and a static libstdc++, better avoid it by now
  9571. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9572. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9573. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9574. - hardcode_libdir_flag_spec=
  9575. - hardcode_shlibpath_var=no
  9576. - runpath_var='LD_RUN_PATH'
  9577. - ;;
  9578. - uts4*)
  9579. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9580. - hardcode_libdir_flag_spec='-L$libdir'
  9581. - hardcode_shlibpath_var=no
  9582. - ;;
  9583. - *)
  9584. - ld_shlibs=no
  9585. - ;;
  9586. - esac
  9587. - fi
  9588. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9589. -$as_echo "$ld_shlibs" >&6; }
  9590. -test "$ld_shlibs" = no && can_build_shared=no
  9591. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9592. -if test "$GCC" = yes; then
  9593. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9594. -fi
  9595. -#
  9596. -# Do we need to explicitly link libc?
  9597. -#
  9598. -case "x$archive_cmds_need_lc" in
  9599. -x|xyes)
  9600. - # Assume -lc should be added
  9601. - archive_cmds_need_lc=yes
  9602. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  9603. - case $archive_cmds in
  9604. - *'~'*)
  9605. - # FIXME: we may have to deal with multi-command sequences.
  9606. - ;;
  9607. - '$CC '*)
  9608. - # Test whether the compiler implicitly links with -lc since on some
  9609. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9610. - # to ld, don't add -lc before -lgcc.
  9611. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9612. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9613. - $rm conftest*
  9614. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9615. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9616. - (eval $ac_compile) 2>&5
  9617. - ac_status=$?
  9618. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9619. - test $ac_status = 0; } 2>conftest.err; then
  9620. - soname=conftest
  9621. - lib=conftest
  9622. - libobjs=conftest.$ac_objext
  9623. - deplibs=
  9624. - wl=$lt_prog_compiler_wl
  9625. - compiler_flags=-v
  9626. - linker_flags=-v
  9627. - verstring=
  9628. - output_objdir=.
  9629. - libname=conftest
  9630. - lt_save_allow_undefined_flag=$allow_undefined_flag
  9631. - allow_undefined_flag=
  9632. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9633. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9634. - ac_status=$?
  9635. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9636. - test $ac_status = 0; }
  9637. - then
  9638. - archive_cmds_need_lc=no
  9639. - else
  9640. - archive_cmds_need_lc=yes
  9641. - fi
  9642. - allow_undefined_flag=$lt_save_allow_undefined_flag
  9643. - else
  9644. - cat conftest.err 1>&5
  9645. - fi
  9646. - $rm conftest*
  9647. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  9648. -$as_echo "$archive_cmds_need_lc" >&6; }
  9649. - ;;
  9650. - esac
  9651. - fi
  9652. - ;;
  9653. -esac
  9654. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9655. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  9656. -library_names_spec=
  9657. -libname_spec='lib$name'
  9658. -soname_spec=
  9659. -shrext_cmds=".so"
  9660. -postinstall_cmds=
  9661. -postuninstall_cmds=
  9662. -finish_cmds=
  9663. -finish_eval=
  9664. -shlibpath_var=
  9665. -shlibpath_overrides_runpath=unknown
  9666. -version_type=none
  9667. -dynamic_linker="$host_os ld.so"
  9668. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9669. -if test "$GCC" = yes; then
  9670. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9671. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9672. - # if the path contains ";" then we assume it to be the separator
  9673. - # otherwise default to the standard path separator (i.e. ":") - it is
  9674. - # assumed that no part of a normal pathname contains ";" but that should
  9675. - # okay in the real world where ";" in dirpaths is itself problematic.
  9676. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9677. - else
  9678. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9679. - fi
  9680. -else
  9681. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9682. -fi
  9683. -need_lib_prefix=unknown
  9684. -hardcode_into_libs=no
  9685. -# when you set need_version to no, make sure it does not cause -set_version
  9686. -# flags to be left without arguments
  9687. -need_version=unknown
  9688. case $host_os in
  9689. aix3*)
  9690. - version_type=linux
  9691. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9692. - shlibpath_var=LIBPATH
  9693. -
  9694. - # AIX 3 has no versioning support, so we append a major version to the name.
  9695. - soname_spec='${libname}${release}${shared_ext}$major'
  9696. - ;;
  9697. -
  9698. -aix4* | aix5*)
  9699. - version_type=linux
  9700. - need_lib_prefix=no
  9701. - need_version=no
  9702. - hardcode_into_libs=yes
  9703. - if test "$host_cpu" = ia64; then
  9704. - # AIX 5 supports IA64
  9705. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9706. - shlibpath_var=LD_LIBRARY_PATH
  9707. - else
  9708. - # With GCC up to 2.95.x, collect2 would create an import file
  9709. - # for dependence libraries. The import file would start with
  9710. - # the line `#! .'. This would cause the generated library to
  9711. - # depend on `.', always an invalid library. This was fixed in
  9712. - # development snapshots of GCC prior to 3.0.
  9713. - case $host_os in
  9714. - aix4 | aix4.[01] | aix4.[01].*)
  9715. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9716. - echo ' yes '
  9717. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9718. - :
  9719. - else
  9720. - can_build_shared=no
  9721. - fi
  9722. - ;;
  9723. - esac
  9724. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9725. - # soname into executable. Probably we can add versioning support to
  9726. - # collect2, so additional links can be useful in future.
  9727. - if test "$aix_use_runtimelinking" = yes; then
  9728. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9729. - # instead of lib<name>.a to let people know that these are not
  9730. - # typical AIX shared libraries.
  9731. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9732. - else
  9733. - # We preserve .a as extension for shared libraries through AIX4.2
  9734. - # and later when we are not doing run time linking.
  9735. - library_names_spec='${libname}${release}.a $libname.a'
  9736. - soname_spec='${libname}${release}${shared_ext}$major'
  9737. - fi
  9738. - shlibpath_var=LIBPATH
  9739. + # AIX sometimes has problems with the GCC collect2 program. For some
  9740. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  9741. + # vanish in a puff of smoke.
  9742. + if test "X${COLLECT_NAMES+set}" != Xset; then
  9743. + COLLECT_NAMES=
  9744. + export COLLECT_NAMES
  9745. fi
  9746. ;;
  9747. +esac
  9748. -amigaos*)
  9749. - library_names_spec='$libname.ixlibrary $libname.a'
  9750. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9751. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9752. - ;;
  9753. +# Sed substitution that helps us do robust quoting. It backslashifies
  9754. +# metacharacters that are still active within double-quoted strings.
  9755. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  9756. -beos*)
  9757. - library_names_spec='${libname}${shared_ext}'
  9758. - dynamic_linker="$host_os ld.so"
  9759. - shlibpath_var=LIBRARY_PATH
  9760. - ;;
  9761. +# Same as above, but do not quote variable references.
  9762. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  9763. -bsdi4*)
  9764. - version_type=linux
  9765. - need_version=no
  9766. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9767. - soname_spec='${libname}${release}${shared_ext}$major'
  9768. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9769. - shlibpath_var=LD_LIBRARY_PATH
  9770. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9771. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9772. - # the default ld.so.conf also contains /usr/contrib/lib and
  9773. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9774. - # libtool to hard-code these into programs
  9775. - ;;
  9776. +# Sed substitution to delay expansion of an escaped shell variable in a
  9777. +# double_quote_subst'ed string.
  9778. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  9779. -cygwin* | mingw* | pw32*)
  9780. - version_type=windows
  9781. - shrext_cmds=".dll"
  9782. - need_version=no
  9783. - need_lib_prefix=no
  9784. +# Sed substitution to delay expansion of an escaped single quote.
  9785. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  9786. - case $GCC,$host_os in
  9787. - yes,cygwin* | yes,mingw* | yes,pw32*)
  9788. - library_names_spec='$libname.dll.a'
  9789. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9790. - postinstall_cmds='base_file=`basename \${file}`~
  9791. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9792. - dldir=$destdir/`dirname \$dlpath`~
  9793. - test -d \$dldir || mkdir -p \$dldir~
  9794. - $install_prog $dir/$dlname \$dldir/$dlname'
  9795. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9796. - dlpath=$dir/\$dldll~
  9797. - $rm \$dlpath'
  9798. - shlibpath_overrides_runpath=yes
  9799. +# Sed substitution to avoid accidental globbing in evaled expressions
  9800. +no_glob_subst='s/\*/\\\*/g'
  9801. - case $host_os in
  9802. - cygwin*)
  9803. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9804. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9805. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9806. - ;;
  9807. - mingw*)
  9808. - # MinGW DLLs use traditional 'lib' prefix
  9809. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9810. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9811. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9812. - # It is most probably a Windows format PATH printed by
  9813. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9814. - # path with ; separators, and with drive letters. We can handle the
  9815. - # drive letters (cygwin fileutils understands them), so leave them,
  9816. - # especially as we might pass files found there to a mingw objdump,
  9817. - # which wouldn't understand a cygwinified path. Ahh.
  9818. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9819. - else
  9820. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9821. - fi
  9822. - ;;
  9823. - pw32*)
  9824. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  9825. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  9826. - ;;
  9827. - esac
  9828. - ;;
  9829. +# Global variables:
  9830. +ofile=libtool
  9831. +can_build_shared=yes
  9832. - *)
  9833. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9834. - ;;
  9835. - esac
  9836. - dynamic_linker='Win32 ld.exe'
  9837. - # FIXME: first we should search . and the directory the executable is in
  9838. - shlibpath_var=PATH
  9839. - ;;
  9840. -
  9841. -darwin* | rhapsody*)
  9842. - dynamic_linker="$host_os dyld"
  9843. - version_type=darwin
  9844. - need_lib_prefix=no
  9845. - need_version=no
  9846. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9847. - soname_spec='${libname}${release}${major}$shared_ext'
  9848. - shlibpath_overrides_runpath=yes
  9849. - shlibpath_var=DYLD_LIBRARY_PATH
  9850. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  9851. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9852. - if test "$GCC" = yes; then
  9853. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  9854. - else
  9855. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9856. - fi
  9857. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9858. - ;;
  9859. +# All known linkers require a `.a' archive for static linking (except MSVC,
  9860. +# which needs '.lib').
  9861. +libext=a
  9862. -dgux*)
  9863. - version_type=linux
  9864. - need_lib_prefix=no
  9865. - need_version=no
  9866. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9867. - soname_spec='${libname}${release}${shared_ext}$major'
  9868. - shlibpath_var=LD_LIBRARY_PATH
  9869. - ;;
  9870. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  9871. -freebsd1*)
  9872. - dynamic_linker=no
  9873. - ;;
  9874. +old_CC="$CC"
  9875. +old_CFLAGS="$CFLAGS"
  9876. -kfreebsd*-gnu)
  9877. - version_type=linux
  9878. - need_lib_prefix=no
  9879. - need_version=no
  9880. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9881. - soname_spec='${libname}${release}${shared_ext}$major'
  9882. - shlibpath_var=LD_LIBRARY_PATH
  9883. - shlibpath_overrides_runpath=no
  9884. - hardcode_into_libs=yes
  9885. - dynamic_linker='GNU ld.so'
  9886. - ;;
  9887. +# Set sane defaults for various variables
  9888. +test -z "$CC" && CC=cc
  9889. +test -z "$LTCC" && LTCC=$CC
  9890. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9891. +test -z "$LD" && LD=ld
  9892. +test -z "$ac_objext" && ac_objext=o
  9893. -freebsd*)
  9894. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  9895. - version_type=freebsd-$objformat
  9896. - case $version_type in
  9897. - freebsd-elf*)
  9898. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9899. - need_version=no
  9900. - need_lib_prefix=no
  9901. - ;;
  9902. - freebsd-*)
  9903. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9904. - need_version=yes
  9905. - ;;
  9906. - esac
  9907. - shlibpath_var=LD_LIBRARY_PATH
  9908. - case $host_os in
  9909. - freebsd2*)
  9910. - shlibpath_overrides_runpath=yes
  9911. - ;;
  9912. - freebsd3.01* | freebsdelf3.01*)
  9913. - shlibpath_overrides_runpath=yes
  9914. - hardcode_into_libs=yes
  9915. - ;;
  9916. - *) # from 3.2 on
  9917. - shlibpath_overrides_runpath=no
  9918. - hardcode_into_libs=yes
  9919. - ;;
  9920. +for cc_temp in $compiler""; do
  9921. + case $cc_temp in
  9922. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9923. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9924. + \-*) ;;
  9925. + *) break;;
  9926. esac
  9927. - ;;
  9928. +done
  9929. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9930. -gnu*)
  9931. - version_type=linux
  9932. - need_lib_prefix=no
  9933. - need_version=no
  9934. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9935. - soname_spec='${libname}${release}${shared_ext}$major'
  9936. - shlibpath_var=LD_LIBRARY_PATH
  9937. - hardcode_into_libs=yes
  9938. +
  9939. +# Only perform the check for file, if the check method requires it
  9940. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9941. +case $deplibs_check_method in
  9942. +file_magic*)
  9943. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9944. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9945. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9946. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  9947. + $as_echo_n "(cached) " >&6
  9948. +else
  9949. + case $MAGIC_CMD in
  9950. +[\\/*] | ?:[\\/]*)
  9951. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9952. ;;
  9953. +*)
  9954. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  9955. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9956. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9957. + for ac_dir in $ac_dummy; do
  9958. + IFS="$lt_save_ifs"
  9959. + test -z "$ac_dir" && ac_dir=.
  9960. + if test -f $ac_dir/${ac_tool_prefix}file; then
  9961. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9962. + if test -n "$file_magic_test_file"; then
  9963. + case $deplibs_check_method in
  9964. + "file_magic "*)
  9965. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9966. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9967. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9968. + $EGREP "$file_magic_regex" > /dev/null; then
  9969. + :
  9970. + else
  9971. + cat <<_LT_EOF 1>&2
  9972. -hpux9* | hpux10* | hpux11*)
  9973. - # Give a soname corresponding to the major version so that dld.sl refuses to
  9974. - # link against other versions.
  9975. - version_type=sunos
  9976. - need_lib_prefix=no
  9977. - need_version=no
  9978. - case "$host_cpu" in
  9979. - ia64*)
  9980. - shrext_cmds='.so'
  9981. - hardcode_into_libs=yes
  9982. - dynamic_linker="$host_os dld.so"
  9983. - shlibpath_var=LD_LIBRARY_PATH
  9984. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9985. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9986. - soname_spec='${libname}${release}${shared_ext}$major'
  9987. - if test "X$HPUX_IA64_MODE" = X32; then
  9988. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9989. - else
  9990. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9991. +*** Warning: the command libtool uses to detect shared libraries,
  9992. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  9993. +*** The result is that libtool may fail to recognize shared libraries
  9994. +*** as such. This will affect the creation of libtool libraries that
  9995. +*** depend on shared libraries, but programs linked with such libtool
  9996. +*** libraries will work regardless of this problem. Nevertheless, you
  9997. +*** may want to report the problem to your system manager and/or to
  9998. +*** bug-libtool@gnu.org
  9999. +
  10000. +_LT_EOF
  10001. + fi ;;
  10002. + esac
  10003. + fi
  10004. + break
  10005. fi
  10006. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10007. - ;;
  10008. - hppa*64*)
  10009. - shrext_cmds='.sl'
  10010. - hardcode_into_libs=yes
  10011. - dynamic_linker="$host_os dld.sl"
  10012. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10013. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10014. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10015. - soname_spec='${libname}${release}${shared_ext}$major'
  10016. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10017. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10018. - ;;
  10019. - *)
  10020. - shrext_cmds='.sl'
  10021. - dynamic_linker="$host_os dld.sl"
  10022. - shlibpath_var=SHLIB_PATH
  10023. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10024. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10025. - soname_spec='${libname}${release}${shared_ext}$major'
  10026. - ;;
  10027. - esac
  10028. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10029. - postinstall_cmds='chmod 555 $lib'
  10030. + done
  10031. + IFS="$lt_save_ifs"
  10032. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  10033. ;;
  10034. +esac
  10035. +fi
  10036. -irix5* | irix6* | nonstopux*)
  10037. - case $host_os in
  10038. - nonstopux*) version_type=nonstopux ;;
  10039. - *)
  10040. - if test "$lt_cv_prog_gnu_ld" = yes; then
  10041. - version_type=linux
  10042. - else
  10043. - version_type=irix
  10044. - fi ;;
  10045. - esac
  10046. - need_lib_prefix=no
  10047. - need_version=no
  10048. - soname_spec='${libname}${release}${shared_ext}$major'
  10049. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10050. - case $host_os in
  10051. - irix5* | nonstopux*)
  10052. - libsuff= shlibsuff=
  10053. - ;;
  10054. - *)
  10055. - case $LD in # libtool.m4 will add one of these switches to LD
  10056. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10057. - libsuff= shlibsuff= libmagic=32-bit;;
  10058. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10059. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  10060. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10061. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10062. - *) libsuff= shlibsuff= libmagic=never-match;;
  10063. - esac
  10064. - ;;
  10065. - esac
  10066. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10067. - shlibpath_overrides_runpath=no
  10068. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10069. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10070. - hardcode_into_libs=yes
  10071. - ;;
  10072. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10073. +if test -n "$MAGIC_CMD"; then
  10074. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10075. +$as_echo "$MAGIC_CMD" >&6; }
  10076. +else
  10077. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10078. +$as_echo "no" >&6; }
  10079. +fi
  10080. -# No shared lib support for Linux oldld, aout, or coff.
  10081. -linux*oldld* | linux*aout* | linux*coff*)
  10082. - dynamic_linker=no
  10083. - ;;
  10084. -# This must be Linux ELF.
  10085. -linux*)
  10086. - version_type=linux
  10087. - need_lib_prefix=no
  10088. - need_version=no
  10089. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10090. - soname_spec='${libname}${release}${shared_ext}$major'
  10091. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10092. - shlibpath_var=LD_LIBRARY_PATH
  10093. - shlibpath_overrides_runpath=no
  10094. - # This implies no fast_install, which is unacceptable.
  10095. - # Some rework will be needed to allow for fast_install
  10096. - # before this can be enabled.
  10097. - hardcode_into_libs=yes
  10098. - # Append ld.so.conf contents to the search path
  10099. - if test -f /etc/ld.so.conf; then
  10100. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  10101. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10102. - fi
  10103. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  10104. - # powerpc, because MkLinux only supported shared libraries with the
  10105. - # GNU dynamic linker. Since this was broken with cross compilers,
  10106. - # most powerpc-linux boxes support dynamic linking these days and
  10107. - # people can always --disable-shared, the test was removed, and we
  10108. - # assume the GNU/Linux dynamic linker is in use.
  10109. - dynamic_linker='GNU/Linux ld.so'
  10110. - ;;
  10111. -knetbsd*-gnu)
  10112. - version_type=linux
  10113. - need_lib_prefix=no
  10114. - need_version=no
  10115. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10116. - soname_spec='${libname}${release}${shared_ext}$major'
  10117. - shlibpath_var=LD_LIBRARY_PATH
  10118. - shlibpath_overrides_runpath=no
  10119. - hardcode_into_libs=yes
  10120. - dynamic_linker='GNU ld.so'
  10121. - ;;
  10122. -
  10123. -netbsd*)
  10124. - version_type=sunos
  10125. - need_lib_prefix=no
  10126. - need_version=no
  10127. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10128. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10129. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10130. - dynamic_linker='NetBSD (a.out) ld.so'
  10131. - else
  10132. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10133. - soname_spec='${libname}${release}${shared_ext}$major'
  10134. - dynamic_linker='NetBSD ld.elf_so'
  10135. - fi
  10136. - shlibpath_var=LD_LIBRARY_PATH
  10137. - shlibpath_overrides_runpath=yes
  10138. - hardcode_into_libs=yes
  10139. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  10140. + if test -n "$ac_tool_prefix"; then
  10141. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10142. +$as_echo_n "checking for file... " >&6; }
  10143. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  10144. + $as_echo_n "(cached) " >&6
  10145. +else
  10146. + case $MAGIC_CMD in
  10147. +[\\/*] | ?:[\\/]*)
  10148. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  10149. ;;
  10150. +*)
  10151. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  10152. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10153. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10154. + for ac_dir in $ac_dummy; do
  10155. + IFS="$lt_save_ifs"
  10156. + test -z "$ac_dir" && ac_dir=.
  10157. + if test -f $ac_dir/file; then
  10158. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  10159. + if test -n "$file_magic_test_file"; then
  10160. + case $deplibs_check_method in
  10161. + "file_magic "*)
  10162. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10163. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10164. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10165. + $EGREP "$file_magic_regex" > /dev/null; then
  10166. + :
  10167. + else
  10168. + cat <<_LT_EOF 1>&2
  10169. -newsos6)
  10170. - version_type=linux
  10171. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10172. - shlibpath_var=LD_LIBRARY_PATH
  10173. - shlibpath_overrides_runpath=yes
  10174. - ;;
  10175. +*** Warning: the command libtool uses to detect shared libraries,
  10176. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  10177. +*** The result is that libtool may fail to recognize shared libraries
  10178. +*** as such. This will affect the creation of libtool libraries that
  10179. +*** depend on shared libraries, but programs linked with such libtool
  10180. +*** libraries will work regardless of this problem. Nevertheless, you
  10181. +*** may want to report the problem to your system manager and/or to
  10182. +*** bug-libtool@gnu.org
  10183. -nto-qnx*)
  10184. - version_type=linux
  10185. - need_lib_prefix=no
  10186. - need_version=no
  10187. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10188. - soname_spec='${libname}${release}${shared_ext}$major'
  10189. - shlibpath_var=LD_LIBRARY_PATH
  10190. - shlibpath_overrides_runpath=yes
  10191. +_LT_EOF
  10192. + fi ;;
  10193. + esac
  10194. + fi
  10195. + break
  10196. + fi
  10197. + done
  10198. + IFS="$lt_save_ifs"
  10199. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  10200. ;;
  10201. +esac
  10202. +fi
  10203. +
  10204. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10205. +if test -n "$MAGIC_CMD"; then
  10206. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10207. +$as_echo "$MAGIC_CMD" >&6; }
  10208. +else
  10209. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10210. +$as_echo "no" >&6; }
  10211. +fi
  10212. +
  10213. -openbsd*)
  10214. - version_type=sunos
  10215. - need_lib_prefix=no
  10216. - need_version=yes
  10217. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10218. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10219. - shlibpath_var=LD_LIBRARY_PATH
  10220. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10221. - case $host_os in
  10222. - openbsd2.[89] | openbsd2.[89].*)
  10223. - shlibpath_overrides_runpath=no
  10224. - ;;
  10225. - *)
  10226. - shlibpath_overrides_runpath=yes
  10227. - ;;
  10228. - esac
  10229. else
  10230. - shlibpath_overrides_runpath=yes
  10231. + MAGIC_CMD=:
  10232. fi
  10233. - ;;
  10234. +fi
  10235. -os2*)
  10236. - libname_spec='$name'
  10237. - shrext_cmds=".dll"
  10238. - need_lib_prefix=no
  10239. - library_names_spec='$libname${shared_ext} $libname.a'
  10240. - dynamic_linker='OS/2 ld.exe'
  10241. - shlibpath_var=LIBPATH
  10242. + fi
  10243. ;;
  10244. +esac
  10245. -osf3* | osf4* | osf5*)
  10246. - version_type=osf
  10247. - need_lib_prefix=no
  10248. - need_version=no
  10249. - soname_spec='${libname}${release}${shared_ext}$major'
  10250. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10251. - shlibpath_var=LD_LIBRARY_PATH
  10252. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10253. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10254. - ;;
  10255. +# Use C for the default configuration in the libtool script
  10256. -sco3.2v5*)
  10257. - version_type=osf
  10258. - soname_spec='${libname}${release}${shared_ext}$major'
  10259. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10260. - shlibpath_var=LD_LIBRARY_PATH
  10261. - ;;
  10262. +lt_save_CC="$CC"
  10263. +ac_ext=c
  10264. +ac_cpp='$CPP $CPPFLAGS'
  10265. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10266. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10267. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10268. -solaris*)
  10269. - version_type=linux
  10270. - need_lib_prefix=no
  10271. - need_version=no
  10272. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10273. - soname_spec='${libname}${release}${shared_ext}$major'
  10274. - shlibpath_var=LD_LIBRARY_PATH
  10275. - shlibpath_overrides_runpath=yes
  10276. - hardcode_into_libs=yes
  10277. - # ldd complains unless libraries are executable
  10278. - postinstall_cmds='chmod +x $lib'
  10279. - ;;
  10280. -sunos4*)
  10281. - version_type=sunos
  10282. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10283. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10284. - shlibpath_var=LD_LIBRARY_PATH
  10285. - shlibpath_overrides_runpath=yes
  10286. - if test "$with_gnu_ld" = yes; then
  10287. - need_lib_prefix=no
  10288. - fi
  10289. - need_version=yes
  10290. - ;;
  10291. +# Source file extension for C test sources.
  10292. +ac_ext=c
  10293. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10294. - version_type=linux
  10295. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10296. - soname_spec='${libname}${release}${shared_ext}$major'
  10297. - shlibpath_var=LD_LIBRARY_PATH
  10298. - case $host_vendor in
  10299. - sni)
  10300. - shlibpath_overrides_runpath=no
  10301. - need_lib_prefix=no
  10302. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  10303. - runpath_var=LD_RUN_PATH
  10304. - ;;
  10305. - siemens)
  10306. - need_lib_prefix=no
  10307. - ;;
  10308. - motorola)
  10309. - need_lib_prefix=no
  10310. - need_version=no
  10311. - shlibpath_overrides_runpath=no
  10312. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10313. - ;;
  10314. - esac
  10315. - ;;
  10316. +# Object file extension for compiled C test sources.
  10317. +objext=o
  10318. +objext=$objext
  10319. -sysv4*MP*)
  10320. - if test -d /usr/nec ;then
  10321. - version_type=linux
  10322. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10323. - soname_spec='$libname${shared_ext}.$major'
  10324. - shlibpath_var=LD_LIBRARY_PATH
  10325. - fi
  10326. - ;;
  10327. +# Code to be used in simple compile tests
  10328. +lt_simple_compile_test_code="int some_variable = 0;"
  10329. -uts4*)
  10330. - version_type=linux
  10331. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10332. - soname_spec='${libname}${release}${shared_ext}$major'
  10333. - shlibpath_var=LD_LIBRARY_PATH
  10334. - ;;
  10335. +# Code to be used in simple link tests
  10336. +lt_simple_link_test_code='int main(){return(0);}'
  10337. -*)
  10338. - dynamic_linker=no
  10339. - ;;
  10340. -esac
  10341. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10342. -$as_echo "$dynamic_linker" >&6; }
  10343. -test "$dynamic_linker" = no && can_build_shared=no
  10344. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10345. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10346. -hardcode_action=
  10347. -if test -n "$hardcode_libdir_flag_spec" || \
  10348. - test -n "$runpath_var " || \
  10349. - test "X$hardcode_automatic"="Xyes" ; then
  10350. - # We can hardcode non-existant directories.
  10351. - if test "$hardcode_direct" != no &&
  10352. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10353. - # have to relink, otherwise we might link with an installed library
  10354. - # when we should be linking with a yet-to-be-installed one
  10355. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10356. - test "$hardcode_minus_L" != no; then
  10357. - # Linking always hardcodes the temporary library directory.
  10358. - hardcode_action=relink
  10359. - else
  10360. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10361. - hardcode_action=immediate
  10362. - fi
  10363. -else
  10364. - # We cannot hardcode anything, or else we can only hardcode existing
  10365. - # directories.
  10366. - hardcode_action=unsupported
  10367. -fi
  10368. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10369. -$as_echo "$hardcode_action" >&6; }
  10370. -if test "$hardcode_action" = relink; then
  10371. - # Fast installation is not supported
  10372. - enable_fast_install=no
  10373. -elif test "$shlibpath_overrides_runpath" = yes ||
  10374. - test "$enable_shared" = no; then
  10375. - # Fast installation is not necessary
  10376. - enable_fast_install=needless
  10377. -fi
  10378. -striplib=
  10379. -old_striplib=
  10380. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10381. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10382. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10383. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10384. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10385. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10386. -$as_echo "yes" >&6; }
  10387. -else
  10388. -# FIXME - insert some real tests, host_os isn't really good enough
  10389. - case $host_os in
  10390. - darwin*)
  10391. - if test -n "$STRIP" ; then
  10392. - striplib="$STRIP -x"
  10393. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10394. -$as_echo "yes" >&6; }
  10395. - else
  10396. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10397. -$as_echo "no" >&6; }
  10398. -fi
  10399. - ;;
  10400. - *)
  10401. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10402. -$as_echo "no" >&6; }
  10403. - ;;
  10404. - esac
  10405. -fi
  10406. -if test "x$enable_dlopen" != xyes; then
  10407. - enable_dlopen=unknown
  10408. - enable_dlopen_self=unknown
  10409. - enable_dlopen_self_static=unknown
  10410. -else
  10411. - lt_cv_dlopen=no
  10412. - lt_cv_dlopen_libs=
  10413. - case $host_os in
  10414. - beos*)
  10415. - lt_cv_dlopen="load_add_on"
  10416. - lt_cv_dlopen_libs=
  10417. - lt_cv_dlopen_self=yes
  10418. - ;;
  10419. +# If no C compiler was specified, use CC.
  10420. +LTCC=${LTCC-"$CC"}
  10421. - mingw* | pw32*)
  10422. - lt_cv_dlopen="LoadLibrary"
  10423. - lt_cv_dlopen_libs=
  10424. - ;;
  10425. -
  10426. - cygwin*)
  10427. - lt_cv_dlopen="dlopen"
  10428. - lt_cv_dlopen_libs=
  10429. - ;;
  10430. +# If no C compiler flags were specified, use CFLAGS.
  10431. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10432. - darwin*)
  10433. - # if libdl is installed we need to link against it
  10434. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10435. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  10436. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10437. - $as_echo_n "(cached) " >&6
  10438. -else
  10439. - ac_check_lib_save_LIBS=$LIBS
  10440. -LIBS="-ldl $LIBS"
  10441. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10442. -/* end confdefs.h. */
  10443. +# Allow CC to be a program name with arguments.
  10444. +compiler=$CC
  10445. -/* Override any GCC internal prototype to avoid an error.
  10446. - Use char because int might match the return type of a GCC
  10447. - builtin and then its argument prototype would still apply. */
  10448. -#ifdef __cplusplus
  10449. -extern "C"
  10450. -#endif
  10451. -char dlopen ();
  10452. -int
  10453. -main ()
  10454. -{
  10455. -return dlopen ();
  10456. - ;
  10457. - return 0;
  10458. -}
  10459. -_ACEOF
  10460. -if ac_fn_c_try_link "$LINENO"; then :
  10461. - ac_cv_lib_dl_dlopen=yes
  10462. -else
  10463. - ac_cv_lib_dl_dlopen=no
  10464. -fi
  10465. -rm -f core conftest.err conftest.$ac_objext \
  10466. - conftest$ac_exeext conftest.$ac_ext
  10467. -LIBS=$ac_check_lib_save_LIBS
  10468. -fi
  10469. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10470. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10471. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10472. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10473. -else
  10474. +# Save the default compiler, since it gets overwritten when the other
  10475. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10476. +compiler_DEFAULT=$CC
  10477. +
  10478. +# save warnings/boilerplate of simple test code
  10479. +ac_outfile=conftest.$ac_objext
  10480. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10481. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10482. +_lt_compiler_boilerplate=`cat conftest.err`
  10483. +$RM conftest*
  10484. +
  10485. +ac_outfile=conftest.$ac_objext
  10486. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10487. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10488. +_lt_linker_boilerplate=`cat conftest.err`
  10489. +$RM -r conftest*
  10490. - lt_cv_dlopen="dyld"
  10491. - lt_cv_dlopen_libs=
  10492. - lt_cv_dlopen_self=yes
  10493. -fi
  10494. +## CAVEAT EMPTOR:
  10495. +## There is no encapsulation within the following macros, do not change
  10496. +## the running order or otherwise move them around unless you know exactly
  10497. +## what you are doing...
  10498. +if test -n "$compiler"; then
  10499. - ;;
  10500. +lt_prog_compiler_no_builtin_flag=
  10501. - *)
  10502. - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10503. -if test "x$ac_cv_func_shl_load" = x""yes; then :
  10504. - lt_cv_dlopen="shl_load"
  10505. -else
  10506. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10507. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  10508. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10509. - $as_echo_n "(cached) " >&6
  10510. -else
  10511. - ac_check_lib_save_LIBS=$LIBS
  10512. -LIBS="-ldld $LIBS"
  10513. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10514. -/* end confdefs.h. */
  10515. +if test "$GCC" = yes; then
  10516. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  10517. -/* Override any GCC internal prototype to avoid an error.
  10518. - Use char because int might match the return type of a GCC
  10519. - builtin and then its argument prototype would still apply. */
  10520. -#ifdef __cplusplus
  10521. -extern "C"
  10522. -#endif
  10523. -char shl_load ();
  10524. -int
  10525. -main ()
  10526. -{
  10527. -return shl_load ();
  10528. - ;
  10529. - return 0;
  10530. -}
  10531. -_ACEOF
  10532. -if ac_fn_c_try_link "$LINENO"; then :
  10533. - ac_cv_lib_dld_shl_load=yes
  10534. -else
  10535. - ac_cv_lib_dld_shl_load=no
  10536. -fi
  10537. -rm -f core conftest.err conftest.$ac_objext \
  10538. - conftest$ac_exeext conftest.$ac_ext
  10539. -LIBS=$ac_check_lib_save_LIBS
  10540. -fi
  10541. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10542. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10543. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10544. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10545. -else
  10546. - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10547. -if test "x$ac_cv_func_dlopen" = x""yes; then :
  10548. - lt_cv_dlopen="dlopen"
  10549. -else
  10550. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10551. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  10552. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10553. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10554. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10555. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  10556. $as_echo_n "(cached) " >&6
  10557. else
  10558. - ac_check_lib_save_LIBS=$LIBS
  10559. -LIBS="-ldl $LIBS"
  10560. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10561. -/* end confdefs.h. */
  10562. + lt_cv_prog_compiler_rtti_exceptions=no
  10563. + ac_outfile=conftest.$ac_objext
  10564. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10565. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  10566. + # Insert the option either (1) after the last *FLAGS variable, or
  10567. + # (2) before a word containing "conftest.", or (3) at the end.
  10568. + # Note that $ac_compile itself does not contain backslashes and begins
  10569. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  10570. + # The option is referenced via a variable to avoid confusing sed.
  10571. + lt_compile=`echo "$ac_compile" | $SED \
  10572. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10573. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10574. + -e 's:$: $lt_compiler_flag:'`
  10575. + (eval echo "\"\$as_me:8398: $lt_compile\"" >&5)
  10576. + (eval "$lt_compile" 2>conftest.err)
  10577. + ac_status=$?
  10578. + cat conftest.err >&5
  10579. + echo "$as_me:8402: \$? = $ac_status" >&5
  10580. + if (exit $ac_status) && test -s "$ac_outfile"; then
  10581. + # The compiler can only warn and ignore the option if not recognized
  10582. + # So say no if there are warnings other than the usual output.
  10583. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10584. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10585. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10586. + lt_cv_prog_compiler_rtti_exceptions=yes
  10587. + fi
  10588. + fi
  10589. + $RM conftest*
  10590. -/* Override any GCC internal prototype to avoid an error.
  10591. - Use char because int might match the return type of a GCC
  10592. - builtin and then its argument prototype would still apply. */
  10593. -#ifdef __cplusplus
  10594. -extern "C"
  10595. -#endif
  10596. -char dlopen ();
  10597. -int
  10598. -main ()
  10599. -{
  10600. -return dlopen ();
  10601. - ;
  10602. - return 0;
  10603. -}
  10604. -_ACEOF
  10605. -if ac_fn_c_try_link "$LINENO"; then :
  10606. - ac_cv_lib_dl_dlopen=yes
  10607. -else
  10608. - ac_cv_lib_dl_dlopen=no
  10609. -fi
  10610. -rm -f core conftest.err conftest.$ac_objext \
  10611. - conftest$ac_exeext conftest.$ac_ext
  10612. -LIBS=$ac_check_lib_save_LIBS
  10613. fi
  10614. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10615. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10616. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10617. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10618. -else
  10619. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10620. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10621. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10622. - $as_echo_n "(cached) " >&6
  10623. -else
  10624. - ac_check_lib_save_LIBS=$LIBS
  10625. -LIBS="-lsvld $LIBS"
  10626. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10627. -/* end confdefs.h. */
  10628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10629. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10630. -/* Override any GCC internal prototype to avoid an error.
  10631. - Use char because int might match the return type of a GCC
  10632. - builtin and then its argument prototype would still apply. */
  10633. -#ifdef __cplusplus
  10634. -extern "C"
  10635. -#endif
  10636. -char dlopen ();
  10637. -int
  10638. -main ()
  10639. -{
  10640. -return dlopen ();
  10641. - ;
  10642. - return 0;
  10643. -}
  10644. -_ACEOF
  10645. -if ac_fn_c_try_link "$LINENO"; then :
  10646. - ac_cv_lib_svld_dlopen=yes
  10647. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10648. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10649. else
  10650. - ac_cv_lib_svld_dlopen=no
  10651. -fi
  10652. -rm -f core conftest.err conftest.$ac_objext \
  10653. - conftest$ac_exeext conftest.$ac_ext
  10654. -LIBS=$ac_check_lib_save_LIBS
  10655. + :
  10656. fi
  10657. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10658. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10659. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10660. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10661. -else
  10662. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10663. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  10664. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10665. - $as_echo_n "(cached) " >&6
  10666. -else
  10667. - ac_check_lib_save_LIBS=$LIBS
  10668. -LIBS="-ldld $LIBS"
  10669. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10670. -/* end confdefs.h. */
  10671. -/* Override any GCC internal prototype to avoid an error.
  10672. - Use char because int might match the return type of a GCC
  10673. - builtin and then its argument prototype would still apply. */
  10674. -#ifdef __cplusplus
  10675. -extern "C"
  10676. -#endif
  10677. -char dld_link ();
  10678. -int
  10679. -main ()
  10680. -{
  10681. -return dld_link ();
  10682. - ;
  10683. - return 0;
  10684. -}
  10685. -_ACEOF
  10686. -if ac_fn_c_try_link "$LINENO"; then :
  10687. - ac_cv_lib_dld_dld_link=yes
  10688. -else
  10689. - ac_cv_lib_dld_dld_link=no
  10690. -fi
  10691. -rm -f core conftest.err conftest.$ac_objext \
  10692. - conftest$ac_exeext conftest.$ac_ext
  10693. -LIBS=$ac_check_lib_save_LIBS
  10694. -fi
  10695. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10696. -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10697. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10698. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10699. fi
  10700. -fi
  10701. -fi
  10702. -fi
  10703. + lt_prog_compiler_wl=
  10704. +lt_prog_compiler_pic=
  10705. +lt_prog_compiler_static=
  10706. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10707. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10708. -fi
  10709. + if test "$GCC" = yes; then
  10710. + lt_prog_compiler_wl='-Wl,'
  10711. + lt_prog_compiler_static='-static'
  10712. + case $host_os in
  10713. + aix*)
  10714. + # All AIX code is PIC.
  10715. + if test "$host_cpu" = ia64; then
  10716. + # AIX 5 now supports IA64 processor
  10717. + lt_prog_compiler_static='-Bstatic'
  10718. + fi
  10719. + ;;
  10720. -fi
  10721. + amigaos*)
  10722. + case $host_cpu in
  10723. + powerpc)
  10724. + # see comment about AmigaOS4 .so support
  10725. + lt_prog_compiler_pic='-fPIC'
  10726. + ;;
  10727. + m68k)
  10728. + # FIXME: we need at least 68020 code to build shared libraries, but
  10729. + # adding the `-m68020' flag to GCC prevents building anything better,
  10730. + # like `-m68040'.
  10731. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10732. + ;;
  10733. + esac
  10734. + ;;
  10735. - ;;
  10736. - esac
  10737. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10738. + # PIC is the default for these OSes.
  10739. + ;;
  10740. - if test "x$lt_cv_dlopen" != xno; then
  10741. - enable_dlopen=yes
  10742. - else
  10743. - enable_dlopen=no
  10744. - fi
  10745. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  10746. + # This hack is so that the source file can tell whether it is being
  10747. + # built for inclusion in a dll (and should export symbols for example).
  10748. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10749. + # (--disable-auto-import) libraries
  10750. + lt_prog_compiler_pic='-DDLL_EXPORT'
  10751. + ;;
  10752. - case $lt_cv_dlopen in
  10753. - dlopen)
  10754. - save_CPPFLAGS="$CPPFLAGS"
  10755. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10756. + darwin* | rhapsody*)
  10757. + # PIC is the default on this platform
  10758. + # Common symbols not allowed in MH_DYLIB files
  10759. + lt_prog_compiler_pic='-fno-common'
  10760. + ;;
  10761. - save_LDFLAGS="$LDFLAGS"
  10762. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10763. + hpux*)
  10764. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10765. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10766. + # sets the default TLS model and affects inlining.
  10767. + case $host_cpu in
  10768. + hppa*64*)
  10769. + # +Z the default
  10770. + ;;
  10771. + *)
  10772. + lt_prog_compiler_pic='-fPIC'
  10773. + ;;
  10774. + esac
  10775. + ;;
  10776. - save_LIBS="$LIBS"
  10777. - LIBS="$lt_cv_dlopen_libs $LIBS"
  10778. + interix[3-9]*)
  10779. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10780. + # Instead, we relocate shared libraries at runtime.
  10781. + ;;
  10782. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10783. -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10784. -if test "${lt_cv_dlopen_self+set}" = set; then :
  10785. - $as_echo_n "(cached) " >&6
  10786. -else
  10787. - if test "$cross_compiling" = yes; then :
  10788. - lt_cv_dlopen_self=cross
  10789. -else
  10790. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10791. - lt_status=$lt_dlunknown
  10792. - cat > conftest.$ac_ext <<EOF
  10793. -#line 10138 "configure"
  10794. -#include "confdefs.h"
  10795. + msdosdjgpp*)
  10796. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  10797. + # on systems that don't support them.
  10798. + lt_prog_compiler_can_build_shared=no
  10799. + enable_shared=no
  10800. + ;;
  10801. -#if HAVE_DLFCN_H
  10802. -#include <dlfcn.h>
  10803. -#endif
  10804. + *nto* | *qnx*)
  10805. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  10806. + # it will coredump.
  10807. + lt_prog_compiler_pic='-fPIC -shared'
  10808. + ;;
  10809. -#include <stdio.h>
  10810. + sysv4*MP*)
  10811. + if test -d /usr/nec; then
  10812. + lt_prog_compiler_pic=-Kconform_pic
  10813. + fi
  10814. + ;;
  10815. -#ifdef RTLD_GLOBAL
  10816. -# define LT_DLGLOBAL RTLD_GLOBAL
  10817. -#else
  10818. -# ifdef DL_GLOBAL
  10819. -# define LT_DLGLOBAL DL_GLOBAL
  10820. -# else
  10821. -# define LT_DLGLOBAL 0
  10822. -# endif
  10823. -#endif
  10824. + *)
  10825. + lt_prog_compiler_pic='-fPIC'
  10826. + ;;
  10827. + esac
  10828. + else
  10829. + # PORTME Check for flag to pass linker flags through the system compiler.
  10830. + case $host_os in
  10831. + aix*)
  10832. + lt_prog_compiler_wl='-Wl,'
  10833. + if test "$host_cpu" = ia64; then
  10834. + # AIX 5 now supports IA64 processor
  10835. + lt_prog_compiler_static='-Bstatic'
  10836. + else
  10837. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10838. + fi
  10839. + ;;
  10840. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10841. - find out it does not work in some platform. */
  10842. -#ifndef LT_DLLAZY_OR_NOW
  10843. -# ifdef RTLD_LAZY
  10844. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  10845. -# else
  10846. -# ifdef DL_LAZY
  10847. -# define LT_DLLAZY_OR_NOW DL_LAZY
  10848. -# else
  10849. -# ifdef RTLD_NOW
  10850. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  10851. -# else
  10852. -# ifdef DL_NOW
  10853. -# define LT_DLLAZY_OR_NOW DL_NOW
  10854. -# else
  10855. -# define LT_DLLAZY_OR_NOW 0
  10856. -# endif
  10857. -# endif
  10858. -# endif
  10859. -# endif
  10860. -#endif
  10861. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  10862. + # This hack is so that the source file can tell whether it is being
  10863. + # built for inclusion in a dll (and should export symbols for example).
  10864. + lt_prog_compiler_pic='-DDLL_EXPORT'
  10865. + ;;
  10866. -#ifdef __cplusplus
  10867. -extern "C" void exit (int);
  10868. -#endif
  10869. + hpux9* | hpux10* | hpux11*)
  10870. + lt_prog_compiler_wl='-Wl,'
  10871. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10872. + # not for PA HP-UX.
  10873. + case $host_cpu in
  10874. + hppa*64*|ia64*)
  10875. + # +Z the default
  10876. + ;;
  10877. + *)
  10878. + lt_prog_compiler_pic='+Z'
  10879. + ;;
  10880. + esac
  10881. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10882. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  10883. + ;;
  10884. -void fnord() { int i=42;}
  10885. -int main ()
  10886. -{
  10887. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10888. - int status = $lt_dlunknown;
  10889. + irix5* | irix6* | nonstopux*)
  10890. + lt_prog_compiler_wl='-Wl,'
  10891. + # PIC (with -KPIC) is the default.
  10892. + lt_prog_compiler_static='-non_shared'
  10893. + ;;
  10894. - if (self)
  10895. - {
  10896. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10897. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10898. - /* dlclose (self); */
  10899. - }
  10900. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10901. + case $cc_basename in
  10902. + # old Intel for x86_64 which still supported -KPIC.
  10903. + ecc*)
  10904. + lt_prog_compiler_wl='-Wl,'
  10905. + lt_prog_compiler_pic='-KPIC'
  10906. + lt_prog_compiler_static='-static'
  10907. + ;;
  10908. + # icc used to be incompatible with GCC.
  10909. + # ICC 10 doesn't accept -KPIC any more.
  10910. + icc* | ifort*)
  10911. + lt_prog_compiler_wl='-Wl,'
  10912. + lt_prog_compiler_pic='-fPIC'
  10913. + lt_prog_compiler_static='-static'
  10914. + ;;
  10915. + # Lahey Fortran 8.1.
  10916. + lf95*)
  10917. + lt_prog_compiler_wl='-Wl,'
  10918. + lt_prog_compiler_pic='--shared'
  10919. + lt_prog_compiler_static='--static'
  10920. + ;;
  10921. + pgcc* | pgf77* | pgf90* | pgf95*)
  10922. + # Portland Group compilers (*not* the Pentium gcc compiler,
  10923. + # which looks to be a dead project)
  10924. + lt_prog_compiler_wl='-Wl,'
  10925. + lt_prog_compiler_pic='-fpic'
  10926. + lt_prog_compiler_static='-Bstatic'
  10927. + ;;
  10928. + ccc*)
  10929. + lt_prog_compiler_wl='-Wl,'
  10930. + # All Alpha code is PIC.
  10931. + lt_prog_compiler_static='-non_shared'
  10932. + ;;
  10933. + xl*)
  10934. + # IBM XL C 8.0/Fortran 10.1 on PPC
  10935. + lt_prog_compiler_wl='-Wl,'
  10936. + lt_prog_compiler_pic='-qpic'
  10937. + lt_prog_compiler_static='-qstaticlink'
  10938. + ;;
  10939. + *)
  10940. + case `$CC -V 2>&1 | sed 5q` in
  10941. + *Sun\ C*)
  10942. + # Sun C 5.9
  10943. + lt_prog_compiler_pic='-KPIC'
  10944. + lt_prog_compiler_static='-Bstatic'
  10945. + lt_prog_compiler_wl='-Wl,'
  10946. + ;;
  10947. + *Sun\ F*)
  10948. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10949. + lt_prog_compiler_pic='-KPIC'
  10950. + lt_prog_compiler_static='-Bstatic'
  10951. + lt_prog_compiler_wl=''
  10952. + ;;
  10953. + esac
  10954. + ;;
  10955. + esac
  10956. + ;;
  10957. - exit (status);
  10958. -}
  10959. -EOF
  10960. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10961. - (eval $ac_link) 2>&5
  10962. - ac_status=$?
  10963. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10964. - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10965. - (./conftest; exit; ) 2>/dev/null
  10966. - lt_status=$?
  10967. - case x$lt_status in
  10968. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10969. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10970. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  10971. - esac
  10972. - else :
  10973. - # compilation failed
  10974. - lt_cv_dlopen_self=no
  10975. - fi
  10976. -fi
  10977. -rm -fr conftest*
  10978. + newsos6)
  10979. + lt_prog_compiler_pic='-KPIC'
  10980. + lt_prog_compiler_static='-Bstatic'
  10981. + ;;
  10982. + *nto* | *qnx*)
  10983. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  10984. + # it will coredump.
  10985. + lt_prog_compiler_pic='-fPIC -shared'
  10986. + ;;
  10987. -fi
  10988. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10989. -$as_echo "$lt_cv_dlopen_self" >&6; }
  10990. + osf3* | osf4* | osf5*)
  10991. + lt_prog_compiler_wl='-Wl,'
  10992. + # All OSF/1 code is PIC.
  10993. + lt_prog_compiler_static='-non_shared'
  10994. + ;;
  10995. - if test "x$lt_cv_dlopen_self" = xyes; then
  10996. - LDFLAGS="$LDFLAGS $link_static_flag"
  10997. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10998. -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10999. -if test "${lt_cv_dlopen_self_static+set}" = set; then :
  11000. - $as_echo_n "(cached) " >&6
  11001. -else
  11002. - if test "$cross_compiling" = yes; then :
  11003. - lt_cv_dlopen_self_static=cross
  11004. -else
  11005. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11006. - lt_status=$lt_dlunknown
  11007. - cat > conftest.$ac_ext <<EOF
  11008. -#line 10236 "configure"
  11009. -#include "confdefs.h"
  11010. + rdos*)
  11011. + lt_prog_compiler_static='-non_shared'
  11012. + ;;
  11013. -#if HAVE_DLFCN_H
  11014. -#include <dlfcn.h>
  11015. -#endif
  11016. + solaris*)
  11017. + lt_prog_compiler_pic='-KPIC'
  11018. + lt_prog_compiler_static='-Bstatic'
  11019. + case $cc_basename in
  11020. + f77* | f90* | f95*)
  11021. + lt_prog_compiler_wl='-Qoption ld ';;
  11022. + *)
  11023. + lt_prog_compiler_wl='-Wl,';;
  11024. + esac
  11025. + ;;
  11026. -#include <stdio.h>
  11027. + sunos4*)
  11028. + lt_prog_compiler_wl='-Qoption ld '
  11029. + lt_prog_compiler_pic='-PIC'
  11030. + lt_prog_compiler_static='-Bstatic'
  11031. + ;;
  11032. -#ifdef RTLD_GLOBAL
  11033. -# define LT_DLGLOBAL RTLD_GLOBAL
  11034. -#else
  11035. -# ifdef DL_GLOBAL
  11036. -# define LT_DLGLOBAL DL_GLOBAL
  11037. -# else
  11038. -# define LT_DLGLOBAL 0
  11039. -# endif
  11040. -#endif
  11041. + sysv4 | sysv4.2uw2* | sysv4.3*)
  11042. + lt_prog_compiler_wl='-Wl,'
  11043. + lt_prog_compiler_pic='-KPIC'
  11044. + lt_prog_compiler_static='-Bstatic'
  11045. + ;;
  11046. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11047. - find out it does not work in some platform. */
  11048. -#ifndef LT_DLLAZY_OR_NOW
  11049. -# ifdef RTLD_LAZY
  11050. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  11051. -# else
  11052. -# ifdef DL_LAZY
  11053. -# define LT_DLLAZY_OR_NOW DL_LAZY
  11054. -# else
  11055. -# ifdef RTLD_NOW
  11056. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  11057. -# else
  11058. -# ifdef DL_NOW
  11059. -# define LT_DLLAZY_OR_NOW DL_NOW
  11060. -# else
  11061. -# define LT_DLLAZY_OR_NOW 0
  11062. -# endif
  11063. -# endif
  11064. -# endif
  11065. -# endif
  11066. -#endif
  11067. + sysv4*MP*)
  11068. + if test -d /usr/nec ;then
  11069. + lt_prog_compiler_pic='-Kconform_pic'
  11070. + lt_prog_compiler_static='-Bstatic'
  11071. + fi
  11072. + ;;
  11073. -#ifdef __cplusplus
  11074. -extern "C" void exit (int);
  11075. -#endif
  11076. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11077. + lt_prog_compiler_wl='-Wl,'
  11078. + lt_prog_compiler_pic='-KPIC'
  11079. + lt_prog_compiler_static='-Bstatic'
  11080. + ;;
  11081. -void fnord() { int i=42;}
  11082. -int main ()
  11083. -{
  11084. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11085. - int status = $lt_dlunknown;
  11086. + unicos*)
  11087. + lt_prog_compiler_wl='-Wl,'
  11088. + lt_prog_compiler_can_build_shared=no
  11089. + ;;
  11090. - if (self)
  11091. - {
  11092. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11093. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11094. - /* dlclose (self); */
  11095. - }
  11096. + uts4*)
  11097. + lt_prog_compiler_pic='-pic'
  11098. + lt_prog_compiler_static='-Bstatic'
  11099. + ;;
  11100. - exit (status);
  11101. -}
  11102. -EOF
  11103. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11104. - (eval $ac_link) 2>&5
  11105. - ac_status=$?
  11106. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11107. - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11108. - (./conftest; exit; ) 2>/dev/null
  11109. - lt_status=$?
  11110. - case x$lt_status in
  11111. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11112. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11113. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11114. + *)
  11115. + lt_prog_compiler_can_build_shared=no
  11116. + ;;
  11117. esac
  11118. - else :
  11119. - # compilation failed
  11120. - lt_cv_dlopen_self_static=no
  11121. fi
  11122. -fi
  11123. -rm -fr conftest*
  11124. -
  11125. -fi
  11126. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11127. -$as_echo "$lt_cv_dlopen_self_static" >&6; }
  11128. - fi
  11129. -
  11130. - CPPFLAGS="$save_CPPFLAGS"
  11131. - LDFLAGS="$save_LDFLAGS"
  11132. - LIBS="$save_LIBS"
  11133. +case $host_os in
  11134. + # For platforms which do not support PIC, -DPIC is meaningless:
  11135. + *djgpp*)
  11136. + lt_prog_compiler_pic=
  11137. ;;
  11138. - esac
  11139. -
  11140. - case $lt_cv_dlopen_self in
  11141. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11142. - *) enable_dlopen_self=unknown ;;
  11143. - esac
  11144. -
  11145. - case $lt_cv_dlopen_self_static in
  11146. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11147. - *) enable_dlopen_self_static=unknown ;;
  11148. - esac
  11149. -fi
  11150. -
  11151. -
  11152. -# Report which librarie types wil actually be built
  11153. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11154. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11155. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11156. -$as_echo "$can_build_shared" >&6; }
  11157. -
  11158. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11159. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  11160. -test "$can_build_shared" = "no" && enable_shared=no
  11161. -
  11162. -# On AIX, shared libraries and static libraries use the same namespace, and
  11163. -# are all built from PIC.
  11164. -case "$host_os" in
  11165. -aix3*)
  11166. - test "$enable_shared" = yes && enable_static=no
  11167. - if test -n "$RANLIB"; then
  11168. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11169. - postinstall_cmds='$RANLIB $lib'
  11170. - fi
  11171. - ;;
  11172. -
  11173. -aix4* | aix5*)
  11174. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11175. - test "$enable_shared" = yes && enable_static=no
  11176. - fi
  11177. - ;;
  11178. - darwin* | rhapsody*)
  11179. - if test "$GCC" = yes; then
  11180. - archive_cmds_need_lc=no
  11181. - case "$host_os" in
  11182. - rhapsody* | darwin1.[012])
  11183. - allow_undefined_flag='-undefined suppress'
  11184. - ;;
  11185. - *) # Darwin 1.3 on
  11186. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11187. - allow_undefined_flag='-flat_namespace -undefined suppress'
  11188. - else
  11189. - case ${MACOSX_DEPLOYMENT_TARGET} in
  11190. - 10.[012])
  11191. - allow_undefined_flag='-flat_namespace -undefined suppress'
  11192. - ;;
  11193. - 10.*)
  11194. - allow_undefined_flag='-undefined dynamic_lookup'
  11195. - ;;
  11196. - esac
  11197. - fi
  11198. - ;;
  11199. - esac
  11200. - output_verbose_link_cmd='echo'
  11201. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  11202. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11203. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  11204. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11205. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11206. - hardcode_direct=no
  11207. - hardcode_automatic=yes
  11208. - hardcode_shlibpath_var=unsupported
  11209. - whole_archive_flag_spec='-all_load $convenience'
  11210. - link_all_deplibs=yes
  11211. - else
  11212. - ld_shlibs=no
  11213. - fi
  11214. + *)
  11215. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11216. ;;
  11217. esac
  11218. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11219. -$as_echo "$enable_shared" >&6; }
  11220. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  11221. +$as_echo "$lt_prog_compiler_pic" >&6; }
  11222. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11223. -$as_echo_n "checking whether to build static libraries... " >&6; }
  11224. -# Make sure either enable_shared or enable_static is yes.
  11225. -test "$enable_shared" = yes || enable_static=yes
  11226. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11227. -$as_echo "$enable_static" >&6; }
  11228. -# The else clause should only fire when bootstrapping the
  11229. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  11230. -# with your package, and you will get complaints that there are
  11231. -# no rules to generate ltmain.sh.
  11232. -if test -f "$ltmain"; then
  11233. - # See if we are running on zsh, and set the options which allow our commands through
  11234. - # without removal of \ escapes.
  11235. - if test -n "${ZSH_VERSION+set}" ; then
  11236. - setopt NO_GLOB_SUBST
  11237. - fi
  11238. - # Now quote all the things that may contain metacharacters while being
  11239. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  11240. - # variables and quote the copies for generation of the libtool script.
  11241. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11242. - SED SHELL STRIP \
  11243. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11244. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11245. - deplibs_check_method reload_flag reload_cmds need_locks \
  11246. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11247. - lt_cv_sys_global_symbol_to_c_name_address \
  11248. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11249. - old_postinstall_cmds old_postuninstall_cmds \
  11250. - compiler \
  11251. - CC \
  11252. - LD \
  11253. - lt_prog_compiler_wl \
  11254. - lt_prog_compiler_pic \
  11255. - lt_prog_compiler_static \
  11256. - lt_prog_compiler_no_builtin_flag \
  11257. - export_dynamic_flag_spec \
  11258. - thread_safe_flag_spec \
  11259. - whole_archive_flag_spec \
  11260. - enable_shared_with_static_runtimes \
  11261. - old_archive_cmds \
  11262. - old_archive_from_new_cmds \
  11263. - predep_objects \
  11264. - postdep_objects \
  11265. - predeps \
  11266. - postdeps \
  11267. - compiler_lib_search_path \
  11268. - archive_cmds \
  11269. - archive_expsym_cmds \
  11270. - postinstall_cmds \
  11271. - postuninstall_cmds \
  11272. - old_archive_from_expsyms_cmds \
  11273. - allow_undefined_flag \
  11274. - no_undefined_flag \
  11275. - export_symbols_cmds \
  11276. - hardcode_libdir_flag_spec \
  11277. - hardcode_libdir_flag_spec_ld \
  11278. - hardcode_libdir_separator \
  11279. - hardcode_automatic \
  11280. - module_cmds \
  11281. - module_expsym_cmds \
  11282. - lt_cv_prog_compiler_c_o \
  11283. - exclude_expsyms \
  11284. - include_expsyms; do
  11285. -
  11286. - case $var in
  11287. - old_archive_cmds | \
  11288. - old_archive_from_new_cmds | \
  11289. - archive_cmds | \
  11290. - archive_expsym_cmds | \
  11291. - module_cmds | \
  11292. - module_expsym_cmds | \
  11293. - old_archive_from_expsyms_cmds | \
  11294. - export_symbols_cmds | \
  11295. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11296. - postinstall_cmds | postuninstall_cmds | \
  11297. - old_postinstall_cmds | old_postuninstall_cmds | \
  11298. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11299. - # Double-quote double-evaled strings.
  11300. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11301. - ;;
  11302. - *)
  11303. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11304. - ;;
  11305. - esac
  11306. - done
  11307. - case $lt_echo in
  11308. - *'\$0 --fallback-echo"')
  11309. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11310. - ;;
  11311. - esac
  11312. -cfgfile="${ofile}T"
  11313. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  11314. - $rm -f "$cfgfile"
  11315. - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
  11316. -$as_echo "$as_me: creating $ofile" >&6;}
  11317. - cat <<__EOF__ >> "$cfgfile"
  11318. -#! $SHELL
  11319. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11320. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  11321. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11322. -#
  11323. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  11324. -# Free Software Foundation, Inc.
  11325. -#
  11326. -# This file is part of GNU Libtool:
  11327. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  11328. #
  11329. -# This program is free software; you can redistribute it and/or modify
  11330. -# it under the terms of the GNU General Public License as published by
  11331. -# the Free Software Foundation; either version 2 of the License, or
  11332. -# (at your option) any later version.
  11333. -#
  11334. -# This program is distributed in the hope that it will be useful, but
  11335. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  11336. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11337. -# General Public License for more details.
  11338. -#
  11339. -# You should have received a copy of the GNU General Public License
  11340. -# along with this program; if not, write to the Free Software
  11341. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  11342. +# Check to make sure the PIC flag actually works.
  11343. #
  11344. -# As a special exception to the GNU General Public License, if you
  11345. -# distribute this file as part of a program that contains a
  11346. -# configuration script generated by Autoconf, you may include it under
  11347. -# the same distribution terms that you use for the rest of that program.
  11348. +if test -n "$lt_prog_compiler_pic"; then
  11349. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11350. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11351. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  11352. + $as_echo_n "(cached) " >&6
  11353. +else
  11354. + lt_cv_prog_compiler_pic_works=no
  11355. + ac_outfile=conftest.$ac_objext
  11356. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11357. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  11358. + # Insert the option either (1) after the last *FLAGS variable, or
  11359. + # (2) before a word containing "conftest.", or (3) at the end.
  11360. + # Note that $ac_compile itself does not contain backslashes and begins
  11361. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11362. + # The option is referenced via a variable to avoid confusing sed.
  11363. + lt_compile=`echo "$ac_compile" | $SED \
  11364. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11365. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11366. + -e 's:$: $lt_compiler_flag:'`
  11367. + (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
  11368. + (eval "$lt_compile" 2>conftest.err)
  11369. + ac_status=$?
  11370. + cat conftest.err >&5
  11371. + echo "$as_me:8741: \$? = $ac_status" >&5
  11372. + if (exit $ac_status) && test -s "$ac_outfile"; then
  11373. + # The compiler can only warn and ignore the option if not recognized
  11374. + # So say no if there are warnings other than the usual output.
  11375. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11376. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11377. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11378. + lt_cv_prog_compiler_pic_works=yes
  11379. + fi
  11380. + fi
  11381. + $RM conftest*
  11382. -# A sed program that does not truncate output.
  11383. -SED=$lt_SED
  11384. +fi
  11385. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11386. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  11387. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11388. -Xsed="$SED -e s/^X//"
  11389. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  11390. + case $lt_prog_compiler_pic in
  11391. + "" | " "*) ;;
  11392. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11393. + esac
  11394. +else
  11395. + lt_prog_compiler_pic=
  11396. + lt_prog_compiler_can_build_shared=no
  11397. +fi
  11398. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  11399. -# if CDPATH is set.
  11400. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  11401. +fi
  11402. -# The names of the tagged configurations supported by this script.
  11403. -available_tags=
  11404. -# ### BEGIN LIBTOOL CONFIG
  11405. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11406. -# Shell to use when invoking shell scripts.
  11407. -SHELL=$lt_SHELL
  11408. -# Whether or not to build shared libraries.
  11409. -build_libtool_libs=$enable_shared
  11410. -# Whether or not to build static libraries.
  11411. -build_old_libs=$enable_static
  11412. +#
  11413. +# Check to make sure the static flag actually works.
  11414. +#
  11415. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11416. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11417. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11418. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  11419. + $as_echo_n "(cached) " >&6
  11420. +else
  11421. + lt_cv_prog_compiler_static_works=no
  11422. + save_LDFLAGS="$LDFLAGS"
  11423. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11424. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11425. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11426. + # The linker can only warn and ignore the option if not recognized
  11427. + # So say no if there are warnings
  11428. + if test -s conftest.err; then
  11429. + # Append any errors to the config.log.
  11430. + cat conftest.err 1>&5
  11431. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11432. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11433. + if diff conftest.exp conftest.er2 >/dev/null; then
  11434. + lt_cv_prog_compiler_static_works=yes
  11435. + fi
  11436. + else
  11437. + lt_cv_prog_compiler_static_works=yes
  11438. + fi
  11439. + fi
  11440. + $RM -r conftest*
  11441. + LDFLAGS="$save_LDFLAGS"
  11442. -# Whether or not to add -lc for building shared libraries.
  11443. -build_libtool_need_lc=$archive_cmds_need_lc
  11444. +fi
  11445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11446. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  11447. -# Whether or not to disallow shared libs when runtime libs are static
  11448. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11449. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  11450. + :
  11451. +else
  11452. + lt_prog_compiler_static=
  11453. +fi
  11454. -# Whether or not to optimize for fast installation.
  11455. -fast_install=$enable_fast_install
  11456. -# The host system.
  11457. -host_alias=$host_alias
  11458. -host=$host
  11459. -# An echo program that does not interpret backslashes.
  11460. -echo=$lt_echo
  11461. -# The archiver.
  11462. -AR=$lt_AR
  11463. -AR_FLAGS=$lt_AR_FLAGS
  11464. -# A C compiler.
  11465. -LTCC=$lt_LTCC
  11466. -# A language-specific compiler.
  11467. -CC=$lt_compiler
  11468. -# Is the compiler the GNU C compiler?
  11469. -with_gcc=$GCC
  11470. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11471. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11472. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  11473. + $as_echo_n "(cached) " >&6
  11474. +else
  11475. + lt_cv_prog_compiler_c_o=no
  11476. + $RM -r conftest 2>/dev/null
  11477. + mkdir conftest
  11478. + cd conftest
  11479. + mkdir out
  11480. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11481. -# An ERE matcher.
  11482. -EGREP=$lt_EGREP
  11483. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  11484. + # Insert the option either (1) after the last *FLAGS variable, or
  11485. + # (2) before a word containing "conftest.", or (3) at the end.
  11486. + # Note that $ac_compile itself does not contain backslashes and begins
  11487. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11488. + lt_compile=`echo "$ac_compile" | $SED \
  11489. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11490. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11491. + -e 's:$: $lt_compiler_flag:'`
  11492. + (eval echo "\"\$as_me:8842: $lt_compile\"" >&5)
  11493. + (eval "$lt_compile" 2>out/conftest.err)
  11494. + ac_status=$?
  11495. + cat out/conftest.err >&5
  11496. + echo "$as_me:8846: \$? = $ac_status" >&5
  11497. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11498. + then
  11499. + # The compiler can only warn and ignore the option if not recognized
  11500. + # So say no if there are warnings
  11501. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11502. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11503. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11504. + lt_cv_prog_compiler_c_o=yes
  11505. + fi
  11506. + fi
  11507. + chmod u+w . 2>&5
  11508. + $RM conftest*
  11509. + # SGI C++ compiler will create directory out/ii_files/ for
  11510. + # template instantiation
  11511. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11512. + $RM out/* && rmdir out
  11513. + cd ..
  11514. + $RM -r conftest
  11515. + $RM conftest*
  11516. -# The linker used to build libraries.
  11517. -LD=$lt_LD
  11518. +fi
  11519. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11520. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11521. -# Whether we need hard or soft links.
  11522. -LN_S=$lt_LN_S
  11523. -# A BSD-compatible nm program.
  11524. -NM=$lt_NM
  11525. -# A symbol stripping program
  11526. -STRIP=$lt_STRIP
  11527. -# Used to examine libraries when file_magic_cmd begins "file"
  11528. -MAGIC_CMD=$MAGIC_CMD
  11529. -# Used on cygwin: DLL creation program.
  11530. -DLLTOOL="$DLLTOOL"
  11531. -# Used on cygwin: object dumper.
  11532. -OBJDUMP="$OBJDUMP"
  11533. -
  11534. -# Used on cygwin: assembler.
  11535. -AS="$AS"
  11536. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11537. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11538. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  11539. + $as_echo_n "(cached) " >&6
  11540. +else
  11541. + lt_cv_prog_compiler_c_o=no
  11542. + $RM -r conftest 2>/dev/null
  11543. + mkdir conftest
  11544. + cd conftest
  11545. + mkdir out
  11546. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11547. -# The name of the directory that contains temporary libtool files.
  11548. -objdir=$objdir
  11549. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  11550. + # Insert the option either (1) after the last *FLAGS variable, or
  11551. + # (2) before a word containing "conftest.", or (3) at the end.
  11552. + # Note that $ac_compile itself does not contain backslashes and begins
  11553. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  11554. + lt_compile=`echo "$ac_compile" | $SED \
  11555. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11556. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11557. + -e 's:$: $lt_compiler_flag:'`
  11558. + (eval echo "\"\$as_me:8897: $lt_compile\"" >&5)
  11559. + (eval "$lt_compile" 2>out/conftest.err)
  11560. + ac_status=$?
  11561. + cat out/conftest.err >&5
  11562. + echo "$as_me:8901: \$? = $ac_status" >&5
  11563. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11564. + then
  11565. + # The compiler can only warn and ignore the option if not recognized
  11566. + # So say no if there are warnings
  11567. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11568. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11569. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11570. + lt_cv_prog_compiler_c_o=yes
  11571. + fi
  11572. + fi
  11573. + chmod u+w . 2>&5
  11574. + $RM conftest*
  11575. + # SGI C++ compiler will create directory out/ii_files/ for
  11576. + # template instantiation
  11577. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11578. + $RM out/* && rmdir out
  11579. + cd ..
  11580. + $RM -r conftest
  11581. + $RM conftest*
  11582. -# How to create reloadable object files.
  11583. -reload_flag=$lt_reload_flag
  11584. -reload_cmds=$lt_reload_cmds
  11585. +fi
  11586. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11587. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11588. -# How to pass a linker flag through the compiler.
  11589. -wl=$lt_lt_prog_compiler_wl
  11590. -# Object file suffix (normally "o").
  11591. -objext="$ac_objext"
  11592. -# Old archive suffix (normally "a").
  11593. -libext="$libext"
  11594. -# Shared library suffix (normally ".so").
  11595. -shrext_cmds='$shrext_cmds'
  11596. +hard_links="nottested"
  11597. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  11598. + # do not overwrite the value of need_locks provided by the user
  11599. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11600. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  11601. + hard_links=yes
  11602. + $RM conftest*
  11603. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11604. + touch conftest.a
  11605. + ln conftest.a conftest.b 2>&5 || hard_links=no
  11606. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11607. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11608. +$as_echo "$hard_links" >&6; }
  11609. + if test "$hard_links" = no; then
  11610. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11611. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11612. + need_locks=warn
  11613. + fi
  11614. +else
  11615. + need_locks=no
  11616. +fi
  11617. -# Executable file suffix (normally "").
  11618. -exeext="$exeext"
  11619. -# Additional compiler flags for building library objects.
  11620. -pic_flag=$lt_lt_prog_compiler_pic
  11621. -pic_mode=$pic_mode
  11622. -# What is the maximum length of a command?
  11623. -max_cmd_len=$lt_cv_sys_max_cmd_len
  11624. -# Does compiler simultaneously support -c and -o options?
  11625. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11626. -# Must we lock files when doing compilation ?
  11627. -need_locks=$lt_need_locks
  11628. -# Do we need the lib prefix for modules?
  11629. -need_lib_prefix=$need_lib_prefix
  11630. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11631. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11632. -# Do we need a version for libraries?
  11633. -need_version=$need_version
  11634. + runpath_var=
  11635. + allow_undefined_flag=
  11636. + always_export_symbols=no
  11637. + archive_cmds=
  11638. + archive_expsym_cmds=
  11639. + compiler_needs_object=no
  11640. + enable_shared_with_static_runtimes=no
  11641. + export_dynamic_flag_spec=
  11642. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11643. + hardcode_automatic=no
  11644. + hardcode_direct=no
  11645. + hardcode_direct_absolute=no
  11646. + hardcode_libdir_flag_spec=
  11647. + hardcode_libdir_flag_spec_ld=
  11648. + hardcode_libdir_separator=
  11649. + hardcode_minus_L=no
  11650. + hardcode_shlibpath_var=unsupported
  11651. + inherit_rpath=no
  11652. + link_all_deplibs=unknown
  11653. + module_cmds=
  11654. + module_expsym_cmds=
  11655. + old_archive_from_new_cmds=
  11656. + old_archive_from_expsyms_cmds=
  11657. + thread_safe_flag_spec=
  11658. + whole_archive_flag_spec=
  11659. + # include_expsyms should be a list of space-separated symbols to be *always*
  11660. + # included in the symbol list
  11661. + include_expsyms=
  11662. + # exclude_expsyms can be an extended regexp of symbols to exclude
  11663. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11664. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11665. + # as well as any symbol that contains `d'.
  11666. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11667. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11668. + # platforms (ab)use it in PIC code, but their linkers get confused if
  11669. + # the symbol is explicitly referenced. Since portable code cannot
  11670. + # rely on this symbol name, it's probably fine to never include it in
  11671. + # preloaded symbol tables.
  11672. + # Exclude shared library initialization/finalization symbols.
  11673. + extract_expsyms_cmds=
  11674. -# Whether dlopen is supported.
  11675. -dlopen_support=$enable_dlopen
  11676. + case $host_os in
  11677. + cygwin* | mingw* | pw32* | cegcc*)
  11678. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11679. + # When not using gcc, we currently assume that we are using
  11680. + # Microsoft Visual C++.
  11681. + if test "$GCC" != yes; then
  11682. + with_gnu_ld=no
  11683. + fi
  11684. + ;;
  11685. + interix*)
  11686. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  11687. + with_gnu_ld=yes
  11688. + ;;
  11689. + openbsd*)
  11690. + with_gnu_ld=no
  11691. + ;;
  11692. + linux* | k*bsd*-gnu)
  11693. + link_all_deplibs=no
  11694. + ;;
  11695. + esac
  11696. -# Whether dlopen of programs is supported.
  11697. -dlopen_self=$enable_dlopen_self
  11698. + ld_shlibs=yes
  11699. + if test "$with_gnu_ld" = yes; then
  11700. + # If archive_cmds runs LD, not CC, wlarc should be empty
  11701. + wlarc='${wl}'
  11702. -# Whether dlopen of statically linked programs is supported.
  11703. -dlopen_self_static=$enable_dlopen_self_static
  11704. + # Set some defaults for GNU ld with shared library support. These
  11705. + # are reset later if shared libraries are not supported. Putting them
  11706. + # here allows them to be overridden if necessary.
  11707. + runpath_var=LD_RUN_PATH
  11708. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11709. + export_dynamic_flag_spec='${wl}--export-dynamic'
  11710. + # ancient GNU ld didn't support --whole-archive et. al.
  11711. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11712. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11713. + else
  11714. + whole_archive_flag_spec=
  11715. + fi
  11716. + supports_anon_versioning=no
  11717. + case `$LD -v 2>&1` in
  11718. + *GNU\ gold*) supports_anon_versioning=yes ;;
  11719. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11720. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11721. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11722. + *\ 2.11.*) ;; # other 2.11 versions
  11723. + *) supports_anon_versioning=yes ;;
  11724. + esac
  11725. -# Compiler flag to prevent dynamic linking.
  11726. -link_static_flag=$lt_lt_prog_compiler_static
  11727. + # See if GNU ld supports shared libraries.
  11728. + case $host_os in
  11729. + aix[3-9]*)
  11730. + # On AIX/PPC, the GNU linker is very broken
  11731. + if test "$host_cpu" != ia64; then
  11732. + ld_shlibs=no
  11733. + cat <<_LT_EOF 1>&2
  11734. -# Compiler flag to turn off builtin functions.
  11735. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11736. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11737. +*** to be unable to reliably create shared libraries on AIX.
  11738. +*** Therefore, libtool is disabling shared libraries support. If you
  11739. +*** really care for shared libraries, you may want to modify your PATH
  11740. +*** so that a non-GNU linker is found, and then restart.
  11741. -# Compiler flag to allow reflexive dlopens.
  11742. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11743. +_LT_EOF
  11744. + fi
  11745. + ;;
  11746. -# Compiler flag to generate shared objects directly from archives.
  11747. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11748. + amigaos*)
  11749. + case $host_cpu in
  11750. + powerpc)
  11751. + # see comment about AmigaOS4 .so support
  11752. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11753. + archive_expsym_cmds=''
  11754. + ;;
  11755. + m68k)
  11756. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11757. + hardcode_libdir_flag_spec='-L$libdir'
  11758. + hardcode_minus_L=yes
  11759. + ;;
  11760. + esac
  11761. + ;;
  11762. -# Compiler flag to generate thread-safe objects.
  11763. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  11764. + beos*)
  11765. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11766. + allow_undefined_flag=unsupported
  11767. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11768. + # support --undefined. This deserves some investigation. FIXME
  11769. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11770. + else
  11771. + ld_shlibs=no
  11772. + fi
  11773. + ;;
  11774. -# Library versioning type.
  11775. -version_type=$version_type
  11776. + cygwin* | mingw* | pw32* | cegcc*)
  11777. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  11778. + # as there is no search path for DLLs.
  11779. + hardcode_libdir_flag_spec='-L$libdir'
  11780. + allow_undefined_flag=unsupported
  11781. + always_export_symbols=no
  11782. + enable_shared_with_static_runtimes=yes
  11783. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11784. -# Format of library name prefix.
  11785. -libname_spec=$lt_libname_spec
  11786. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11787. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11788. + # If the export-symbols file already is a .def file (1st line
  11789. + # is EXPORTS), use it as is; otherwise, prepend...
  11790. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11791. + cp $export_symbols $output_objdir/$soname.def;
  11792. + else
  11793. + echo EXPORTS > $output_objdir/$soname.def;
  11794. + cat $export_symbols >> $output_objdir/$soname.def;
  11795. + fi~
  11796. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11797. + else
  11798. + ld_shlibs=no
  11799. + fi
  11800. + ;;
  11801. -# List of archive names. First name is the real one, the rest are links.
  11802. -# The last name is the one that the linker finds with -lNAME.
  11803. -library_names_spec=$lt_library_names_spec
  11804. + interix[3-9]*)
  11805. + hardcode_direct=no
  11806. + hardcode_shlibpath_var=no
  11807. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11808. + export_dynamic_flag_spec='${wl}-E'
  11809. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11810. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  11811. + # default) and relocated if they conflict, which is a slow very memory
  11812. + # consuming and fragmenting process. To avoid this, we pick a random,
  11813. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11814. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11815. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11816. + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11817. + ;;
  11818. -# The coded name of the library, if different from the real name.
  11819. -soname_spec=$lt_soname_spec
  11820. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11821. + tmp_diet=no
  11822. + if test "$host_os" = linux-dietlibc; then
  11823. + case $cc_basename in
  11824. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  11825. + esac
  11826. + fi
  11827. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11828. + && test "$tmp_diet" = no
  11829. + then
  11830. + tmp_addflag=
  11831. + tmp_sharedflag='-shared'
  11832. + case $cc_basename,$host_cpu in
  11833. + pgcc*) # Portland Group C compiler
  11834. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11835. + tmp_addflag=' $pic_flag'
  11836. + ;;
  11837. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11838. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11839. + tmp_addflag=' $pic_flag -Mnomain' ;;
  11840. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11841. + tmp_addflag=' -i_dynamic' ;;
  11842. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11843. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  11844. + ifc* | ifort*) # Intel Fortran compiler
  11845. + tmp_addflag=' -nofor_main' ;;
  11846. + lf95*) # Lahey Fortran 8.1
  11847. + whole_archive_flag_spec=
  11848. + tmp_sharedflag='--shared' ;;
  11849. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  11850. + tmp_sharedflag='-qmkshrobj'
  11851. + tmp_addflag= ;;
  11852. + esac
  11853. + case `$CC -V 2>&1 | sed 5q` in
  11854. + *Sun\ C*) # Sun C 5.9
  11855. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  11856. + compiler_needs_object=yes
  11857. + tmp_sharedflag='-G' ;;
  11858. + *Sun\ F*) # Sun Fortran 8.3
  11859. + tmp_sharedflag='-G' ;;
  11860. + esac
  11861. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11862. -# Commands used to build and install an old-style archive.
  11863. -RANLIB=$lt_RANLIB
  11864. -old_archive_cmds=$lt_old_archive_cmds
  11865. -old_postinstall_cmds=$lt_old_postinstall_cmds
  11866. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11867. + if test "x$supports_anon_versioning" = xyes; then
  11868. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11869. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11870. + echo "local: *; };" >> $output_objdir/$libname.ver~
  11871. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11872. + fi
  11873. -# Create an old-style archive from a shared archive.
  11874. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11875. + case $cc_basename in
  11876. + xlf*)
  11877. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  11878. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  11879. + hardcode_libdir_flag_spec=
  11880. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  11881. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11882. + if test "x$supports_anon_versioning" = xyes; then
  11883. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  11884. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11885. + echo "local: *; };" >> $output_objdir/$libname.ver~
  11886. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11887. + fi
  11888. + ;;
  11889. + esac
  11890. + else
  11891. + ld_shlibs=no
  11892. + fi
  11893. + ;;
  11894. -# Create a temporary old-style archive to link instead of a shared archive.
  11895. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11896. + netbsd* | netbsdelf*-gnu)
  11897. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11898. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11899. + wlarc=
  11900. + else
  11901. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11902. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11903. + fi
  11904. + ;;
  11905. -# Commands used to build and install a shared archive.
  11906. -archive_cmds=$lt_archive_cmds
  11907. -archive_expsym_cmds=$lt_archive_expsym_cmds
  11908. -postinstall_cmds=$lt_postinstall_cmds
  11909. -postuninstall_cmds=$lt_postuninstall_cmds
  11910. + solaris*)
  11911. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11912. + ld_shlibs=no
  11913. + cat <<_LT_EOF 1>&2
  11914. -# Commands used to build a loadable module (assumed same as above if empty)
  11915. -module_cmds=$lt_module_cmds
  11916. -module_expsym_cmds=$lt_module_expsym_cmds
  11917. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11918. +*** create shared libraries on Solaris systems. Therefore, libtool
  11919. +*** is disabling shared libraries support. We urge you to upgrade GNU
  11920. +*** binutils to release 2.9.1 or newer. Another option is to modify
  11921. +*** your PATH or compiler configuration so that the native linker is
  11922. +*** used, and then restart.
  11923. -# Commands to strip libraries.
  11924. -old_striplib=$lt_old_striplib
  11925. -striplib=$lt_striplib
  11926. +_LT_EOF
  11927. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11928. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11929. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11930. + else
  11931. + ld_shlibs=no
  11932. + fi
  11933. + ;;
  11934. -# Dependencies to place before the objects being linked to create a
  11935. -# shared library.
  11936. -predep_objects=$lt_predep_objects
  11937. -
  11938. -# Dependencies to place after the objects being linked to create a
  11939. -# shared library.
  11940. -postdep_objects=$lt_postdep_objects
  11941. -
  11942. -# Dependencies to place before the objects being linked to create a
  11943. -# shared library.
  11944. -predeps=$lt_predeps
  11945. -
  11946. -# Dependencies to place after the objects being linked to create a
  11947. -# shared library.
  11948. -postdeps=$lt_postdeps
  11949. -
  11950. -# The library search path used internally by the compiler when linking
  11951. -# a shared library.
  11952. -compiler_lib_search_path=$lt_compiler_lib_search_path
  11953. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11954. + case `$LD -v 2>&1` in
  11955. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11956. + ld_shlibs=no
  11957. + cat <<_LT_EOF 1>&2
  11958. -# Method to check whether dependent libraries are shared objects.
  11959. -deplibs_check_method=$lt_deplibs_check_method
  11960. -
  11961. -# Command to use when deplibs_check_method == file_magic.
  11962. -file_magic_cmd=$lt_file_magic_cmd
  11963. -
  11964. -# Flag that allows shared libraries with undefined symbols to be built.
  11965. -allow_undefined_flag=$lt_allow_undefined_flag
  11966. -
  11967. -# Flag that forces no undefined symbols.
  11968. -no_undefined_flag=$lt_no_undefined_flag
  11969. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11970. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  11971. +*** is disabling shared libraries support. We urge you to upgrade GNU
  11972. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11973. +*** your PATH or compiler configuration so that the native linker is
  11974. +*** used, and then restart.
  11975. -# Commands used to finish a libtool library installation in a directory.
  11976. -finish_cmds=$lt_finish_cmds
  11977. +_LT_EOF
  11978. + ;;
  11979. + *)
  11980. + # For security reasons, it is highly recommended that you always
  11981. + # use absolute paths for naming shared libraries, and exclude the
  11982. + # DT_RUNPATH tag from executables and libraries. But doing so
  11983. + # requires that you compile everything twice, which is a pain.
  11984. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11985. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11986. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11987. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11988. + else
  11989. + ld_shlibs=no
  11990. + fi
  11991. + ;;
  11992. + esac
  11993. + ;;
  11994. -# Same as above, but a single script fragment to be evaled but not shown.
  11995. -finish_eval=$lt_finish_eval
  11996. + sunos4*)
  11997. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11998. + wlarc=
  11999. + hardcode_direct=yes
  12000. + hardcode_shlibpath_var=no
  12001. + ;;
  12002. -# Take the output of nm and produce a listing of raw symbols and C names.
  12003. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12004. + *)
  12005. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12006. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12007. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12008. + else
  12009. + ld_shlibs=no
  12010. + fi
  12011. + ;;
  12012. + esac
  12013. -# Transform the output of nm in a proper C declaration
  12014. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12015. + if test "$ld_shlibs" = no; then
  12016. + runpath_var=
  12017. + hardcode_libdir_flag_spec=
  12018. + export_dynamic_flag_spec=
  12019. + whole_archive_flag_spec=
  12020. + fi
  12021. + else
  12022. + # PORTME fill in a description of your system's linker (not GNU ld)
  12023. + case $host_os in
  12024. + aix3*)
  12025. + allow_undefined_flag=unsupported
  12026. + always_export_symbols=yes
  12027. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12028. + # Note: this linker hardcodes the directories in LIBPATH if there
  12029. + # are no directories specified by -L.
  12030. + hardcode_minus_L=yes
  12031. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  12032. + # Neither direct hardcoding nor static linking is supported with a
  12033. + # broken collect2.
  12034. + hardcode_direct=unsupported
  12035. + fi
  12036. + ;;
  12037. -# Transform the output of nm in a C name address pair
  12038. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12039. + aix[4-9]*)
  12040. + if test "$host_cpu" = ia64; then
  12041. + # On IA64, the linker does run time linking by default, so we don't
  12042. + # have to do anything special.
  12043. + aix_use_runtimelinking=no
  12044. + exp_sym_flag='-Bexport'
  12045. + no_entry_flag=""
  12046. + else
  12047. + # If we're using GNU nm, then we don't want the "-C" option.
  12048. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12049. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12050. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12051. + else
  12052. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12053. + fi
  12054. + aix_use_runtimelinking=no
  12055. -# This is the shared library runtime path variable.
  12056. -runpath_var=$runpath_var
  12057. + # Test if we are trying to use run time linking or normal
  12058. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12059. + # need to do runtime linking.
  12060. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12061. + for ld_flag in $LDFLAGS; do
  12062. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12063. + aix_use_runtimelinking=yes
  12064. + break
  12065. + fi
  12066. + done
  12067. + ;;
  12068. + esac
  12069. -# This is the shared library path variable.
  12070. -shlibpath_var=$shlibpath_var
  12071. + exp_sym_flag='-bexport'
  12072. + no_entry_flag='-bnoentry'
  12073. + fi
  12074. -# Is shlibpath searched before the hard-coded library search path?
  12075. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12076. + # When large executables or shared objects are built, AIX ld can
  12077. + # have problems creating the table of contents. If linking a library
  12078. + # or program results in "error TOC overflow" add -mminimal-toc to
  12079. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12080. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12081. -# How to hardcode a shared library path into an executable.
  12082. -hardcode_action=$hardcode_action
  12083. + archive_cmds=''
  12084. + hardcode_direct=yes
  12085. + hardcode_direct_absolute=yes
  12086. + hardcode_libdir_separator=':'
  12087. + link_all_deplibs=yes
  12088. + file_list_spec='${wl}-f,'
  12089. -# Whether we should hardcode library paths into libraries.
  12090. -hardcode_into_libs=$hardcode_into_libs
  12091. + if test "$GCC" = yes; then
  12092. + case $host_os in aix4.[012]|aix4.[012].*)
  12093. + # We only want to do this on AIX 4.2 and lower, the check
  12094. + # below for broken collect2 doesn't work under 4.3+
  12095. + collect2name=`${CC} -print-prog-name=collect2`
  12096. + if test -f "$collect2name" &&
  12097. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12098. + then
  12099. + # We have reworked collect2
  12100. + :
  12101. + else
  12102. + # We have old collect2
  12103. + hardcode_direct=unsupported
  12104. + # It fails to find uninstalled libraries when the uninstalled
  12105. + # path is not listed in the libpath. Setting hardcode_minus_L
  12106. + # to unsupported forces relinking
  12107. + hardcode_minus_L=yes
  12108. + hardcode_libdir_flag_spec='-L$libdir'
  12109. + hardcode_libdir_separator=
  12110. + fi
  12111. + ;;
  12112. + esac
  12113. + shared_flag='-shared'
  12114. + if test "$aix_use_runtimelinking" = yes; then
  12115. + shared_flag="$shared_flag "'${wl}-G'
  12116. + fi
  12117. + link_all_deplibs=no
  12118. + else
  12119. + # not using gcc
  12120. + if test "$host_cpu" = ia64; then
  12121. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12122. + # chokes on -Wl,-G. The following line is correct:
  12123. + shared_flag='-G'
  12124. + else
  12125. + if test "$aix_use_runtimelinking" = yes; then
  12126. + shared_flag='${wl}-G'
  12127. + else
  12128. + shared_flag='${wl}-bM:SRE'
  12129. + fi
  12130. + fi
  12131. + fi
  12132. -# Flag to hardcode \$libdir into a binary during linking.
  12133. -# This must work even if \$libdir does not exist.
  12134. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12135. + export_dynamic_flag_spec='${wl}-bexpall'
  12136. + # It seems that -bexpall does not export symbols beginning with
  12137. + # underscore (_), so it is better to generate a list of symbols to export.
  12138. + always_export_symbols=yes
  12139. + if test "$aix_use_runtimelinking" = yes; then
  12140. + # Warning - without using the other runtime loading flags (-brtl),
  12141. + # -berok will link without error, but may produce a broken library.
  12142. + allow_undefined_flag='-berok'
  12143. + # Determine the default libpath from the value encoded in an
  12144. + # empty executable.
  12145. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12146. +/* end confdefs.h. */
  12147. -# If ld is used when linking, flag to hardcode \$libdir into
  12148. -# a binary during linking. This must work even if \$libdir does
  12149. -# not exist.
  12150. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12151. +int
  12152. +main ()
  12153. +{
  12154. -# Whether we need a single -rpath flag with a separated argument.
  12155. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12156. + ;
  12157. + return 0;
  12158. +}
  12159. +_ACEOF
  12160. +if ac_fn_c_try_link "$LINENO"; then :
  12161. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12162. -# resulting binary.
  12163. -hardcode_direct=$hardcode_direct
  12164. +lt_aix_libpath_sed='
  12165. + /Import File Strings/,/^$/ {
  12166. + /^0/ {
  12167. + s/^0 *\(.*\)$/\1/
  12168. + p
  12169. + }
  12170. + }'
  12171. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12172. +# Check for a 64-bit object if we didn't find anything.
  12173. +if test -z "$aix_libpath"; then
  12174. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12175. +fi
  12176. +fi
  12177. +rm -f core conftest.err conftest.$ac_objext \
  12178. + conftest$ac_exeext conftest.$ac_ext
  12179. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12180. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12181. -# resulting binary.
  12182. -hardcode_minus_L=$hardcode_minus_L
  12183. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12184. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12185. + else
  12186. + if test "$host_cpu" = ia64; then
  12187. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  12188. + allow_undefined_flag="-z nodefs"
  12189. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  12190. + else
  12191. + # Determine the default libpath from the value encoded in an
  12192. + # empty executable.
  12193. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12194. +/* end confdefs.h. */
  12195. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12196. -# the resulting binary.
  12197. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  12198. +int
  12199. +main ()
  12200. +{
  12201. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  12202. -# and all subsequent libraries and executables linked against it.
  12203. -hardcode_automatic=$hardcode_automatic
  12204. + ;
  12205. + return 0;
  12206. +}
  12207. +_ACEOF
  12208. +if ac_fn_c_try_link "$LINENO"; then :
  12209. -# Variables whose values should be saved in libtool wrapper scripts and
  12210. -# restored at relink time.
  12211. -variables_saved_for_relink="$variables_saved_for_relink"
  12212. +lt_aix_libpath_sed='
  12213. + /Import File Strings/,/^$/ {
  12214. + /^0/ {
  12215. + s/^0 *\(.*\)$/\1/
  12216. + p
  12217. + }
  12218. + }'
  12219. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12220. +# Check for a 64-bit object if we didn't find anything.
  12221. +if test -z "$aix_libpath"; then
  12222. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12223. +fi
  12224. +fi
  12225. +rm -f core conftest.err conftest.$ac_objext \
  12226. + conftest$ac_exeext conftest.$ac_ext
  12227. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12228. -# Whether libtool must link a program against all its dependency libraries.
  12229. -link_all_deplibs=$link_all_deplibs
  12230. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  12231. + # Warning - without using the other run time loading flags,
  12232. + # -berok will link without error, but may produce a broken library.
  12233. + no_undefined_flag=' ${wl}-bernotok'
  12234. + allow_undefined_flag=' ${wl}-berok'
  12235. + # Exported symbols can be pulled into shared objects from archives
  12236. + whole_archive_flag_spec='$convenience'
  12237. + archive_cmds_need_lc=yes
  12238. + # This is similar to how AIX traditionally builds its shared libraries.
  12239. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12240. + fi
  12241. + fi
  12242. + ;;
  12243. -# Compile-time system search path for libraries
  12244. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12245. + amigaos*)
  12246. + case $host_cpu in
  12247. + powerpc)
  12248. + # see comment about AmigaOS4 .so support
  12249. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12250. + archive_expsym_cmds=''
  12251. + ;;
  12252. + m68k)
  12253. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12254. + hardcode_libdir_flag_spec='-L$libdir'
  12255. + hardcode_minus_L=yes
  12256. + ;;
  12257. + esac
  12258. + ;;
  12259. -# Run-time system search path for libraries
  12260. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12261. + bsdi[45]*)
  12262. + export_dynamic_flag_spec=-rdynamic
  12263. + ;;
  12264. -# Fix the shell variable \$srcfile for the compiler.
  12265. -fix_srcfile_path="$fix_srcfile_path"
  12266. + cygwin* | mingw* | pw32* | cegcc*)
  12267. + # When not using gcc, we currently assume that we are using
  12268. + # Microsoft Visual C++.
  12269. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  12270. + # no search path for DLLs.
  12271. + hardcode_libdir_flag_spec=' '
  12272. + allow_undefined_flag=unsupported
  12273. + # Tell ltmain to make .lib files, not .a files.
  12274. + libext=lib
  12275. + # Tell ltmain to make .dll files, not .so files.
  12276. + shrext_cmds=".dll"
  12277. + # FIXME: Setting linknames here is a bad hack.
  12278. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12279. + # The linker will automatically build a .lib file if we build a DLL.
  12280. + old_archive_from_new_cmds='true'
  12281. + # FIXME: Should let the user specify the lib program.
  12282. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12283. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  12284. + enable_shared_with_static_runtimes=yes
  12285. + ;;
  12286. -# Set to yes if exported symbols are required.
  12287. -always_export_symbols=$always_export_symbols
  12288. + darwin* | rhapsody*)
  12289. -# The commands to list exported symbols.
  12290. -export_symbols_cmds=$lt_export_symbols_cmds
  12291. -# The commands to extract the exported symbol list from a shared archive.
  12292. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12293. + archive_cmds_need_lc=no
  12294. + hardcode_direct=no
  12295. + hardcode_automatic=yes
  12296. + hardcode_shlibpath_var=unsupported
  12297. + whole_archive_flag_spec=''
  12298. + link_all_deplibs=yes
  12299. + allow_undefined_flag="$_lt_dar_allow_undefined"
  12300. + case $cc_basename in
  12301. + ifort*) _lt_dar_can_shared=yes ;;
  12302. + *) _lt_dar_can_shared=$GCC ;;
  12303. + esac
  12304. + if test "$_lt_dar_can_shared" = "yes"; then
  12305. + output_verbose_link_cmd=echo
  12306. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  12307. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  12308. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  12309. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  12310. -# Symbols that should not be listed in the preloaded symbols.
  12311. -exclude_expsyms=$lt_exclude_expsyms
  12312. + else
  12313. + ld_shlibs=no
  12314. + fi
  12315. -# Symbols that must always be exported.
  12316. -include_expsyms=$lt_include_expsyms
  12317. + ;;
  12318. -# ### END LIBTOOL CONFIG
  12319. + dgux*)
  12320. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12321. + hardcode_libdir_flag_spec='-L$libdir'
  12322. + hardcode_shlibpath_var=no
  12323. + ;;
  12324. -__EOF__
  12325. + freebsd1*)
  12326. + ld_shlibs=no
  12327. + ;;
  12328. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12329. + # support. Future versions do this automatically, but an explicit c++rt0.o
  12330. + # does not break anything, and helps significantly (at the cost of a little
  12331. + # extra space).
  12332. + freebsd2.2*)
  12333. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12334. + hardcode_libdir_flag_spec='-R$libdir'
  12335. + hardcode_direct=yes
  12336. + hardcode_shlibpath_var=no
  12337. + ;;
  12338. - case $host_os in
  12339. - aix3*)
  12340. - cat <<\EOF >> "$cfgfile"
  12341. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12342. + freebsd2*)
  12343. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12344. + hardcode_direct=yes
  12345. + hardcode_minus_L=yes
  12346. + hardcode_shlibpath_var=no
  12347. + ;;
  12348. -# AIX sometimes has problems with the GCC collect2 program. For some
  12349. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  12350. -# vanish in a puff of smoke.
  12351. -if test "X${COLLECT_NAMES+set}" != Xset; then
  12352. - COLLECT_NAMES=
  12353. - export COLLECT_NAMES
  12354. -fi
  12355. -EOF
  12356. - ;;
  12357. - esac
  12358. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12359. + freebsd* | dragonfly*)
  12360. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12361. + hardcode_libdir_flag_spec='-R$libdir'
  12362. + hardcode_direct=yes
  12363. + hardcode_shlibpath_var=no
  12364. + ;;
  12365. - # We use sed instead of cat because bash on DJGPP gets confused if
  12366. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12367. - # text mode, it properly converts lines to CR/LF. This bash problem
  12368. - # is reportedly fixed, but why not run on old versions too?
  12369. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  12370. + hpux9*)
  12371. + if test "$GCC" = yes; then
  12372. + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12373. + else
  12374. + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12375. + fi
  12376. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  12377. + hardcode_libdir_separator=:
  12378. + hardcode_direct=yes
  12379. - mv -f "$cfgfile" "$ofile" || \
  12380. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12381. - chmod +x "$ofile"
  12382. + # hardcode_minus_L: Not really in the search PATH,
  12383. + # but as the default location of the library.
  12384. + hardcode_minus_L=yes
  12385. + export_dynamic_flag_spec='${wl}-E'
  12386. + ;;
  12387. -else
  12388. - # If there is no Makefile yet, we rely on a make rule to execute
  12389. - # `config.status --recheck' to rerun these tests and create the
  12390. - # libtool script then.
  12391. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12392. - if test -f "$ltmain_in"; then
  12393. - test -f Makefile && make "$ltmain"
  12394. - fi
  12395. -fi
  12396. + hpux10*)
  12397. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12398. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12399. + else
  12400. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12401. + fi
  12402. + if test "$with_gnu_ld" = no; then
  12403. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  12404. + hardcode_libdir_flag_spec_ld='+b $libdir'
  12405. + hardcode_libdir_separator=:
  12406. + hardcode_direct=yes
  12407. + hardcode_direct_absolute=yes
  12408. + export_dynamic_flag_spec='${wl}-E'
  12409. + # hardcode_minus_L: Not really in the search PATH,
  12410. + # but as the default location of the library.
  12411. + hardcode_minus_L=yes
  12412. + fi
  12413. + ;;
  12414. + hpux11*)
  12415. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12416. + case $host_cpu in
  12417. + hppa*64*)
  12418. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12419. + ;;
  12420. + ia64*)
  12421. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12422. + ;;
  12423. + *)
  12424. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12425. + ;;
  12426. + esac
  12427. + else
  12428. + case $host_cpu in
  12429. + hppa*64*)
  12430. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12431. + ;;
  12432. + ia64*)
  12433. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12434. + ;;
  12435. + *)
  12436. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12437. + ;;
  12438. + esac
  12439. + fi
  12440. + if test "$with_gnu_ld" = no; then
  12441. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  12442. + hardcode_libdir_separator=:
  12443. -ac_ext=c
  12444. -ac_cpp='$CPP $CPPFLAGS'
  12445. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12446. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12447. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12448. + case $host_cpu in
  12449. + hppa*64*|ia64*)
  12450. + hardcode_direct=no
  12451. + hardcode_shlibpath_var=no
  12452. + ;;
  12453. + *)
  12454. + hardcode_direct=yes
  12455. + hardcode_direct_absolute=yes
  12456. + export_dynamic_flag_spec='${wl}-E'
  12457. -CC="$lt_save_CC"
  12458. + # hardcode_minus_L: Not really in the search PATH,
  12459. + # but as the default location of the library.
  12460. + hardcode_minus_L=yes
  12461. + ;;
  12462. + esac
  12463. + fi
  12464. + ;;
  12465. + irix5* | irix6* | nonstopux*)
  12466. + if test "$GCC" = yes; then
  12467. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12468. + # Try to use the -exported_symbol ld option, if it does not
  12469. + # work, assume that -exports_file does not work either and
  12470. + # implicitly export all symbols.
  12471. + save_LDFLAGS="$LDFLAGS"
  12472. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  12473. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12474. +/* end confdefs.h. */
  12475. +int foo(void) {}
  12476. +_ACEOF
  12477. +if ac_fn_c_try_link "$LINENO"; then :
  12478. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  12479. -# Check whether --with-tags was given.
  12480. -if test "${with_tags+set}" = set; then :
  12481. - withval=$with_tags; tagnames="$withval"
  12482. fi
  12483. +rm -f core conftest.err conftest.$ac_objext \
  12484. + conftest$ac_exeext conftest.$ac_ext
  12485. + LDFLAGS="$save_LDFLAGS"
  12486. + else
  12487. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12488. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  12489. + fi
  12490. + archive_cmds_need_lc='no'
  12491. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12492. + hardcode_libdir_separator=:
  12493. + inherit_rpath=yes
  12494. + link_all_deplibs=yes
  12495. + ;;
  12496. + netbsd* | netbsdelf*-gnu)
  12497. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12498. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12499. + else
  12500. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12501. + fi
  12502. + hardcode_libdir_flag_spec='-R$libdir'
  12503. + hardcode_direct=yes
  12504. + hardcode_shlibpath_var=no
  12505. + ;;
  12506. -if test -f "$ltmain" && test -n "$tagnames"; then
  12507. - if test ! -f "${ofile}"; then
  12508. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
  12509. -$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  12510. - fi
  12511. -
  12512. - if test -z "$LTCC"; then
  12513. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  12514. - if test -z "$LTCC"; then
  12515. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  12516. -$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  12517. - else
  12518. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  12519. -$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  12520. - fi
  12521. - fi
  12522. + newsos6)
  12523. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12524. + hardcode_direct=yes
  12525. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12526. + hardcode_libdir_separator=:
  12527. + hardcode_shlibpath_var=no
  12528. + ;;
  12529. - # Extract list of available tagged configurations in $ofile.
  12530. - # Note that this assumes the entire list is on one line.
  12531. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  12532. + *nto* | *qnx*)
  12533. + ;;
  12534. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12535. - for tagname in $tagnames; do
  12536. - IFS="$lt_save_ifs"
  12537. - # Check whether tagname contains only valid characters
  12538. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  12539. - "") ;;
  12540. - *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
  12541. - ;;
  12542. - esac
  12543. + openbsd*)
  12544. + if test -f /usr/libexec/ld.so; then
  12545. + hardcode_direct=yes
  12546. + hardcode_shlibpath_var=no
  12547. + hardcode_direct_absolute=yes
  12548. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12549. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12550. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12551. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12552. + export_dynamic_flag_spec='${wl}-E'
  12553. + else
  12554. + case $host_os in
  12555. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12556. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12557. + hardcode_libdir_flag_spec='-R$libdir'
  12558. + ;;
  12559. + *)
  12560. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12561. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12562. + ;;
  12563. + esac
  12564. + fi
  12565. + else
  12566. + ld_shlibs=no
  12567. + fi
  12568. + ;;
  12569. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  12570. - then
  12571. - as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
  12572. - fi
  12573. + os2*)
  12574. + hardcode_libdir_flag_spec='-L$libdir'
  12575. + hardcode_minus_L=yes
  12576. + allow_undefined_flag=unsupported
  12577. + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12578. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12579. + ;;
  12580. - # Update the list of available tags.
  12581. - if test -n "$tagname"; then
  12582. - echo appending configuration tag \"$tagname\" to $ofile
  12583. -
  12584. - case $tagname in
  12585. - CXX)
  12586. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  12587. - ac_ext=cpp
  12588. -ac_cpp='$CXXCPP $CPPFLAGS'
  12589. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12590. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12591. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12592. + osf3*)
  12593. + if test "$GCC" = yes; then
  12594. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  12595. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12596. + else
  12597. + allow_undefined_flag=' -expect_unresolved \*'
  12598. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12599. + fi
  12600. + archive_cmds_need_lc='no'
  12601. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12602. + hardcode_libdir_separator=:
  12603. + ;;
  12604. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  12605. + if test "$GCC" = yes; then
  12606. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  12607. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12608. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12609. + else
  12610. + allow_undefined_flag=' -expect_unresolved \*'
  12611. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  12612. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  12613. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  12614. + # Both c and cxx compiler support -rpath directly
  12615. + hardcode_libdir_flag_spec='-rpath $libdir'
  12616. + fi
  12617. + archive_cmds_need_lc='no'
  12618. + hardcode_libdir_separator=:
  12619. + ;;
  12620. + solaris*)
  12621. + no_undefined_flag=' -z defs'
  12622. + if test "$GCC" = yes; then
  12623. + wlarc='${wl}'
  12624. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12625. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12626. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12627. + else
  12628. + case `$CC -V 2>&1` in
  12629. + *"Compilers 5.0"*)
  12630. + wlarc=''
  12631. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12632. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12633. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12634. + ;;
  12635. + *)
  12636. + wlarc='${wl}'
  12637. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12638. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12639. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12640. + ;;
  12641. + esac
  12642. + fi
  12643. + hardcode_libdir_flag_spec='-R$libdir'
  12644. + hardcode_shlibpath_var=no
  12645. + case $host_os in
  12646. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  12647. + *)
  12648. + # The compiler driver will combine and reorder linker options,
  12649. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  12650. + # but is careful enough not to reorder.
  12651. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  12652. + if test "$GCC" = yes; then
  12653. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12654. + else
  12655. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  12656. + fi
  12657. + ;;
  12658. + esac
  12659. + link_all_deplibs=yes
  12660. + ;;
  12661. -archive_cmds_need_lc_CXX=no
  12662. -allow_undefined_flag_CXX=
  12663. -always_export_symbols_CXX=no
  12664. -archive_expsym_cmds_CXX=
  12665. -export_dynamic_flag_spec_CXX=
  12666. -hardcode_direct_CXX=no
  12667. -hardcode_libdir_flag_spec_CXX=
  12668. -hardcode_libdir_flag_spec_ld_CXX=
  12669. -hardcode_libdir_separator_CXX=
  12670. -hardcode_minus_L_CXX=no
  12671. -hardcode_automatic_CXX=no
  12672. -module_cmds_CXX=
  12673. -module_expsym_cmds_CXX=
  12674. -link_all_deplibs_CXX=unknown
  12675. -old_archive_cmds_CXX=$old_archive_cmds
  12676. -no_undefined_flag_CXX=
  12677. -whole_archive_flag_spec_CXX=
  12678. -enable_shared_with_static_runtimes_CXX=no
  12679. -
  12680. -# Dependencies to place before and after the object being linked:
  12681. -predep_objects_CXX=
  12682. -postdep_objects_CXX=
  12683. -predeps_CXX=
  12684. -postdeps_CXX=
  12685. -compiler_lib_search_path_CXX=
  12686. + sunos4*)
  12687. + if test "x$host_vendor" = xsequent; then
  12688. + # Use $CC to link under sequent, because it throws in some extra .o
  12689. + # files that make .init and .fini sections work.
  12690. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12691. + else
  12692. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12693. + fi
  12694. + hardcode_libdir_flag_spec='-L$libdir'
  12695. + hardcode_direct=yes
  12696. + hardcode_minus_L=yes
  12697. + hardcode_shlibpath_var=no
  12698. + ;;
  12699. -# Source file extension for C++ test sources.
  12700. -ac_ext=cc
  12701. + sysv4)
  12702. + case $host_vendor in
  12703. + sni)
  12704. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12705. + hardcode_direct=yes # is this really true???
  12706. + ;;
  12707. + siemens)
  12708. + ## LD is ld it makes a PLAMLIB
  12709. + ## CC just makes a GrossModule.
  12710. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12711. + reload_cmds='$CC -r -o $output$reload_objs'
  12712. + hardcode_direct=no
  12713. + ;;
  12714. + motorola)
  12715. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12716. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  12717. + ;;
  12718. + esac
  12719. + runpath_var='LD_RUN_PATH'
  12720. + hardcode_shlibpath_var=no
  12721. + ;;
  12722. -# Object file extension for compiled C++ test sources.
  12723. -objext=o
  12724. -objext_CXX=$objext
  12725. + sysv4.3*)
  12726. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12727. + hardcode_shlibpath_var=no
  12728. + export_dynamic_flag_spec='-Bexport'
  12729. + ;;
  12730. -# Code to be used in simple compile tests
  12731. -lt_simple_compile_test_code="int some_variable = 0;\n"
  12732. + sysv4*MP*)
  12733. + if test -d /usr/nec; then
  12734. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12735. + hardcode_shlibpath_var=no
  12736. + runpath_var=LD_RUN_PATH
  12737. + hardcode_runpath_var=yes
  12738. + ld_shlibs=yes
  12739. + fi
  12740. + ;;
  12741. -# Code to be used in simple link tests
  12742. -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  12743. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12744. + no_undefined_flag='${wl}-z,text'
  12745. + archive_cmds_need_lc=no
  12746. + hardcode_shlibpath_var=no
  12747. + runpath_var='LD_RUN_PATH'
  12748. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12749. + if test "$GCC" = yes; then
  12750. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12751. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12752. + else
  12753. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12754. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12755. + fi
  12756. + ;;
  12757. -# If no C compiler was specified, use CC.
  12758. -LTCC=${LTCC-"$CC"}
  12759. + sysv5* | sco3.2v5* | sco5v6*)
  12760. + # Note: We can NOT use -z defs as we might desire, because we do not
  12761. + # link with -lc, and that would cause any symbols used from libc to
  12762. + # always be unresolved, which means just about no library would
  12763. + # ever link correctly. If we're not using GNU ld we use -z text
  12764. + # though, which does catch some bad symbols but isn't as heavy-handed
  12765. + # as -z defs.
  12766. + no_undefined_flag='${wl}-z,text'
  12767. + allow_undefined_flag='${wl}-z,nodefs'
  12768. + archive_cmds_need_lc=no
  12769. + hardcode_shlibpath_var=no
  12770. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  12771. + hardcode_libdir_separator=':'
  12772. + link_all_deplibs=yes
  12773. + export_dynamic_flag_spec='${wl}-Bexport'
  12774. + runpath_var='LD_RUN_PATH'
  12775. -# Allow CC to be a program name with arguments.
  12776. -compiler=$CC
  12777. + if test "$GCC" = yes; then
  12778. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12779. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12780. + else
  12781. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12782. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12783. + fi
  12784. + ;;
  12785. + uts4*)
  12786. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12787. + hardcode_libdir_flag_spec='-L$libdir'
  12788. + hardcode_shlibpath_var=no
  12789. + ;;
  12790. -# Allow CC to be a program name with arguments.
  12791. -lt_save_CC=$CC
  12792. -lt_save_LD=$LD
  12793. -lt_save_GCC=$GCC
  12794. -GCC=$GXX
  12795. -lt_save_with_gnu_ld=$with_gnu_ld
  12796. -lt_save_path_LD=$lt_cv_path_LD
  12797. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12798. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12799. -else
  12800. - unset lt_cv_prog_gnu_ld
  12801. -fi
  12802. -if test -n "${lt_cv_path_LDCXX+set}"; then
  12803. - lt_cv_path_LD=$lt_cv_path_LDCXX
  12804. -else
  12805. - unset lt_cv_path_LD
  12806. -fi
  12807. -test -z "${LDCXX+set}" || LD=$LDCXX
  12808. -CC=${CXX-"c++"}
  12809. -compiler=$CC
  12810. -compiler_CXX=$CC
  12811. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  12812. + *)
  12813. + ld_shlibs=no
  12814. + ;;
  12815. + esac
  12816. -# We don't want -fno-exception wen compiling C++ code, so set the
  12817. -# no_builtin_flag separately
  12818. -if test "$GXX" = yes; then
  12819. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12820. -else
  12821. - lt_prog_compiler_no_builtin_flag_CXX=
  12822. -fi
  12823. + if test x$host_vendor = xsni; then
  12824. + case $host in
  12825. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12826. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  12827. + ;;
  12828. + esac
  12829. + fi
  12830. + fi
  12831. -if test "$GXX" = yes; then
  12832. - # Set up default GNU C++ configuration
  12833. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  12834. +$as_echo "$ld_shlibs" >&6; }
  12835. +test "$ld_shlibs" = no && can_build_shared=no
  12836. +with_gnu_ld=$with_gnu_ld
  12837. -# Check whether --with-gnu-ld was given.
  12838. -if test "${with_gnu_ld+set}" = set; then :
  12839. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12840. -else
  12841. - with_gnu_ld=no
  12842. -fi
  12843. -ac_prog=ld
  12844. -if test "$GCC" = yes; then
  12845. - # Check if gcc -print-prog-name=ld gives a path.
  12846. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12847. -$as_echo_n "checking for ld used by $CC... " >&6; }
  12848. - case $host in
  12849. - *-*-mingw*)
  12850. - # gcc leaves a trailing carriage return which upsets mingw
  12851. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12852. - *)
  12853. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12854. - esac
  12855. - case $ac_prog in
  12856. - # Accept absolute paths.
  12857. - [\\/]* | ?:[\\/]*)
  12858. - re_direlt='/[^/][^/]*/\.\./'
  12859. - # Canonicalize the pathname of ld
  12860. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  12861. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12862. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  12863. - done
  12864. - test -z "$LD" && LD="$ac_prog"
  12865. - ;;
  12866. - "")
  12867. - # If it fails, then pretend we aren't using GCC.
  12868. - ac_prog=ld
  12869. - ;;
  12870. - *)
  12871. - # If it is relative, then search for the first ld in PATH.
  12872. - with_gnu_ld=unknown
  12873. - ;;
  12874. - esac
  12875. -elif test "$with_gnu_ld" = yes; then
  12876. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12877. -$as_echo_n "checking for GNU ld... " >&6; }
  12878. -else
  12879. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12880. -$as_echo_n "checking for non-GNU ld... " >&6; }
  12881. -fi
  12882. -if test "${lt_cv_path_LD+set}" = set; then :
  12883. - $as_echo_n "(cached) " >&6
  12884. -else
  12885. - if test -z "$LD"; then
  12886. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12887. - for ac_dir in $PATH; do
  12888. - IFS="$lt_save_ifs"
  12889. - test -z "$ac_dir" && ac_dir=.
  12890. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12891. - lt_cv_path_LD="$ac_dir/$ac_prog"
  12892. - # Check to see if the program is GNU ld. I'd rather use --version,
  12893. - # but apparently some GNU ld's only accept -v.
  12894. - # Break only if it was the GNU/non-GNU ld that we prefer.
  12895. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12896. - *GNU* | *'with BFD'*)
  12897. - test "$with_gnu_ld" != no && break
  12898. - ;;
  12899. - *)
  12900. - test "$with_gnu_ld" != yes && break
  12901. - ;;
  12902. - esac
  12903. - fi
  12904. - done
  12905. - IFS="$lt_save_ifs"
  12906. -else
  12907. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12908. -fi
  12909. -fi
  12910. -LD="$lt_cv_path_LD"
  12911. -if test -n "$LD"; then
  12912. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12913. -$as_echo "$LD" >&6; }
  12914. -else
  12915. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12916. -$as_echo "no" >&6; }
  12917. -fi
  12918. -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  12919. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12920. -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12921. -if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  12922. - $as_echo_n "(cached) " >&6
  12923. -else
  12924. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  12925. -case `$LD -v 2>&1 </dev/null` in
  12926. -*GNU* | *'with BFD'*)
  12927. - lt_cv_prog_gnu_ld=yes
  12928. - ;;
  12929. -*)
  12930. - lt_cv_prog_gnu_ld=no
  12931. - ;;
  12932. -esac
  12933. -fi
  12934. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12935. -$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12936. -with_gnu_ld=$lt_cv_prog_gnu_ld
  12937. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12938. - # archiving commands below assume that GNU ld is being used.
  12939. - if test "$with_gnu_ld" = yes; then
  12940. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12941. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12942. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12943. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12944. - # If archive_cmds runs LD, not CC, wlarc should be empty
  12945. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12946. - # investigate it a little bit more. (MM)
  12947. - wlarc='${wl}'
  12948. - # ancient GNU ld didn't support --whole-archive et. al.
  12949. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  12950. - grep 'no-whole-archive' > /dev/null; then
  12951. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12952. - else
  12953. - whole_archive_flag_spec_CXX=
  12954. - fi
  12955. - else
  12956. - with_gnu_ld=no
  12957. - wlarc=
  12958. - # A generic and very simple default shared library creation
  12959. - # command for GNU C++ for the case where it uses the native
  12960. - # linker, instead of GNU ld. If possible, this setting should
  12961. - # overridden to take advantage of the native linker features on
  12962. - # the platform it is being used on.
  12963. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12964. - fi
  12965. - # Commands to make compiler produce verbose output that lists
  12966. - # what "hidden" libraries, object files and flags are used when
  12967. - # linking a shared library.
  12968. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  12969. -else
  12970. - GXX=no
  12971. - with_gnu_ld=no
  12972. - wlarc=
  12973. -fi
  12974. -# PORTME: fill in a description of your system's C++ link characteristics
  12975. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12976. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12977. -ld_shlibs_CXX=yes
  12978. -case $host_os in
  12979. - aix3*)
  12980. - # FIXME: insert proper C++ library support
  12981. - ld_shlibs_CXX=no
  12982. - ;;
  12983. - aix4* | aix5*)
  12984. - if test "$host_cpu" = ia64; then
  12985. - # On IA64, the linker does run time linking by default, so we don't
  12986. - # have to do anything special.
  12987. - aix_use_runtimelinking=no
  12988. - exp_sym_flag='-Bexport'
  12989. - no_entry_flag=""
  12990. - else
  12991. - aix_use_runtimelinking=no
  12992. - # Test if we are trying to use run time linking or normal
  12993. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12994. - # need to do runtime linking.
  12995. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12996. - for ld_flag in $LDFLAGS; do
  12997. - case $ld_flag in
  12998. - *-brtl*)
  12999. - aix_use_runtimelinking=yes
  13000. - break
  13001. - ;;
  13002. - esac
  13003. - done
  13004. - esac
  13005. - exp_sym_flag='-bexport'
  13006. - no_entry_flag='-bnoentry'
  13007. - fi
  13008. +#
  13009. +# Do we need to explicitly link libc?
  13010. +#
  13011. +case "x$archive_cmds_need_lc" in
  13012. +x|xyes)
  13013. + # Assume -lc should be added
  13014. + archive_cmds_need_lc=yes
  13015. - # When large executables or shared objects are built, AIX ld can
  13016. - # have problems creating the table of contents. If linking a library
  13017. - # or program results in "error TOC overflow" add -mminimal-toc to
  13018. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13019. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13020. -
  13021. - archive_cmds_CXX=''
  13022. - hardcode_direct_CXX=yes
  13023. - hardcode_libdir_separator_CXX=':'
  13024. - link_all_deplibs_CXX=yes
  13025. -
  13026. - if test "$GXX" = yes; then
  13027. - case $host_os in aix4.012|aix4.012.*)
  13028. - # We only want to do this on AIX 4.2 and lower, the check
  13029. - # below for broken collect2 doesn't work under 4.3+
  13030. - collect2name=`${CC} -print-prog-name=collect2`
  13031. - if test -f "$collect2name" && \
  13032. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  13033. - then
  13034. - # We have reworked collect2
  13035. - hardcode_direct_CXX=yes
  13036. - else
  13037. - # We have old collect2
  13038. - hardcode_direct_CXX=unsupported
  13039. - # It fails to find uninstalled libraries when the uninstalled
  13040. - # path is not listed in the libpath. Setting hardcode_minus_L
  13041. - # to unsupported forces relinking
  13042. - hardcode_minus_L_CXX=yes
  13043. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  13044. - hardcode_libdir_separator_CXX=
  13045. - fi
  13046. - esac
  13047. - shared_flag='-shared'
  13048. - else
  13049. - # not using gcc
  13050. - if test "$host_cpu" = ia64; then
  13051. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13052. - # chokes on -Wl,-G. The following line is correct:
  13053. - shared_flag='-G'
  13054. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  13055. + case $archive_cmds in
  13056. + *'~'*)
  13057. + # FIXME: we may have to deal with multi-command sequences.
  13058. + ;;
  13059. + '$CC '*)
  13060. + # Test whether the compiler implicitly links with -lc since on some
  13061. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13062. + # to ld, don't add -lc before -lgcc.
  13063. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13064. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13065. + $RM conftest*
  13066. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13067. +
  13068. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13069. + (eval $ac_compile) 2>&5
  13070. + ac_status=$?
  13071. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13072. + test $ac_status = 0; } 2>conftest.err; then
  13073. + soname=conftest
  13074. + lib=conftest
  13075. + libobjs=conftest.$ac_objext
  13076. + deplibs=
  13077. + wl=$lt_prog_compiler_wl
  13078. + pic_flag=$lt_prog_compiler_pic
  13079. + compiler_flags=-v
  13080. + linker_flags=-v
  13081. + verstring=
  13082. + output_objdir=.
  13083. + libname=conftest
  13084. + lt_save_allow_undefined_flag=$allow_undefined_flag
  13085. + allow_undefined_flag=
  13086. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13087. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13088. + ac_status=$?
  13089. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13090. + test $ac_status = 0; }
  13091. + then
  13092. + archive_cmds_need_lc=no
  13093. + else
  13094. + archive_cmds_need_lc=yes
  13095. + fi
  13096. + allow_undefined_flag=$lt_save_allow_undefined_flag
  13097. else
  13098. - if test "$aix_use_runtimelinking" = yes; then
  13099. - shared_flag='${wl}-G'
  13100. - else
  13101. - shared_flag='${wl}-bM:SRE'
  13102. - fi
  13103. + cat conftest.err 1>&5
  13104. fi
  13105. - fi
  13106. + $RM conftest*
  13107. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  13108. +$as_echo "$archive_cmds_need_lc" >&6; }
  13109. + ;;
  13110. + esac
  13111. + fi
  13112. + ;;
  13113. +esac
  13114. - # It seems that -bexpall does not export symbols beginning with
  13115. - # underscore (_), so it is better to generate a list of symbols to export.
  13116. - always_export_symbols_CXX=yes
  13117. - if test "$aix_use_runtimelinking" = yes; then
  13118. - # Warning - without using the other runtime loading flags (-brtl),
  13119. - # -berok will link without error, but may produce a broken library.
  13120. - allow_undefined_flag_CXX='-berok'
  13121. - # Determine the default libpath from the value encoded in an empty executable.
  13122. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13123. -/* end confdefs.h. */
  13124. -int
  13125. -main ()
  13126. -{
  13127. - ;
  13128. - return 0;
  13129. -}
  13130. -_ACEOF
  13131. -if ac_fn_cxx_try_link "$LINENO"; then :
  13132. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13133. -}'`
  13134. -# Check for a 64-bit object if we didn't find anything.
  13135. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13136. -}'`; fi
  13137. -fi
  13138. -rm -f core conftest.err conftest.$ac_objext \
  13139. - conftest$ac_exeext conftest.$ac_ext
  13140. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13141. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13142. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13143. - else
  13144. - if test "$host_cpu" = ia64; then
  13145. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  13146. - allow_undefined_flag_CXX="-z nodefs"
  13147. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  13148. - else
  13149. - # Determine the default libpath from the value encoded in an empty executable.
  13150. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13151. -/* end confdefs.h. */
  13152. -int
  13153. -main ()
  13154. -{
  13155. - ;
  13156. - return 0;
  13157. -}
  13158. -_ACEOF
  13159. -if ac_fn_cxx_try_link "$LINENO"; then :
  13160. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13161. -}'`
  13162. -# Check for a 64-bit object if we didn't find anything.
  13163. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13164. -}'`; fi
  13165. -fi
  13166. -rm -f core conftest.err conftest.$ac_objext \
  13167. - conftest$ac_exeext conftest.$ac_ext
  13168. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13169. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  13170. - # Warning - without using the other run time loading flags,
  13171. - # -berok will link without error, but may produce a broken library.
  13172. - no_undefined_flag_CXX=' ${wl}-bernotok'
  13173. - allow_undefined_flag_CXX=' ${wl}-berok'
  13174. - # -bexpall does not export symbols beginning with underscore (_)
  13175. - always_export_symbols_CXX=yes
  13176. - # Exported symbols can be pulled into shared objects from archives
  13177. - whole_archive_flag_spec_CXX=' '
  13178. - archive_cmds_need_lc_CXX=yes
  13179. - # This is similar to how AIX traditionally builds it's shared libraries.
  13180. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13181. - fi
  13182. - fi
  13183. - ;;
  13184. - chorus*)
  13185. - case $cc_basename in
  13186. - *)
  13187. - # FIXME: insert proper C++ library support
  13188. - ld_shlibs_CXX=no
  13189. - ;;
  13190. - esac
  13191. - ;;
  13192. - cygwin* | mingw* | pw32*)
  13193. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13194. - # as there is no search path for DLLs.
  13195. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  13196. - allow_undefined_flag_CXX=unsupported
  13197. - always_export_symbols_CXX=no
  13198. - enable_shared_with_static_runtimes_CXX=yes
  13199. -
  13200. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13201. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13202. - # If the export-symbols file already is a .def file (1st line
  13203. - # is EXPORTS), use it as is; otherwise, prepend...
  13204. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13205. - cp $export_symbols $output_objdir/$soname.def;
  13206. - else
  13207. - echo EXPORTS > $output_objdir/$soname.def;
  13208. - cat $export_symbols >> $output_objdir/$soname.def;
  13209. - fi~
  13210. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  13211. - else
  13212. - ld_shlibs_CXX=no
  13213. - fi
  13214. - ;;
  13215. - darwin* | rhapsody*)
  13216. - if test "$GXX" = yes; then
  13217. - archive_cmds_need_lc_CXX=no
  13218. - case "$host_os" in
  13219. - rhapsody* | darwin1.[012])
  13220. - allow_undefined_flag_CXX='-undefined suppress'
  13221. - ;;
  13222. - *) # Darwin 1.3 on
  13223. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13224. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  13225. - else
  13226. - case ${MACOSX_DEPLOYMENT_TARGET} in
  13227. - 10.[012])
  13228. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  13229. - ;;
  13230. - 10.*)
  13231. - allow_undefined_flag_CXX='-undefined dynamic_lookup'
  13232. - ;;
  13233. - esac
  13234. - fi
  13235. - ;;
  13236. - esac
  13237. - lt_int_apple_cc_single_mod=no
  13238. - output_verbose_link_cmd='echo'
  13239. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  13240. - lt_int_apple_cc_single_mod=yes
  13241. - fi
  13242. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  13243. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13244. - else
  13245. - archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13246. - fi
  13247. - module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13248. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  13249. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  13250. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13251. - else
  13252. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13253. - fi
  13254. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13255. - hardcode_direct_CXX=no
  13256. - hardcode_automatic_CXX=yes
  13257. - hardcode_shlibpath_var_CXX=unsupported
  13258. - whole_archive_flag_spec_CXX='-all_load $convenience'
  13259. - link_all_deplibs_CXX=yes
  13260. - else
  13261. - ld_shlibs_CXX=no
  13262. - fi
  13263. - ;;
  13264. - dgux*)
  13265. - case $cc_basename in
  13266. - ec++)
  13267. - # FIXME: insert proper C++ library support
  13268. - ld_shlibs_CXX=no
  13269. - ;;
  13270. - ghcx)
  13271. - # Green Hills C++ Compiler
  13272. - # FIXME: insert proper C++ library support
  13273. - ld_shlibs_CXX=no
  13274. - ;;
  13275. - *)
  13276. - # FIXME: insert proper C++ library support
  13277. - ld_shlibs_CXX=no
  13278. - ;;
  13279. - esac
  13280. - ;;
  13281. - freebsd12*)
  13282. - # C++ shared libraries reported to be fairly broken before switch to ELF
  13283. - ld_shlibs_CXX=no
  13284. - ;;
  13285. - freebsd-elf*)
  13286. - archive_cmds_need_lc_CXX=no
  13287. - ;;
  13288. - freebsd* | kfreebsd*-gnu)
  13289. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13290. - # conventions
  13291. - ld_shlibs_CXX=yes
  13292. - ;;
  13293. - gnu*)
  13294. - ;;
  13295. - hpux9*)
  13296. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13297. - hardcode_libdir_separator_CXX=:
  13298. - export_dynamic_flag_spec_CXX='${wl}-E'
  13299. - hardcode_direct_CXX=yes
  13300. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  13301. - # but as the default
  13302. - # location of the library.
  13303. -
  13304. - case $cc_basename in
  13305. - CC)
  13306. - # FIXME: insert proper C++ library support
  13307. - ld_shlibs_CXX=no
  13308. - ;;
  13309. - aCC)
  13310. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13311. - # Commands to make compiler produce verbose output that lists
  13312. - # what "hidden" libraries, object files and flags are used when
  13313. - # linking a shared library.
  13314. - #
  13315. - # There doesn't appear to be a way to prevent this compiler from
  13316. - # explicitly linking system object files so we need to strip them
  13317. - # from the output so that they don't get included in the library
  13318. - # dependencies.
  13319. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13320. - ;;
  13321. - *)
  13322. - if test "$GXX" = yes; then
  13323. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13324. - else
  13325. - # FIXME: insert proper C++ library support
  13326. - ld_shlibs_CXX=no
  13327. - fi
  13328. - ;;
  13329. - esac
  13330. - ;;
  13331. - hpux10*|hpux11*)
  13332. - if test $with_gnu_ld = no; then
  13333. - case "$host_cpu" in
  13334. - hppa*64*)
  13335. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13336. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  13337. - hardcode_libdir_separator_CXX=:
  13338. - ;;
  13339. - ia64*)
  13340. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  13341. - ;;
  13342. - *)
  13343. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  13344. - hardcode_libdir_separator_CXX=:
  13345. - export_dynamic_flag_spec_CXX='${wl}-E'
  13346. - ;;
  13347. - esac
  13348. - fi
  13349. - case "$host_cpu" in
  13350. - hppa*64*)
  13351. - hardcode_direct_CXX=no
  13352. - hardcode_shlibpath_var_CXX=no
  13353. - ;;
  13354. - ia64*)
  13355. - hardcode_direct_CXX=no
  13356. - hardcode_shlibpath_var_CXX=no
  13357. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  13358. - # but as the default
  13359. - # location of the library.
  13360. - ;;
  13361. - *)
  13362. - hardcode_direct_CXX=yes
  13363. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  13364. - # but as the default
  13365. - # location of the library.
  13366. - ;;
  13367. - esac
  13368. - case $cc_basename in
  13369. - CC)
  13370. - # FIXME: insert proper C++ library support
  13371. - ld_shlibs_CXX=no
  13372. - ;;
  13373. - aCC)
  13374. - case "$host_cpu" in
  13375. - hppa*64*|ia64*)
  13376. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  13377. - ;;
  13378. - *)
  13379. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13380. - ;;
  13381. - esac
  13382. - # Commands to make compiler produce verbose output that lists
  13383. - # what "hidden" libraries, object files and flags are used when
  13384. - # linking a shared library.
  13385. - #
  13386. - # There doesn't appear to be a way to prevent this compiler from
  13387. - # explicitly linking system object files so we need to strip them
  13388. - # from the output so that they don't get included in the library
  13389. - # dependencies.
  13390. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13391. - ;;
  13392. - *)
  13393. - if test "$GXX" = yes; then
  13394. - if test $with_gnu_ld = no; then
  13395. - case "$host_cpu" in
  13396. - ia64*|hppa*64*)
  13397. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  13398. - ;;
  13399. - *)
  13400. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13401. - ;;
  13402. - esac
  13403. - fi
  13404. - else
  13405. - # FIXME: insert proper C++ library support
  13406. - ld_shlibs_CXX=no
  13407. - fi
  13408. - ;;
  13409. - esac
  13410. - ;;
  13411. - irix5* | irix6*)
  13412. - case $cc_basename in
  13413. - CC)
  13414. - # SGI C++
  13415. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  13416. -
  13417. - # Archives containing C++ object files must be created using
  13418. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13419. - # necessary to make sure instantiated templates are included
  13420. - # in the archive.
  13421. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13422. - ;;
  13423. - *)
  13424. - if test "$GXX" = yes; then
  13425. - if test "$with_gnu_ld" = no; then
  13426. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  13427. - else
  13428. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  13429. - fi
  13430. - fi
  13431. - link_all_deplibs_CXX=yes
  13432. - ;;
  13433. - esac
  13434. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13435. - hardcode_libdir_separator_CXX=:
  13436. - ;;
  13437. - linux*)
  13438. - case $cc_basename in
  13439. - KCC)
  13440. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  13441. -
  13442. - # KCC will only create a shared library if the output file
  13443. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13444. - # to its proper name (with version) after linking.
  13445. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13446. - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  13447. - # Commands to make compiler produce verbose output that lists
  13448. - # what "hidden" libraries, object files and flags are used when
  13449. - # linking a shared library.
  13450. - #
  13451. - # There doesn't appear to be a way to prevent this compiler from
  13452. - # explicitly linking system object files so we need to strip them
  13453. - # from the output so that they don't get included in the library
  13454. - # dependencies.
  13455. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13456. -
  13457. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  13458. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13459. -
  13460. - # Archives containing C++ object files must be created using
  13461. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13462. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13463. - ;;
  13464. - icpc)
  13465. - # Intel C++
  13466. - with_gnu_ld=yes
  13467. - archive_cmds_need_lc_CXX=no
  13468. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13469. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13470. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13471. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  13472. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13473. - ;;
  13474. - cxx)
  13475. - # Compaq C++
  13476. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13477. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  13478. - runpath_var=LD_RUN_PATH
  13479. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13480. - hardcode_libdir_separator_CXX=:
  13481. - # Commands to make compiler produce verbose output that lists
  13482. - # what "hidden" libraries, object files and flags are used when
  13483. - # linking a shared library.
  13484. - #
  13485. - # There doesn't appear to be a way to prevent this compiler from
  13486. - # explicitly linking system object files so we need to strip them
  13487. - # from the output so that they don't get included in the library
  13488. - # dependencies.
  13489. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13490. - ;;
  13491. - esac
  13492. - ;;
  13493. - lynxos*)
  13494. - # FIXME: insert proper C++ library support
  13495. - ld_shlibs_CXX=no
  13496. - ;;
  13497. - m88k*)
  13498. - # FIXME: insert proper C++ library support
  13499. - ld_shlibs_CXX=no
  13500. - ;;
  13501. - mvs*)
  13502. - case $cc_basename in
  13503. - cxx)
  13504. - # FIXME: insert proper C++ library support
  13505. - ld_shlibs_CXX=no
  13506. - ;;
  13507. - *)
  13508. - # FIXME: insert proper C++ library support
  13509. - ld_shlibs_CXX=no
  13510. - ;;
  13511. - esac
  13512. - ;;
  13513. - netbsd* | knetbsd*-gnu)
  13514. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13515. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13516. - wlarc=
  13517. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  13518. - hardcode_direct_CXX=yes
  13519. - hardcode_shlibpath_var_CXX=no
  13520. - fi
  13521. - # Workaround some broken pre-1.5 toolchains
  13522. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13523. - ;;
  13524. - osf3*)
  13525. - case $cc_basename in
  13526. - KCC)
  13527. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  13528. -
  13529. - # KCC will only create a shared library if the output file
  13530. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13531. - # to its proper name (with version) after linking.
  13532. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13533. -
  13534. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13535. - hardcode_libdir_separator_CXX=:
  13536. -
  13537. - # Archives containing C++ object files must be created using
  13538. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13539. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13540. - ;;
  13541. - RCC)
  13542. - # Rational C++ 2.4.1
  13543. - # FIXME: insert proper C++ library support
  13544. - ld_shlibs_CXX=no
  13545. - ;;
  13546. - cxx)
  13547. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13548. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  13549. -
  13550. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13551. - hardcode_libdir_separator_CXX=:
  13552. -
  13553. - # Commands to make compiler produce verbose output that lists
  13554. - # what "hidden" libraries, object files and flags are used when
  13555. - # linking a shared library.
  13556. - #
  13557. - # There doesn't appear to be a way to prevent this compiler from
  13558. - # explicitly linking system object files so we need to strip them
  13559. - # from the output so that they don't get included in the library
  13560. - # dependencies.
  13561. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13562. - ;;
  13563. - *)
  13564. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13565. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13566. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  13567. -
  13568. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13569. - hardcode_libdir_separator_CXX=:
  13570. -
  13571. - # Commands to make compiler produce verbose output that lists
  13572. - # what "hidden" libraries, object files and flags are used when
  13573. - # linking a shared library.
  13574. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  13575. - else
  13576. - # FIXME: insert proper C++ library support
  13577. - ld_shlibs_CXX=no
  13578. - fi
  13579. - ;;
  13580. - esac
  13581. - ;;
  13582. - osf4* | osf5*)
  13583. - case $cc_basename in
  13584. - KCC)
  13585. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  13586. -
  13587. - # KCC will only create a shared library if the output file
  13588. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13589. - # to its proper name (with version) after linking.
  13590. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  13591. -
  13592. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  13593. - hardcode_libdir_separator_CXX=:
  13594. -
  13595. - # Archives containing C++ object files must be created using
  13596. - # the KAI C++ compiler.
  13597. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  13598. - ;;
  13599. - RCC)
  13600. - # Rational C++ 2.4.1
  13601. - # FIXME: insert proper C++ library support
  13602. - ld_shlibs_CXX=no
  13603. - ;;
  13604. - cxx)
  13605. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  13606. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  13607. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13608. - echo "-hidden">> $lib.exp~
  13609. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  13610. - $rm $lib.exp'
  13611. -
  13612. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13613. - hardcode_libdir_separator_CXX=:
  13614. -
  13615. - # Commands to make compiler produce verbose output that lists
  13616. - # what "hidden" libraries, object files and flags are used when
  13617. - # linking a shared library.
  13618. - #
  13619. - # There doesn't appear to be a way to prevent this compiler from
  13620. - # explicitly linking system object files so we need to strip them
  13621. - # from the output so that they don't get included in the library
  13622. - # dependencies.
  13623. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13624. - ;;
  13625. - *)
  13626. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13627. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  13628. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  13629. -
  13630. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  13631. - hardcode_libdir_separator_CXX=:
  13632. -
  13633. - # Commands to make compiler produce verbose output that lists
  13634. - # what "hidden" libraries, object files and flags are used when
  13635. - # linking a shared library.
  13636. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  13637. - else
  13638. - # FIXME: insert proper C++ library support
  13639. - ld_shlibs_CXX=no
  13640. - fi
  13641. - ;;
  13642. - esac
  13643. - ;;
  13644. - psos*)
  13645. - # FIXME: insert proper C++ library support
  13646. - ld_shlibs_CXX=no
  13647. - ;;
  13648. - sco*)
  13649. - archive_cmds_need_lc_CXX=no
  13650. - case $cc_basename in
  13651. - CC)
  13652. - # FIXME: insert proper C++ library support
  13653. - ld_shlibs_CXX=no
  13654. - ;;
  13655. - *)
  13656. - # FIXME: insert proper C++ library support
  13657. - ld_shlibs_CXX=no
  13658. - ;;
  13659. - esac
  13660. - ;;
  13661. - sunos4*)
  13662. - case $cc_basename in
  13663. - CC)
  13664. - # Sun C++ 4.x
  13665. - # FIXME: insert proper C++ library support
  13666. - ld_shlibs_CXX=no
  13667. - ;;
  13668. - lcc)
  13669. - # Lucid
  13670. - # FIXME: insert proper C++ library support
  13671. - ld_shlibs_CXX=no
  13672. - ;;
  13673. - *)
  13674. - # FIXME: insert proper C++ library support
  13675. - ld_shlibs_CXX=no
  13676. - ;;
  13677. - esac
  13678. - ;;
  13679. - solaris*)
  13680. - case $cc_basename in
  13681. - CC)
  13682. - # Sun C++ 4.2, 5.x and Centerline C++
  13683. - no_undefined_flag_CXX=' -zdefs'
  13684. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13685. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13686. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  13687. -
  13688. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  13689. - hardcode_shlibpath_var_CXX=no
  13690. - case $host_os in
  13691. - solaris2.0-5 | solaris2.0-5.*) ;;
  13692. - *)
  13693. - # The C++ compiler is used as linker so we must use $wl
  13694. - # flag to pass the commands to the underlying system
  13695. - # linker.
  13696. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  13697. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13698. - ;;
  13699. - esac
  13700. - link_all_deplibs_CXX=yes
  13701. - # Commands to make compiler produce verbose output that lists
  13702. - # what "hidden" libraries, object files and flags are used when
  13703. - # linking a shared library.
  13704. - #
  13705. - # There doesn't appear to be a way to prevent this compiler from
  13706. - # explicitly linking system object files so we need to strip them
  13707. - # from the output so that they don't get included in the library
  13708. - # dependencies.
  13709. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  13710. -
  13711. - # Archives containing C++ object files must be created using
  13712. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13713. - # necessary to make sure instantiated templates are included
  13714. - # in the archive.
  13715. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13716. - ;;
  13717. - gcx)
  13718. - # Green Hills C++ Compiler
  13719. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13720. - # The C++ compiler must be used to create the archive.
  13721. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13722. - ;;
  13723. - *)
  13724. - # GNU C++ compiler with Solaris linker
  13725. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  13726. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  13727. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  13728. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13729. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13730. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  13731. -
  13732. - # Commands to make compiler produce verbose output that lists
  13733. - # what "hidden" libraries, object files and flags are used when
  13734. - # linking a shared library.
  13735. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  13736. - else
  13737. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  13738. - # platform.
  13739. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  13740. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13741. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  13742. -
  13743. - # Commands to make compiler produce verbose output that lists
  13744. - # what "hidden" libraries, object files and flags are used when
  13745. - # linking a shared library.
  13746. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  13747. - fi
  13748. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  13749. - fi
  13750. - ;;
  13751. - esac
  13752. - ;;
  13753. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  13754. - archive_cmds_need_lc_CXX=no
  13755. - ;;
  13756. - tandem*)
  13757. - case $cc_basename in
  13758. - NCC)
  13759. - # NonStop-UX NCC 3.20
  13760. - # FIXME: insert proper C++ library support
  13761. - ld_shlibs_CXX=no
  13762. - ;;
  13763. - *)
  13764. - # FIXME: insert proper C++ library support
  13765. - ld_shlibs_CXX=no
  13766. - ;;
  13767. - esac
  13768. - ;;
  13769. - vxworks*)
  13770. - # FIXME: insert proper C++ library support
  13771. - ld_shlibs_CXX=no
  13772. - ;;
  13773. - *)
  13774. - # FIXME: insert proper C++ library support
  13775. - ld_shlibs_CXX=no
  13776. - ;;
  13777. -esac
  13778. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13779. -$as_echo "$ld_shlibs_CXX" >&6; }
  13780. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  13781. -GCC_CXX="$GXX"
  13782. -LD_CXX="$LD"
  13783. -## CAVEAT EMPTOR:
  13784. -## There is no encapsulation within the following macros, do not change
  13785. -## the running order or otherwise move them around unless you know exactly
  13786. -## what you are doing...
  13787. -cat > conftest.$ac_ext <<EOF
  13788. -class Foo
  13789. -{
  13790. -public:
  13791. - Foo (void) { a = 0; }
  13792. -private:
  13793. - int a;
  13794. -};
  13795. -EOF
  13796. -if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13797. - (eval $ac_compile) 2>&5
  13798. - ac_status=$?
  13799. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13800. - test $ac_status = 0; }; then
  13801. - # Parse the compiler output and extract the necessary
  13802. - # objects, libraries and library flags.
  13803. - # Sentinel used to keep track of whether or not we are before
  13804. - # the conftest object file.
  13805. - pre_test_object_deps_done=no
  13806. -
  13807. - # The `*' in the case matches for architectures that use `case' in
  13808. - # $output_verbose_cmd can trigger glob expansion during the loop
  13809. - # eval without this substitution.
  13810. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  13811. -
  13812. - for p in `eval $output_verbose_link_cmd`; do
  13813. - case $p in
  13814. -
  13815. - -L* | -R* | -l*)
  13816. - # Some compilers place space between "-{L,R}" and the path.
  13817. - # Remove the space.
  13818. - if test $p = "-L" \
  13819. - || test $p = "-R"; then
  13820. - prev=$p
  13821. - continue
  13822. - else
  13823. - prev=
  13824. - fi
  13825. - if test "$pre_test_object_deps_done" = no; then
  13826. - case $p in
  13827. - -L* | -R*)
  13828. - # Internal compiler library paths should come after those
  13829. - # provided the user. The postdeps already come after the
  13830. - # user supplied libs so there is no need to process them.
  13831. - if test -z "$compiler_lib_search_path_CXX"; then
  13832. - compiler_lib_search_path_CXX="${prev}${p}"
  13833. - else
  13834. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  13835. - fi
  13836. - ;;
  13837. - # The "-l" case would never come before the object being
  13838. - # linked, so don't bother handling this case.
  13839. - esac
  13840. - else
  13841. - if test -z "$postdeps_CXX"; then
  13842. - postdeps_CXX="${prev}${p}"
  13843. - else
  13844. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  13845. - fi
  13846. - fi
  13847. - ;;
  13848. - *.$objext)
  13849. - # This assumes that the test object file only shows up
  13850. - # once in the compiler output.
  13851. - if test "$p" = "conftest.$objext"; then
  13852. - pre_test_object_deps_done=yes
  13853. - continue
  13854. - fi
  13855. - if test "$pre_test_object_deps_done" = no; then
  13856. - if test -z "$predep_objects_CXX"; then
  13857. - predep_objects_CXX="$p"
  13858. - else
  13859. - predep_objects_CXX="$predep_objects_CXX $p"
  13860. - fi
  13861. - else
  13862. - if test -z "$postdep_objects_CXX"; then
  13863. - postdep_objects_CXX="$p"
  13864. - else
  13865. - postdep_objects_CXX="$postdep_objects_CXX $p"
  13866. - fi
  13867. - fi
  13868. - ;;
  13869. - *) ;; # Ignore the rest.
  13870. - esac
  13871. - done
  13872. - # Clean up.
  13873. - rm -f a.out a.exe
  13874. -else
  13875. - echo "libtool.m4: error: problem compiling CXX test program"
  13876. -fi
  13877. -$rm -f confest.$objext
  13878. -case " $postdeps_CXX " in
  13879. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13880. -esac
  13881. -lt_prog_compiler_wl_CXX=
  13882. -lt_prog_compiler_pic_CXX=
  13883. -lt_prog_compiler_static_CXX=
  13884. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  13885. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  13886. - # C++ specific cases for pic, static, wl, etc.
  13887. - if test "$GXX" = yes; then
  13888. - lt_prog_compiler_wl_CXX='-Wl,'
  13889. - lt_prog_compiler_static_CXX='-static'
  13890. - case $host_os in
  13891. - aix*)
  13892. - # All AIX code is PIC.
  13893. - if test "$host_cpu" = ia64; then
  13894. - # AIX 5 now supports IA64 processor
  13895. - lt_prog_compiler_static_CXX='-Bstatic'
  13896. - fi
  13897. - ;;
  13898. - amigaos*)
  13899. - # FIXME: we need at least 68020 code to build shared libraries, but
  13900. - # adding the `-m68020' flag to GCC prevents building anything better,
  13901. - # like `-m68040'.
  13902. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13903. - ;;
  13904. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13905. - # PIC is the default for these OSes.
  13906. - ;;
  13907. - mingw* | os2* | pw32*)
  13908. - # This hack is so that the source file can tell whether it is being
  13909. - # built for inclusion in a dll (and should export symbols for example).
  13910. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13911. - ;;
  13912. - darwin* | rhapsody*)
  13913. - # PIC is the default on this platform
  13914. - # Common symbols not allowed in MH_DYLIB files
  13915. - lt_prog_compiler_pic_CXX='-fno-common'
  13916. - ;;
  13917. - *djgpp*)
  13918. - # DJGPP does not support shared libraries at all
  13919. - lt_prog_compiler_pic_CXX=
  13920. - ;;
  13921. - sysv4*MP*)
  13922. - if test -d /usr/nec; then
  13923. - lt_prog_compiler_pic_CXX=-Kconform_pic
  13924. - fi
  13925. - ;;
  13926. - hpux*)
  13927. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13928. - # not for PA HP-UX.
  13929. - case "$host_cpu" in
  13930. - hppa*64*|ia64*)
  13931. - ;;
  13932. - *)
  13933. - lt_prog_compiler_pic_CXX='-fPIC'
  13934. - ;;
  13935. - esac
  13936. - ;;
  13937. - *)
  13938. - lt_prog_compiler_pic_CXX='-fPIC'
  13939. - ;;
  13940. - esac
  13941. - else
  13942. - case $host_os in
  13943. - aix4* | aix5*)
  13944. - # All AIX code is PIC.
  13945. - if test "$host_cpu" = ia64; then
  13946. - # AIX 5 now supports IA64 processor
  13947. - lt_prog_compiler_static_CXX='-Bstatic'
  13948. - else
  13949. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13950. - fi
  13951. - ;;
  13952. - chorus*)
  13953. - case $cc_basename in
  13954. - cxch68)
  13955. - # Green Hills C++ Compiler
  13956. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  13957. - ;;
  13958. - esac
  13959. - ;;
  13960. - dgux*)
  13961. - case $cc_basename in
  13962. - ec++)
  13963. - lt_prog_compiler_pic_CXX='-KPIC'
  13964. - ;;
  13965. - ghcx)
  13966. - # Green Hills C++ Compiler
  13967. - lt_prog_compiler_pic_CXX='-pic'
  13968. - ;;
  13969. - *)
  13970. - ;;
  13971. - esac
  13972. - ;;
  13973. - freebsd* | kfreebsd*-gnu)
  13974. - # FreeBSD uses GNU C++
  13975. - ;;
  13976. - hpux9* | hpux10* | hpux11*)
  13977. - case $cc_basename in
  13978. - CC)
  13979. - lt_prog_compiler_wl_CXX='-Wl,'
  13980. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  13981. - if test "$host_cpu" != ia64; then
  13982. - lt_prog_compiler_pic_CXX='+Z'
  13983. - fi
  13984. - ;;
  13985. - aCC)
  13986. - lt_prog_compiler_wl_CXX='-Wl,'
  13987. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  13988. - case "$host_cpu" in
  13989. - hppa*64*|ia64*)
  13990. - # +Z the default
  13991. - ;;
  13992. - *)
  13993. - lt_prog_compiler_pic_CXX='+Z'
  13994. - ;;
  13995. - esac
  13996. - ;;
  13997. - *)
  13998. - ;;
  13999. - esac
  14000. - ;;
  14001. - irix5* | irix6* | nonstopux*)
  14002. - case $cc_basename in
  14003. - CC)
  14004. - lt_prog_compiler_wl_CXX='-Wl,'
  14005. - lt_prog_compiler_static_CXX='-non_shared'
  14006. - # CC pic flag -KPIC is the default.
  14007. - ;;
  14008. - *)
  14009. - ;;
  14010. - esac
  14011. - ;;
  14012. - linux*)
  14013. - case $cc_basename in
  14014. - KCC)
  14015. - # KAI C++ Compiler
  14016. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  14017. - lt_prog_compiler_pic_CXX='-fPIC'
  14018. - ;;
  14019. - icpc)
  14020. - # Intel C++
  14021. - lt_prog_compiler_wl_CXX='-Wl,'
  14022. - lt_prog_compiler_pic_CXX='-KPIC'
  14023. - lt_prog_compiler_static_CXX='-static'
  14024. - ;;
  14025. - cxx)
  14026. - # Compaq C++
  14027. - # Make sure the PIC flag is empty. It appears that all Alpha
  14028. - # Linux and Compaq Tru64 Unix objects are PIC.
  14029. - lt_prog_compiler_pic_CXX=
  14030. - lt_prog_compiler_static_CXX='-non_shared'
  14031. - ;;
  14032. - *)
  14033. - ;;
  14034. - esac
  14035. - ;;
  14036. - lynxos*)
  14037. - ;;
  14038. - m88k*)
  14039. - ;;
  14040. - mvs*)
  14041. - case $cc_basename in
  14042. - cxx)
  14043. - lt_prog_compiler_pic_CXX='-W c,exportall'
  14044. - ;;
  14045. - *)
  14046. - ;;
  14047. - esac
  14048. - ;;
  14049. - netbsd* | knetbsd*-gnu)
  14050. - ;;
  14051. - osf3* | osf4* | osf5*)
  14052. - case $cc_basename in
  14053. - KCC)
  14054. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  14055. - ;;
  14056. - RCC)
  14057. - # Rational C++ 2.4.1
  14058. - lt_prog_compiler_pic_CXX='-pic'
  14059. - ;;
  14060. - cxx)
  14061. - # Digital/Compaq C++
  14062. - lt_prog_compiler_wl_CXX='-Wl,'
  14063. - # Make sure the PIC flag is empty. It appears that all Alpha
  14064. - # Linux and Compaq Tru64 Unix objects are PIC.
  14065. - lt_prog_compiler_pic_CXX=
  14066. - lt_prog_compiler_static_CXX='-non_shared'
  14067. - ;;
  14068. - *)
  14069. - ;;
  14070. - esac
  14071. - ;;
  14072. - psos*)
  14073. - ;;
  14074. - sco*)
  14075. - case $cc_basename in
  14076. - CC)
  14077. - lt_prog_compiler_pic_CXX='-fPIC'
  14078. - ;;
  14079. - *)
  14080. - ;;
  14081. - esac
  14082. - ;;
  14083. - solaris*)
  14084. - case $cc_basename in
  14085. - CC)
  14086. - # Sun C++ 4.2, 5.x and Centerline C++
  14087. - lt_prog_compiler_pic_CXX='-KPIC'
  14088. - lt_prog_compiler_static_CXX='-Bstatic'
  14089. - lt_prog_compiler_wl_CXX='-Qoption ld '
  14090. - ;;
  14091. - gcx)
  14092. - # Green Hills C++ Compiler
  14093. - lt_prog_compiler_pic_CXX='-PIC'
  14094. - ;;
  14095. - *)
  14096. - ;;
  14097. - esac
  14098. - ;;
  14099. - sunos4*)
  14100. - case $cc_basename in
  14101. - CC)
  14102. - # Sun C++ 4.x
  14103. - lt_prog_compiler_pic_CXX='-pic'
  14104. - lt_prog_compiler_static_CXX='-Bstatic'
  14105. - ;;
  14106. - lcc)
  14107. - # Lucid
  14108. - lt_prog_compiler_pic_CXX='-pic'
  14109. - ;;
  14110. - *)
  14111. - ;;
  14112. - esac
  14113. - ;;
  14114. - tandem*)
  14115. - case $cc_basename in
  14116. - NCC)
  14117. - # NonStop-UX NCC 3.20
  14118. - lt_prog_compiler_pic_CXX='-KPIC'
  14119. - ;;
  14120. - *)
  14121. - ;;
  14122. - esac
  14123. - ;;
  14124. - unixware*)
  14125. - ;;
  14126. - vxworks*)
  14127. - ;;
  14128. - *)
  14129. - lt_prog_compiler_can_build_shared_CXX=no
  14130. - ;;
  14131. - esac
  14132. - fi
  14133. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  14134. -$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  14135. -#
  14136. -# Check to make sure the PIC flag actually works.
  14137. -#
  14138. -if test -n "$lt_prog_compiler_pic_CXX"; then
  14139. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14140. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14141. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then :
  14142. - $as_echo_n "(cached) " >&6
  14143. -else
  14144. - lt_prog_compiler_pic_works_CXX=no
  14145. - ac_outfile=conftest.$ac_objext
  14146. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14147. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  14148. - # Insert the option either (1) after the last *FLAGS variable, or
  14149. - # (2) before a word containing "conftest.", or (3) at the end.
  14150. - # Note that $ac_compile itself does not contain backslashes and begins
  14151. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  14152. - # The option is referenced via a variable to avoid confusing sed.
  14153. - lt_compile=`echo "$ac_compile" | $SED \
  14154. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14155. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14156. - -e 's:$: $lt_compiler_flag:'`
  14157. - (eval echo "\"\$as_me:12355: $lt_compile\"" >&5)
  14158. - (eval "$lt_compile" 2>conftest.err)
  14159. - ac_status=$?
  14160. - cat conftest.err >&5
  14161. - echo "$as_me:12359: \$? = $ac_status" >&5
  14162. - if (exit $ac_status) && test -s "$ac_outfile"; then
  14163. - # The compiler can only warn and ignore the option if not recognized
  14164. - # So say no if there are warnings
  14165. - if test ! -s conftest.err; then
  14166. - lt_prog_compiler_pic_works_CXX=yes
  14167. - fi
  14168. - fi
  14169. - $rm conftest*
  14170. -fi
  14171. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
  14172. -$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
  14173. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  14174. - case $lt_prog_compiler_pic_CXX in
  14175. - "" | " "*) ;;
  14176. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14177. - esac
  14178. -else
  14179. - lt_prog_compiler_pic_CXX=
  14180. - lt_prog_compiler_can_build_shared_CXX=no
  14181. -fi
  14182. -fi
  14183. -case "$host_os" in
  14184. - # For platforms which do not support PIC, -DPIC is meaningless:
  14185. - *djgpp*)
  14186. - lt_prog_compiler_pic_CXX=
  14187. - ;;
  14188. - *)
  14189. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14190. - ;;
  14191. -esac
  14192. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14193. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14194. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  14195. - $as_echo_n "(cached) " >&6
  14196. -else
  14197. - lt_cv_prog_compiler_c_o_CXX=no
  14198. - $rm -r conftest 2>/dev/null
  14199. - mkdir conftest
  14200. - cd conftest
  14201. - mkdir out
  14202. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14203. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  14204. - # Insert the option either (1) after the last *FLAGS variable, or
  14205. - # (2) before a word containing "conftest.", or (3) at the end.
  14206. - # Note that $ac_compile itself does not contain backslashes and begins
  14207. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  14208. - lt_compile=`echo "$ac_compile" | $SED \
  14209. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  14210. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14211. - -e 's:$: $lt_compiler_flag:'`
  14212. - (eval echo "\"\$as_me:12415: $lt_compile\"" >&5)
  14213. - (eval "$lt_compile" 2>out/conftest.err)
  14214. - ac_status=$?
  14215. - cat out/conftest.err >&5
  14216. - echo "$as_me:12419: \$? = $ac_status" >&5
  14217. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14218. - then
  14219. - # The compiler can only warn and ignore the option if not recognized
  14220. - # So say no if there are warnings
  14221. - if test ! -s out/conftest.err; then
  14222. - lt_cv_prog_compiler_c_o_CXX=yes
  14223. - fi
  14224. - fi
  14225. - chmod u+w .
  14226. - $rm conftest*
  14227. - # SGI C++ compiler will create directory out/ii_files/ for
  14228. - # template instantiation
  14229. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14230. - $rm out/* && rmdir out
  14231. - cd ..
  14232. - rmdir conftest
  14233. - $rm conftest*
  14234. -fi
  14235. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14236. -$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14237. -hard_links="nottested"
  14238. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  14239. - # do not overwrite the value of need_locks provided by the user
  14240. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14241. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  14242. - hard_links=yes
  14243. - $rm conftest*
  14244. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14245. - touch conftest.a
  14246. - ln conftest.a conftest.b 2>&5 || hard_links=no
  14247. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14248. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14249. -$as_echo "$hard_links" >&6; }
  14250. - if test "$hard_links" = no; then
  14251. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14252. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14253. - need_locks=warn
  14254. - fi
  14255. -else
  14256. - need_locks=no
  14257. -fi
  14258. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14259. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14260. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14261. - case $host_os in
  14262. - aix4* | aix5*)
  14263. - # If we're using GNU nm, then we don't want the "-C" option.
  14264. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  14265. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  14266. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14267. - else
  14268. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  14269. - fi
  14270. - ;;
  14271. - pw32*)
  14272. - export_symbols_cmds_CXX="$ltdll_cmds"
  14273. - ;;
  14274. - cygwin* | mingw*)
  14275. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  14276. - ;;
  14277. - linux*)
  14278. - link_all_deplibs_CXX=no
  14279. - ;;
  14280. - *)
  14281. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14282. - ;;
  14283. - esac
  14284. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14285. -$as_echo "$ld_shlibs_CXX" >&6; }
  14286. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  14287. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14288. -if test "$GCC" = yes; then
  14289. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14290. -fi
  14291. -#
  14292. -# Do we need to explicitly link libc?
  14293. -#
  14294. -case "x$archive_cmds_need_lc_CXX" in
  14295. -x|xyes)
  14296. - # Assume -lc should be added
  14297. - archive_cmds_need_lc_CXX=yes
  14298. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  14299. - case $archive_cmds_CXX in
  14300. - *'~'*)
  14301. - # FIXME: we may have to deal with multi-command sequences.
  14302. - ;;
  14303. - '$CC '*)
  14304. - # Test whether the compiler implicitly links with -lc since on some
  14305. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14306. - # to ld, don't add -lc before -lgcc.
  14307. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14308. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14309. - $rm conftest*
  14310. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14311. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14312. - (eval $ac_compile) 2>&5
  14313. - ac_status=$?
  14314. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14315. - test $ac_status = 0; } 2>conftest.err; then
  14316. - soname=conftest
  14317. - lib=conftest
  14318. - libobjs=conftest.$ac_objext
  14319. - deplibs=
  14320. - wl=$lt_prog_compiler_wl_CXX
  14321. - compiler_flags=-v
  14322. - linker_flags=-v
  14323. - verstring=
  14324. - output_objdir=.
  14325. - libname=conftest
  14326. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14327. - allow_undefined_flag_CXX=
  14328. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14329. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14330. - ac_status=$?
  14331. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14332. - test $ac_status = 0; }
  14333. - then
  14334. - archive_cmds_need_lc_CXX=no
  14335. - else
  14336. - archive_cmds_need_lc_CXX=yes
  14337. - fi
  14338. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14339. - else
  14340. - cat conftest.err 1>&5
  14341. - fi
  14342. - $rm conftest*
  14343. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  14344. -$as_echo "$archive_cmds_need_lc_CXX" >&6; }
  14345. - ;;
  14346. - esac
  14347. - fi
  14348. - ;;
  14349. -esac
  14350. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14351. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  14352. -library_names_spec=
  14353. -libname_spec='lib$name'
  14354. -soname_spec=
  14355. -shrext_cmds=".so"
  14356. -postinstall_cmds=
  14357. -postuninstall_cmds=
  14358. -finish_cmds=
  14359. -finish_eval=
  14360. -shlibpath_var=
  14361. -shlibpath_overrides_runpath=unknown
  14362. -version_type=none
  14363. -dynamic_linker="$host_os ld.so"
  14364. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14365. -if test "$GCC" = yes; then
  14366. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14367. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14368. - # if the path contains ";" then we assume it to be the separator
  14369. - # otherwise default to the standard path separator (i.e. ":") - it is
  14370. - # assumed that no part of a normal pathname contains ";" but that should
  14371. - # okay in the real world where ";" in dirpaths is itself problematic.
  14372. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14373. - else
  14374. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14375. - fi
  14376. -else
  14377. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14378. -fi
  14379. -need_lib_prefix=unknown
  14380. -hardcode_into_libs=no
  14381. -# when you set need_version to no, make sure it does not cause -set_version
  14382. -# flags to be left without arguments
  14383. -need_version=unknown
  14384. -case $host_os in
  14385. -aix3*)
  14386. - version_type=linux
  14387. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14388. - shlibpath_var=LIBPATH
  14389. - # AIX 3 has no versioning support, so we append a major version to the name.
  14390. - soname_spec='${libname}${release}${shared_ext}$major'
  14391. - ;;
  14392. -aix4* | aix5*)
  14393. - version_type=linux
  14394. - need_lib_prefix=no
  14395. - need_version=no
  14396. - hardcode_into_libs=yes
  14397. - if test "$host_cpu" = ia64; then
  14398. - # AIX 5 supports IA64
  14399. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14400. - shlibpath_var=LD_LIBRARY_PATH
  14401. - else
  14402. - # With GCC up to 2.95.x, collect2 would create an import file
  14403. - # for dependence libraries. The import file would start with
  14404. - # the line `#! .'. This would cause the generated library to
  14405. - # depend on `.', always an invalid library. This was fixed in
  14406. - # development snapshots of GCC prior to 3.0.
  14407. - case $host_os in
  14408. - aix4 | aix4.[01] | aix4.[01].*)
  14409. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14410. - echo ' yes '
  14411. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14412. - :
  14413. - else
  14414. - can_build_shared=no
  14415. - fi
  14416. - ;;
  14417. - esac
  14418. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14419. - # soname into executable. Probably we can add versioning support to
  14420. - # collect2, so additional links can be useful in future.
  14421. - if test "$aix_use_runtimelinking" = yes; then
  14422. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14423. - # instead of lib<name>.a to let people know that these are not
  14424. - # typical AIX shared libraries.
  14425. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14426. - else
  14427. - # We preserve .a as extension for shared libraries through AIX4.2
  14428. - # and later when we are not doing run time linking.
  14429. - library_names_spec='${libname}${release}.a $libname.a'
  14430. - soname_spec='${libname}${release}${shared_ext}$major'
  14431. - fi
  14432. - shlibpath_var=LIBPATH
  14433. - fi
  14434. - ;;
  14435. -amigaos*)
  14436. - library_names_spec='$libname.ixlibrary $libname.a'
  14437. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14438. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14439. - ;;
  14440. -beos*)
  14441. - library_names_spec='${libname}${shared_ext}'
  14442. - dynamic_linker="$host_os ld.so"
  14443. - shlibpath_var=LIBRARY_PATH
  14444. - ;;
  14445. -bsdi4*)
  14446. - version_type=linux
  14447. - need_version=no
  14448. +
  14449. +
  14450. +
  14451. +
  14452. +
  14453. +
  14454. +
  14455. +
  14456. +
  14457. +
  14458. +
  14459. +
  14460. +
  14461. +
  14462. +
  14463. +
  14464. +
  14465. +
  14466. +
  14467. +
  14468. +
  14469. +
  14470. +
  14471. +
  14472. +
  14473. +
  14474. +
  14475. +
  14476. +
  14477. +
  14478. +
  14479. +
  14480. +
  14481. +
  14482. +
  14483. +
  14484. +
  14485. +
  14486. +
  14487. +
  14488. +
  14489. +
  14490. +
  14491. +
  14492. +
  14493. +
  14494. +
  14495. +
  14496. +
  14497. +
  14498. +
  14499. +
  14500. +
  14501. +
  14502. +
  14503. +
  14504. +
  14505. +
  14506. +
  14507. +
  14508. +
  14509. +
  14510. +
  14511. +
  14512. +
  14513. +
  14514. +
  14515. +
  14516. +
  14517. +
  14518. +
  14519. +
  14520. +
  14521. +
  14522. +
  14523. +
  14524. +
  14525. +
  14526. +
  14527. +
  14528. +
  14529. +
  14530. +
  14531. +
  14532. +
  14533. +
  14534. +
  14535. +
  14536. +
  14537. +
  14538. +
  14539. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14540. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  14541. +
  14542. +if test "$GCC" = yes; then
  14543. + case $host_os in
  14544. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  14545. + *) lt_awk_arg="/^libraries:/" ;;
  14546. + esac
  14547. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14548. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  14549. + # if the path contains ";" then we assume it to be the separator
  14550. + # otherwise default to the standard path separator (i.e. ":") - it is
  14551. + # assumed that no part of a normal pathname contains ";" but that should
  14552. + # okay in the real world where ";" in dirpaths is itself problematic.
  14553. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  14554. + else
  14555. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14556. + fi
  14557. + # Ok, now we have the path, separated by spaces, we can step through it
  14558. + # and add multilib dir if necessary.
  14559. + lt_tmp_lt_search_path_spec=
  14560. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  14561. + for lt_sys_path in $lt_search_path_spec; do
  14562. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  14563. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  14564. + else
  14565. + test -d "$lt_sys_path" && \
  14566. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  14567. + fi
  14568. + done
  14569. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  14570. +BEGIN {RS=" "; FS="/|\n";} {
  14571. + lt_foo="";
  14572. + lt_count=0;
  14573. + for (lt_i = NF; lt_i > 0; lt_i--) {
  14574. + if ($lt_i != "" && $lt_i != ".") {
  14575. + if ($lt_i == "..") {
  14576. + lt_count++;
  14577. + } else {
  14578. + if (lt_count == 0) {
  14579. + lt_foo="/" $lt_i lt_foo;
  14580. + } else {
  14581. + lt_count--;
  14582. + }
  14583. + }
  14584. + }
  14585. + }
  14586. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  14587. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  14588. +}'`
  14589. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  14590. +else
  14591. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14592. +fi
  14593. +library_names_spec=
  14594. +libname_spec='lib$name'
  14595. +soname_spec=
  14596. +shrext_cmds=".so"
  14597. +postinstall_cmds=
  14598. +postuninstall_cmds=
  14599. +finish_cmds=
  14600. +finish_eval=
  14601. +shlibpath_var=
  14602. +shlibpath_overrides_runpath=unknown
  14603. +version_type=none
  14604. +dynamic_linker="$host_os ld.so"
  14605. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14606. +need_lib_prefix=unknown
  14607. +hardcode_into_libs=no
  14608. +
  14609. +# when you set need_version to no, make sure it does not cause -set_version
  14610. +# flags to be left without arguments
  14611. +need_version=unknown
  14612. +
  14613. +case $host_os in
  14614. +aix3*)
  14615. + version_type=linux
  14616. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14617. + shlibpath_var=LIBPATH
  14618. +
  14619. + # AIX 3 has no versioning support, so we append a major version to the name.
  14620. + soname_spec='${libname}${release}${shared_ext}$major'
  14621. + ;;
  14622. +
  14623. +aix[4-9]*)
  14624. + version_type=linux
  14625. + need_lib_prefix=no
  14626. + need_version=no
  14627. + hardcode_into_libs=yes
  14628. + if test "$host_cpu" = ia64; then
  14629. + # AIX 5 supports IA64
  14630. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14631. + shlibpath_var=LD_LIBRARY_PATH
  14632. + else
  14633. + # With GCC up to 2.95.x, collect2 would create an import file
  14634. + # for dependence libraries. The import file would start with
  14635. + # the line `#! .'. This would cause the generated library to
  14636. + # depend on `.', always an invalid library. This was fixed in
  14637. + # development snapshots of GCC prior to 3.0.
  14638. + case $host_os in
  14639. + aix4 | aix4.[01] | aix4.[01].*)
  14640. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14641. + echo ' yes '
  14642. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14643. + :
  14644. + else
  14645. + can_build_shared=no
  14646. + fi
  14647. + ;;
  14648. + esac
  14649. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14650. + # soname into executable. Probably we can add versioning support to
  14651. + # collect2, so additional links can be useful in future.
  14652. + if test "$aix_use_runtimelinking" = yes; then
  14653. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14654. + # instead of lib<name>.a to let people know that these are not
  14655. + # typical AIX shared libraries.
  14656. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14657. + else
  14658. + # We preserve .a as extension for shared libraries through AIX4.2
  14659. + # and later when we are not doing run time linking.
  14660. + library_names_spec='${libname}${release}.a $libname.a'
  14661. + soname_spec='${libname}${release}${shared_ext}$major'
  14662. + fi
  14663. + shlibpath_var=LIBPATH
  14664. + fi
  14665. + ;;
  14666. +
  14667. +amigaos*)
  14668. + case $host_cpu in
  14669. + powerpc)
  14670. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  14671. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14672. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14673. + ;;
  14674. + m68k)
  14675. + library_names_spec='$libname.ixlibrary $libname.a'
  14676. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14677. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14678. + ;;
  14679. + esac
  14680. + ;;
  14681. +
  14682. +beos*)
  14683. + library_names_spec='${libname}${shared_ext}'
  14684. + dynamic_linker="$host_os ld.so"
  14685. + shlibpath_var=LIBRARY_PATH
  14686. + ;;
  14687. +
  14688. +bsdi[45]*)
  14689. + version_type=linux
  14690. + need_version=no
  14691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14692. soname_spec='${libname}${release}${shared_ext}$major'
  14693. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14694. @@ -12677,24 +10346,28 @@
  14695. # libtool to hard-code these into programs
  14696. ;;
  14697. -cygwin* | mingw* | pw32*)
  14698. +cygwin* | mingw* | pw32* | cegcc*)
  14699. version_type=windows
  14700. shrext_cmds=".dll"
  14701. need_version=no
  14702. need_lib_prefix=no
  14703. case $GCC,$host_os in
  14704. - yes,cygwin* | yes,mingw* | yes,pw32*)
  14705. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  14706. library_names_spec='$libname.dll.a'
  14707. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14708. postinstall_cmds='base_file=`basename \${file}`~
  14709. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14710. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14711. dldir=$destdir/`dirname \$dlpath`~
  14712. test -d \$dldir || mkdir -p \$dldir~
  14713. - $install_prog $dir/$dlname \$dldir/$dlname'
  14714. + $install_prog $dir/$dlname \$dldir/$dlname~
  14715. + chmod a+x \$dldir/$dlname~
  14716. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14717. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14718. + fi'
  14719. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14720. dlpath=$dir/\$dldll~
  14721. - $rm \$dlpath'
  14722. + $RM \$dlpath'
  14723. shlibpath_overrides_runpath=yes
  14724. case $host_os in
  14725. @@ -12703,25 +10376,25 @@
  14726. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14727. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14728. ;;
  14729. - mingw*)
  14730. + mingw* | cegcc*)
  14731. # MinGW DLLs use traditional 'lib' prefix
  14732. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14733. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14734. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14735. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14736. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14737. # It is most probably a Windows format PATH printed by
  14738. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14739. # path with ; separators, and with drive letters. We can handle the
  14740. # drive letters (cygwin fileutils understands them), so leave them,
  14741. # especially as we might pass files found there to a mingw objdump,
  14742. # which wouldn't understand a cygwinified path. Ahh.
  14743. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14744. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14745. else
  14746. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14747. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14748. fi
  14749. ;;
  14750. pw32*)
  14751. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14752. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  14753. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14754. ;;
  14755. esac
  14756. ;;
  14757. @@ -12740,17 +10413,13 @@
  14758. version_type=darwin
  14759. need_lib_prefix=no
  14760. need_version=no
  14761. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14762. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14763. soname_spec='${libname}${release}${major}$shared_ext'
  14764. shlibpath_overrides_runpath=yes
  14765. shlibpath_var=DYLD_LIBRARY_PATH
  14766. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  14767. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14768. - if test "$GCC" = yes; then
  14769. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14770. - else
  14771. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14772. - fi
  14773. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14774. +
  14775. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14776. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14777. ;;
  14778. @@ -12767,20 +10436,17 @@
  14779. dynamic_linker=no
  14780. ;;
  14781. -kfreebsd*-gnu)
  14782. - version_type=linux
  14783. - need_lib_prefix=no
  14784. - need_version=no
  14785. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14786. - soname_spec='${libname}${release}${shared_ext}$major'
  14787. - shlibpath_var=LD_LIBRARY_PATH
  14788. - shlibpath_overrides_runpath=no
  14789. - hardcode_into_libs=yes
  14790. - dynamic_linker='GNU ld.so'
  14791. - ;;
  14792. -
  14793. -freebsd*)
  14794. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  14795. +freebsd* | dragonfly*)
  14796. + # DragonFly does not have aout. When/if they implement a new
  14797. + # versioning mechanism, adjust this.
  14798. + if test -x /usr/bin/objformat; then
  14799. + objformat=`/usr/bin/objformat`
  14800. + else
  14801. + case $host_os in
  14802. + freebsd[123]*) objformat=aout ;;
  14803. + *) objformat=elf ;;
  14804. + esac
  14805. + fi
  14806. version_type=freebsd-$objformat
  14807. case $version_type in
  14808. freebsd-elf*)
  14809. @@ -12798,14 +10464,19 @@
  14810. freebsd2*)
  14811. shlibpath_overrides_runpath=yes
  14812. ;;
  14813. - freebsd3.01* | freebsdelf3.01*)
  14814. + freebsd3.[01]* | freebsdelf3.[01]*)
  14815. shlibpath_overrides_runpath=yes
  14816. hardcode_into_libs=yes
  14817. ;;
  14818. - *) # from 3.2 on
  14819. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14820. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14821. shlibpath_overrides_runpath=no
  14822. hardcode_into_libs=yes
  14823. ;;
  14824. + *) # from 4.6 on, and DragonFly
  14825. + shlibpath_overrides_runpath=yes
  14826. + hardcode_into_libs=yes
  14827. + ;;
  14828. esac
  14829. ;;
  14830. @@ -12825,7 +10496,7 @@
  14831. version_type=sunos
  14832. need_lib_prefix=no
  14833. need_version=no
  14834. - case "$host_cpu" in
  14835. + case $host_cpu in
  14836. ia64*)
  14837. shrext_cmds='.so'
  14838. hardcode_into_libs=yes
  14839. @@ -12841,18 +10512,18 @@
  14840. fi
  14841. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14842. ;;
  14843. - hppa*64*)
  14844. - shrext_cmds='.sl'
  14845. - hardcode_into_libs=yes
  14846. - dynamic_linker="$host_os dld.sl"
  14847. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14848. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14850. - soname_spec='${libname}${release}${shared_ext}$major'
  14851. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14852. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14853. - ;;
  14854. - *)
  14855. + hppa*64*)
  14856. + shrext_cmds='.sl'
  14857. + hardcode_into_libs=yes
  14858. + dynamic_linker="$host_os dld.sl"
  14859. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14860. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14861. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14862. + soname_spec='${libname}${release}${shared_ext}$major'
  14863. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14864. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14865. + ;;
  14866. + *)
  14867. shrext_cmds='.sl'
  14868. dynamic_linker="$host_os dld.sl"
  14869. shlibpath_var=SHLIB_PATH
  14870. @@ -12865,6 +10536,18 @@
  14871. postinstall_cmds='chmod 555 $lib'
  14872. ;;
  14873. +interix[3-9]*)
  14874. + version_type=linux
  14875. + need_lib_prefix=no
  14876. + need_version=no
  14877. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14878. + soname_spec='${libname}${release}${shared_ext}$major'
  14879. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14880. + shlibpath_var=LD_LIBRARY_PATH
  14881. + shlibpath_overrides_runpath=no
  14882. + hardcode_into_libs=yes
  14883. + ;;
  14884. +
  14885. irix5* | irix6* | nonstopux*)
  14886. case $host_os in
  14887. nonstopux*) version_type=nonstopux ;;
  14888. @@ -12908,7 +10591,7 @@
  14889. ;;
  14890. # This must be Linux ELF.
  14891. -linux*)
  14892. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14893. version_type=linux
  14894. need_lib_prefix=no
  14895. need_version=no
  14896. @@ -12917,19 +10600,45 @@
  14897. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14898. shlibpath_var=LD_LIBRARY_PATH
  14899. shlibpath_overrides_runpath=no
  14900. - # This implies no fast_install, which is unacceptable.
  14901. - # Some rework will be needed to allow for fast_install
  14902. - # before this can be enabled.
  14903. - hardcode_into_libs=yes
  14904. + # Some binutils ld are patched to set DT_RUNPATH
  14905. + save_LDFLAGS=$LDFLAGS
  14906. + save_libdir=$libdir
  14907. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14908. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14909. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14910. +/* end confdefs.h. */
  14911. - # Append ld.so.conf contents to the search path
  14912. - if test -f /etc/ld.so.conf; then
  14913. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  14914. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14915. - fi
  14916. +int
  14917. +main ()
  14918. +{
  14919. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  14920. - # powerpc, because MkLinux only supported shared libraries with the
  14921. + ;
  14922. + return 0;
  14923. +}
  14924. +_ACEOF
  14925. +if ac_fn_c_try_link "$LINENO"; then :
  14926. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14927. + shlibpath_overrides_runpath=yes
  14928. +fi
  14929. +fi
  14930. +rm -f core conftest.err conftest.$ac_objext \
  14931. + conftest$ac_exeext conftest.$ac_ext
  14932. + LDFLAGS=$save_LDFLAGS
  14933. + libdir=$save_libdir
  14934. +
  14935. + # This implies no fast_install, which is unacceptable.
  14936. + # Some rework will be needed to allow for fast_install
  14937. + # before this can be enabled.
  14938. + hardcode_into_libs=yes
  14939. +
  14940. + # Append ld.so.conf contents to the search path
  14941. + if test -f /etc/ld.so.conf; then
  14942. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  14943. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14944. + fi
  14945. +
  14946. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  14947. + # powerpc, because MkLinux only supported shared libraries with the
  14948. # GNU dynamic linker. Since this was broken with cross compilers,
  14949. # most powerpc-linux boxes support dynamic linking these days and
  14950. # people can always --disable-shared, the test was removed, and we
  14951. @@ -12937,7 +10646,7 @@
  14952. dynamic_linker='GNU/Linux ld.so'
  14953. ;;
  14954. -knetbsd*-gnu)
  14955. +netbsdelf*-gnu)
  14956. version_type=linux
  14957. need_lib_prefix=no
  14958. need_version=no
  14959. @@ -12946,14 +10655,14 @@
  14960. shlibpath_var=LD_LIBRARY_PATH
  14961. shlibpath_overrides_runpath=no
  14962. hardcode_into_libs=yes
  14963. - dynamic_linker='GNU ld.so'
  14964. + dynamic_linker='NetBSD ld.elf_so'
  14965. ;;
  14966. netbsd*)
  14967. version_type=sunos
  14968. need_lib_prefix=no
  14969. need_version=no
  14970. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14971. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14974. dynamic_linker='NetBSD (a.out) ld.so'
  14975. @@ -12974,24 +10683,31 @@
  14976. shlibpath_overrides_runpath=yes
  14977. ;;
  14978. -nto-qnx*)
  14979. - version_type=linux
  14980. +*nto* | *qnx*)
  14981. + version_type=qnx
  14982. need_lib_prefix=no
  14983. need_version=no
  14984. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14985. soname_spec='${libname}${release}${shared_ext}$major'
  14986. shlibpath_var=LD_LIBRARY_PATH
  14987. - shlibpath_overrides_runpath=yes
  14988. + shlibpath_overrides_runpath=no
  14989. + hardcode_into_libs=yes
  14990. + dynamic_linker='ldqnx.so'
  14991. ;;
  14992. openbsd*)
  14993. version_type=sunos
  14994. + sys_lib_dlsearch_path_spec="/usr/lib"
  14995. need_lib_prefix=no
  14996. - need_version=yes
  14997. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14998. + case $host_os in
  14999. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15000. + *) need_version=no ;;
  15001. + esac
  15002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15003. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15004. shlibpath_var=LD_LIBRARY_PATH
  15005. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15006. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15007. case $host_os in
  15008. openbsd2.[89] | openbsd2.[89].*)
  15009. shlibpath_overrides_runpath=no
  15010. @@ -13025,11 +10741,8 @@
  15011. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15012. ;;
  15013. -sco3.2v5*)
  15014. - version_type=osf
  15015. - soname_spec='${libname}${release}${shared_ext}$major'
  15016. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15017. - shlibpath_var=LD_LIBRARY_PATH
  15018. +rdos*)
  15019. + dynamic_linker=no
  15020. ;;
  15021. solaris*)
  15022. @@ -13057,7 +10770,7 @@
  15023. need_version=yes
  15024. ;;
  15025. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  15026. +sysv4 | sysv4.3*)
  15027. version_type=linux
  15028. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15029. soname_spec='${libname}${release}${shared_ext}$major'
  15030. @@ -13066,7 +10779,6 @@
  15031. sni)
  15032. shlibpath_overrides_runpath=no
  15033. need_lib_prefix=no
  15034. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  15035. runpath_var=LD_RUN_PATH
  15036. ;;
  15037. siemens)
  15038. @@ -13090,6 +10802,39 @@
  15039. fi
  15040. ;;
  15041. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15042. + version_type=freebsd-elf
  15043. + need_lib_prefix=no
  15044. + need_version=no
  15045. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15046. + soname_spec='${libname}${release}${shared_ext}$major'
  15047. + shlibpath_var=LD_LIBRARY_PATH
  15048. + shlibpath_overrides_runpath=yes
  15049. + hardcode_into_libs=yes
  15050. + if test "$with_gnu_ld" = yes; then
  15051. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15052. + else
  15053. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15054. + case $host_os in
  15055. + sco3.2v5*)
  15056. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15057. + ;;
  15058. + esac
  15059. + fi
  15060. + sys_lib_dlsearch_path_spec='/usr/lib'
  15061. + ;;
  15062. +
  15063. +tpf*)
  15064. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15065. + version_type=linux
  15066. + need_lib_prefix=no
  15067. + need_version=no
  15068. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15069. + shlibpath_var=LD_LIBRARY_PATH
  15070. + shlibpath_overrides_runpath=no
  15071. + hardcode_into_libs=yes
  15072. + ;;
  15073. +
  15074. uts4*)
  15075. version_type=linux
  15076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15077. @@ -13105,35 +10850,134 @@
  15078. $as_echo "$dynamic_linker" >&6; }
  15079. test "$dynamic_linker" = no && can_build_shared=no
  15080. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15081. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15082. +if test "$GCC" = yes; then
  15083. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15084. +fi
  15085. +
  15086. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  15087. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  15088. +fi
  15089. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  15090. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  15091. +fi
  15092. +
  15093. +
  15094. +
  15095. +
  15096. +
  15097. +
  15098. +
  15099. +
  15100. +
  15101. +
  15102. +
  15103. +
  15104. +
  15105. +
  15106. +
  15107. +
  15108. +
  15109. +
  15110. +
  15111. +
  15112. +
  15113. +
  15114. +
  15115. +
  15116. +
  15117. +
  15118. +
  15119. +
  15120. +
  15121. +
  15122. +
  15123. +
  15124. +
  15125. +
  15126. +
  15127. +
  15128. +
  15129. +
  15130. +
  15131. +
  15132. +
  15133. +
  15134. +
  15135. +
  15136. +
  15137. +
  15138. +
  15139. +
  15140. +
  15141. +
  15142. +
  15143. +
  15144. +
  15145. +
  15146. +
  15147. +
  15148. +
  15149. +
  15150. +
  15151. +
  15152. +
  15153. +
  15154. +
  15155. +
  15156. +
  15157. +
  15158. +
  15159. +
  15160. +
  15161. +
  15162. +
  15163. +
  15164. +
  15165. +
  15166. +
  15167. +
  15168. +
  15169. +
  15170. +
  15171. +
  15172. +
  15173. +
  15174. +
  15175. +
  15176. +
  15177. +
  15178. +
  15179. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15180. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15181. -hardcode_action_CXX=
  15182. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  15183. - test -n "$runpath_var CXX" || \
  15184. - test "X$hardcode_automatic_CXX"="Xyes" ; then
  15185. +hardcode_action=
  15186. +if test -n "$hardcode_libdir_flag_spec" ||
  15187. + test -n "$runpath_var" ||
  15188. + test "X$hardcode_automatic" = "Xyes" ; then
  15189. - # We can hardcode non-existant directories.
  15190. - if test "$hardcode_direct_CXX" != no &&
  15191. + # We can hardcode non-existent directories.
  15192. + if test "$hardcode_direct" != no &&
  15193. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15194. # have to relink, otherwise we might link with an installed library
  15195. # when we should be linking with a yet-to-be-installed one
  15196. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  15197. - test "$hardcode_minus_L_CXX" != no; then
  15198. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  15199. + test "$hardcode_minus_L" != no; then
  15200. # Linking always hardcodes the temporary library directory.
  15201. - hardcode_action_CXX=relink
  15202. + hardcode_action=relink
  15203. else
  15204. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15205. - hardcode_action_CXX=immediate
  15206. + hardcode_action=immediate
  15207. fi
  15208. else
  15209. # We cannot hardcode anything, or else we can only hardcode existing
  15210. # directories.
  15211. - hardcode_action_CXX=unsupported
  15212. + hardcode_action=unsupported
  15213. fi
  15214. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15215. -$as_echo "$hardcode_action_CXX" >&6; }
  15216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  15217. +$as_echo "$hardcode_action" >&6; }
  15218. -if test "$hardcode_action_CXX" = relink; then
  15219. +if test "$hardcode_action" = relink ||
  15220. + test "$inherit_rpath" = yes; then
  15221. # Fast installation is not supported
  15222. enable_fast_install=no
  15223. elif test "$shlibpath_overrides_runpath" = yes ||
  15224. @@ -13142,36 +10986,12 @@
  15225. enable_fast_install=needless
  15226. fi
  15227. -striplib=
  15228. -old_striplib=
  15229. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15230. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  15231. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15232. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15233. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15234. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15235. -$as_echo "yes" >&6; }
  15236. -else
  15237. -# FIXME - insert some real tests, host_os isn't really good enough
  15238. - case $host_os in
  15239. - darwin*)
  15240. - if test -n "$STRIP" ; then
  15241. - striplib="$STRIP -x"
  15242. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15243. -$as_echo "yes" >&6; }
  15244. - else
  15245. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15246. -$as_echo "no" >&6; }
  15247. -fi
  15248. - ;;
  15249. - *)
  15250. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15251. -$as_echo "no" >&6; }
  15252. - ;;
  15253. - esac
  15254. -fi
  15255. -if test "x$enable_dlopen" != xyes; then
  15256. +
  15257. +
  15258. +
  15259. +
  15260. + if test "x$enable_dlopen" != xyes; then
  15261. enable_dlopen=unknown
  15262. enable_dlopen_self=unknown
  15263. enable_dlopen_self_static=unknown
  15264. @@ -13186,15 +11006,15 @@
  15265. lt_cv_dlopen_self=yes
  15266. ;;
  15267. - mingw* | pw32*)
  15268. + mingw* | pw32* | cegcc*)
  15269. lt_cv_dlopen="LoadLibrary"
  15270. lt_cv_dlopen_libs=
  15271. - ;;
  15272. + ;;
  15273. cygwin*)
  15274. lt_cv_dlopen="dlopen"
  15275. lt_cv_dlopen_libs=
  15276. - ;;
  15277. + ;;
  15278. darwin*)
  15279. # if libdl is installed we need to link against it
  15280. @@ -13223,7 +11043,7 @@
  15281. return 0;
  15282. }
  15283. _ACEOF
  15284. -if ac_fn_cxx_try_link "$LINENO"; then :
  15285. +if ac_fn_c_try_link "$LINENO"; then :
  15286. ac_cv_lib_dl_dlopen=yes
  15287. else
  15288. ac_cv_lib_dl_dlopen=no
  15289. @@ -13244,10 +11064,10 @@
  15290. fi
  15291. - ;;
  15292. + ;;
  15293. *)
  15294. - ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15295. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15296. if test "x$ac_cv_func_shl_load" = x""yes; then :
  15297. lt_cv_dlopen="shl_load"
  15298. else
  15299. @@ -13276,7 +11096,7 @@
  15300. return 0;
  15301. }
  15302. _ACEOF
  15303. -if ac_fn_cxx_try_link "$LINENO"; then :
  15304. +if ac_fn_c_try_link "$LINENO"; then :
  15305. ac_cv_lib_dld_shl_load=yes
  15306. else
  15307. ac_cv_lib_dld_shl_load=no
  15308. @@ -13288,9 +11108,9 @@
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  15310. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  15311. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  15312. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  15313. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  15314. else
  15315. - ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15316. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15317. if test "x$ac_cv_func_dlopen" = x""yes; then :
  15318. lt_cv_dlopen="dlopen"
  15319. else
  15320. @@ -13319,7 +11139,7 @@
  15321. return 0;
  15322. }
  15323. _ACEOF
  15324. -if ac_fn_cxx_try_link "$LINENO"; then :
  15325. +if ac_fn_c_try_link "$LINENO"; then :
  15326. ac_cv_lib_dl_dlopen=yes
  15327. else
  15328. ac_cv_lib_dl_dlopen=no
  15329. @@ -13358,7 +11178,7 @@
  15330. return 0;
  15331. }
  15332. _ACEOF
  15333. -if ac_fn_cxx_try_link "$LINENO"; then :
  15334. +if ac_fn_c_try_link "$LINENO"; then :
  15335. ac_cv_lib_svld_dlopen=yes
  15336. else
  15337. ac_cv_lib_svld_dlopen=no
  15338. @@ -13397,7 +11217,7 @@
  15339. return 0;
  15340. }
  15341. _ACEOF
  15342. -if ac_fn_cxx_try_link "$LINENO"; then :
  15343. +if ac_fn_c_try_link "$LINENO"; then :
  15344. ac_cv_lib_dld_dld_link=yes
  15345. else
  15346. ac_cv_lib_dld_dld_link=no
  15347. @@ -13409,7 +11229,7 @@
  15348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  15349. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  15350. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  15351. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  15352. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  15353. fi
  15354. @@ -13442,7 +11262,7 @@
  15355. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15356. save_LDFLAGS="$LDFLAGS"
  15357. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15358. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15359. save_LIBS="$LIBS"
  15360. LIBS="$lt_cv_dlopen_libs $LIBS"
  15361. @@ -13457,8 +11277,8 @@
  15362. else
  15363. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15364. lt_status=$lt_dlunknown
  15365. - cat > conftest.$ac_ext <<EOF
  15366. -#line 13461 "configure"
  15367. + cat > conftest.$ac_ext <<_LT_EOF
  15368. +#line 11281 "configure"
  15369. #include "confdefs.h"
  15370. #if HAVE_DLFCN_H
  15371. @@ -13499,10 +11319,6 @@
  15372. # endif
  15373. #endif
  15374. -#ifdef __cplusplus
  15375. -extern "C" void exit (int);
  15376. -#endif
  15377. -
  15378. void fnord() { int i=42;}
  15379. int main ()
  15380. {
  15381. @@ -13515,21 +11331,23 @@
  15382. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15383. /* dlclose (self); */
  15384. }
  15385. + else
  15386. + puts (dlerror ());
  15387. - exit (status);
  15388. + return status;
  15389. }
  15390. -EOF
  15391. +_LT_EOF
  15392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15393. (eval $ac_link) 2>&5
  15394. ac_status=$?
  15395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15396. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15397. - (./conftest; exit; ) 2>/dev/null
  15398. + (./conftest; exit; ) >&5 2>/dev/null
  15399. lt_status=$?
  15400. case x$lt_status in
  15401. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  15402. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  15403. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  15404. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  15405. esac
  15406. else :
  15407. # compilation failed
  15408. @@ -13544,7 +11362,7 @@
  15409. $as_echo "$lt_cv_dlopen_self" >&6; }
  15410. if test "x$lt_cv_dlopen_self" = xyes; then
  15411. - LDFLAGS="$LDFLAGS $link_static_flag"
  15412. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  15414. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  15415. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  15416. @@ -13555,8 +11373,8 @@
  15417. else
  15418. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15419. lt_status=$lt_dlunknown
  15420. - cat > conftest.$ac_ext <<EOF
  15421. -#line 13559 "configure"
  15422. + cat > conftest.$ac_ext <<_LT_EOF
  15423. +#line 11377 "configure"
  15424. #include "confdefs.h"
  15425. #if HAVE_DLFCN_H
  15426. @@ -13597,10 +11415,6 @@
  15427. # endif
  15428. #endif
  15429. -#ifdef __cplusplus
  15430. -extern "C" void exit (int);
  15431. -#endif
  15432. -
  15433. void fnord() { int i=42;}
  15434. int main ()
  15435. {
  15436. @@ -13613,21 +11427,23 @@
  15437. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15438. /* dlclose (self); */
  15439. }
  15440. + else
  15441. + puts (dlerror ());
  15442. - exit (status);
  15443. + return status;
  15444. }
  15445. -EOF
  15446. +_LT_EOF
  15447. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15448. (eval $ac_link) 2>&5
  15449. ac_status=$?
  15450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15451. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15452. - (./conftest; exit; ) 2>/dev/null
  15453. + (./conftest; exit; ) >&5 2>/dev/null
  15454. lt_status=$?
  15455. case x$lt_status in
  15456. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15457. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15458. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  15459. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15460. esac
  15461. else :
  15462. # compilation failed
  15463. @@ -13660,10121 +11476,5459 @@
  15464. fi
  15465. -# The else clause should only fire when bootstrapping the
  15466. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  15467. -# with your package, and you will get complaints that there are
  15468. -# no rules to generate ltmain.sh.
  15469. -if test -f "$ltmain"; then
  15470. - # See if we are running on zsh, and set the options which allow our commands through
  15471. - # without removal of \ escapes.
  15472. - if test -n "${ZSH_VERSION+set}" ; then
  15473. - setopt NO_GLOB_SUBST
  15474. - fi
  15475. - # Now quote all the things that may contain metacharacters while being
  15476. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  15477. - # variables and quote the copies for generation of the libtool script.
  15478. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  15479. - SED SHELL STRIP \
  15480. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  15481. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  15482. - deplibs_check_method reload_flag reload_cmds need_locks \
  15483. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  15484. - lt_cv_sys_global_symbol_to_c_name_address \
  15485. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  15486. - old_postinstall_cmds old_postuninstall_cmds \
  15487. - compiler_CXX \
  15488. - CC_CXX \
  15489. - LD_CXX \
  15490. - lt_prog_compiler_wl_CXX \
  15491. - lt_prog_compiler_pic_CXX \
  15492. - lt_prog_compiler_static_CXX \
  15493. - lt_prog_compiler_no_builtin_flag_CXX \
  15494. - export_dynamic_flag_spec_CXX \
  15495. - thread_safe_flag_spec_CXX \
  15496. - whole_archive_flag_spec_CXX \
  15497. - enable_shared_with_static_runtimes_CXX \
  15498. - old_archive_cmds_CXX \
  15499. - old_archive_from_new_cmds_CXX \
  15500. - predep_objects_CXX \
  15501. - postdep_objects_CXX \
  15502. - predeps_CXX \
  15503. - postdeps_CXX \
  15504. - compiler_lib_search_path_CXX \
  15505. - archive_cmds_CXX \
  15506. - archive_expsym_cmds_CXX \
  15507. - postinstall_cmds_CXX \
  15508. - postuninstall_cmds_CXX \
  15509. - old_archive_from_expsyms_cmds_CXX \
  15510. - allow_undefined_flag_CXX \
  15511. - no_undefined_flag_CXX \
  15512. - export_symbols_cmds_CXX \
  15513. - hardcode_libdir_flag_spec_CXX \
  15514. - hardcode_libdir_flag_spec_ld_CXX \
  15515. - hardcode_libdir_separator_CXX \
  15516. - hardcode_automatic_CXX \
  15517. - module_cmds_CXX \
  15518. - module_expsym_cmds_CXX \
  15519. - lt_cv_prog_compiler_c_o_CXX \
  15520. - exclude_expsyms_CXX \
  15521. - include_expsyms_CXX; do
  15522. -
  15523. - case $var in
  15524. - old_archive_cmds_CXX | \
  15525. - old_archive_from_new_cmds_CXX | \
  15526. - archive_cmds_CXX | \
  15527. - archive_expsym_cmds_CXX | \
  15528. - module_cmds_CXX | \
  15529. - module_expsym_cmds_CXX | \
  15530. - old_archive_from_expsyms_cmds_CXX | \
  15531. - export_symbols_cmds_CXX | \
  15532. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  15533. - postinstall_cmds | postuninstall_cmds | \
  15534. - old_postinstall_cmds | old_postuninstall_cmds | \
  15535. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  15536. - # Double-quote double-evaled strings.
  15537. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  15538. - ;;
  15539. - *)
  15540. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  15541. - ;;
  15542. - esac
  15543. - done
  15544. - case $lt_echo in
  15545. - *'\$0 --fallback-echo"')
  15546. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  15547. - ;;
  15548. - esac
  15549. -cfgfile="$ofile"
  15550. - cat <<__EOF__ >> "$cfgfile"
  15551. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  15552. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15553. -# Shell to use when invoking shell scripts.
  15554. -SHELL=$lt_SHELL
  15555. -# Whether or not to build shared libraries.
  15556. -build_libtool_libs=$enable_shared
  15557. -# Whether or not to build static libraries.
  15558. -build_old_libs=$enable_static
  15559. -# Whether or not to add -lc for building shared libraries.
  15560. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15561. -# Whether or not to disallow shared libs when runtime libs are static
  15562. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15563. -# Whether or not to optimize for fast installation.
  15564. -fast_install=$enable_fast_install
  15565. -# The host system.
  15566. -host_alias=$host_alias
  15567. -host=$host
  15568. -# An echo program that does not interpret backslashes.
  15569. -echo=$lt_echo
  15570. -# The archiver.
  15571. -AR=$lt_AR
  15572. -AR_FLAGS=$lt_AR_FLAGS
  15573. -# A C compiler.
  15574. -LTCC=$lt_LTCC
  15575. -# A language-specific compiler.
  15576. -CC=$lt_compiler_CXX
  15577. +striplib=
  15578. +old_striplib=
  15579. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15580. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  15581. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  15582. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15583. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15584. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15585. +$as_echo "yes" >&6; }
  15586. +else
  15587. +# FIXME - insert some real tests, host_os isn't really good enough
  15588. + case $host_os in
  15589. + darwin*)
  15590. + if test -n "$STRIP" ; then
  15591. + striplib="$STRIP -x"
  15592. + old_striplib="$STRIP -S"
  15593. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15594. +$as_echo "yes" >&6; }
  15595. + else
  15596. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15597. +$as_echo "no" >&6; }
  15598. + fi
  15599. + ;;
  15600. + *)
  15601. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15602. +$as_echo "no" >&6; }
  15603. + ;;
  15604. + esac
  15605. +fi
  15606. -# Is the compiler the GNU C compiler?
  15607. -with_gcc=$GCC_CXX
  15608. -# An ERE matcher.
  15609. -EGREP=$lt_EGREP
  15610. -
  15611. -# The linker used to build libraries.
  15612. -LD=$lt_LD_CXX
  15613. -
  15614. -# Whether we need hard or soft links.
  15615. -LN_S=$lt_LN_S
  15616. -
  15617. -# A BSD-compatible nm program.
  15618. -NM=$lt_NM
  15619. -
  15620. -# A symbol stripping program
  15621. -STRIP=$lt_STRIP
  15622. -
  15623. -# Used to examine libraries when file_magic_cmd begins "file"
  15624. -MAGIC_CMD=$MAGIC_CMD
  15625. -# Used on cygwin: DLL creation program.
  15626. -DLLTOOL="$DLLTOOL"
  15627. -# Used on cygwin: object dumper.
  15628. -OBJDUMP="$OBJDUMP"
  15629. -# Used on cygwin: assembler.
  15630. -AS="$AS"
  15631. -# The name of the directory that contains temporary libtool files.
  15632. -objdir=$objdir
  15633. -# How to create reloadable object files.
  15634. -reload_flag=$lt_reload_flag
  15635. -reload_cmds=$lt_reload_cmds
  15636. -# How to pass a linker flag through the compiler.
  15637. -wl=$lt_lt_prog_compiler_wl_CXX
  15638. -# Object file suffix (normally "o").
  15639. -objext="$ac_objext"
  15640. -# Old archive suffix (normally "a").
  15641. -libext="$libext"
  15642. -# Shared library suffix (normally ".so").
  15643. -shrext_cmds='$shrext_cmds'
  15644. -# Executable file suffix (normally "").
  15645. -exeext="$exeext"
  15646. + # Report which library types will actually be built
  15647. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  15648. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  15649. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  15650. +$as_echo "$can_build_shared" >&6; }
  15651. -# Additional compiler flags for building library objects.
  15652. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  15653. -pic_mode=$pic_mode
  15654. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  15655. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  15656. + test "$can_build_shared" = "no" && enable_shared=no
  15657. -# What is the maximum length of a command?
  15658. -max_cmd_len=$lt_cv_sys_max_cmd_len
  15659. + # On AIX, shared libraries and static libraries use the same namespace, and
  15660. + # are all built from PIC.
  15661. + case $host_os in
  15662. + aix3*)
  15663. + test "$enable_shared" = yes && enable_static=no
  15664. + if test -n "$RANLIB"; then
  15665. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15666. + postinstall_cmds='$RANLIB $lib'
  15667. + fi
  15668. + ;;
  15669. -# Does compiler simultaneously support -c and -o options?
  15670. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15671. + aix[4-9]*)
  15672. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15673. + test "$enable_shared" = yes && enable_static=no
  15674. + fi
  15675. + ;;
  15676. + esac
  15677. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  15678. +$as_echo "$enable_shared" >&6; }
  15679. -# Must we lock files when doing compilation ?
  15680. -need_locks=$lt_need_locks
  15681. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  15682. +$as_echo_n "checking whether to build static libraries... " >&6; }
  15683. + # Make sure either enable_shared or enable_static is yes.
  15684. + test "$enable_shared" = yes || enable_static=yes
  15685. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  15686. +$as_echo "$enable_static" >&6; }
  15687. -# Do we need the lib prefix for modules?
  15688. -need_lib_prefix=$need_lib_prefix
  15689. -# Do we need a version for libraries?
  15690. -need_version=$need_version
  15691. -# Whether dlopen is supported.
  15692. -dlopen_support=$enable_dlopen
  15693. -# Whether dlopen of programs is supported.
  15694. -dlopen_self=$enable_dlopen_self
  15695. +fi
  15696. +ac_ext=c
  15697. +ac_cpp='$CPP $CPPFLAGS'
  15698. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15699. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15700. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15701. -# Whether dlopen of statically linked programs is supported.
  15702. -dlopen_self_static=$enable_dlopen_self_static
  15703. +CC="$lt_save_CC"
  15704. -# Compiler flag to prevent dynamic linking.
  15705. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  15706. -# Compiler flag to turn off builtin functions.
  15707. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15708. -# Compiler flag to allow reflexive dlopens.
  15709. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15710. -# Compiler flag to generate shared objects directly from archives.
  15711. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15712. -# Compiler flag to generate thread-safe objects.
  15713. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  15714. -# Library versioning type.
  15715. -version_type=$version_type
  15716. -# Format of library name prefix.
  15717. -libname_spec=$lt_libname_spec
  15718. -# List of archive names. First name is the real one, the rest are links.
  15719. -# The last name is the one that the linker finds with -lNAME.
  15720. -library_names_spec=$lt_library_names_spec
  15721. -# The coded name of the library, if different from the real name.
  15722. -soname_spec=$lt_soname_spec
  15723. -# Commands used to build and install an old-style archive.
  15724. -RANLIB=$lt_RANLIB
  15725. -old_archive_cmds=$lt_old_archive_cmds_CXX
  15726. -old_postinstall_cmds=$lt_old_postinstall_cmds
  15727. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15728. -# Create an old-style archive from a shared archive.
  15729. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15730. -# Create a temporary old-style archive to link instead of a shared archive.
  15731. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15732. -# Commands used to build and install a shared archive.
  15733. -archive_cmds=$lt_archive_cmds_CXX
  15734. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15735. -postinstall_cmds=$lt_postinstall_cmds
  15736. -postuninstall_cmds=$lt_postuninstall_cmds
  15737. + ac_config_commands="$ac_config_commands libtool"
  15738. -# Commands used to build a loadable module (assumed same as above if empty)
  15739. -module_cmds=$lt_module_cmds_CXX
  15740. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15741. -# Commands to strip libraries.
  15742. -old_striplib=$lt_old_striplib
  15743. -striplib=$lt_striplib
  15744. -# Dependencies to place before the objects being linked to create a
  15745. -# shared library.
  15746. -predep_objects=$lt_predep_objects_CXX
  15747. -
  15748. -# Dependencies to place after the objects being linked to create a
  15749. -# shared library.
  15750. -postdep_objects=$lt_postdep_objects_CXX
  15751. -
  15752. -# Dependencies to place before the objects being linked to create a
  15753. -# shared library.
  15754. -predeps=$lt_predeps_CXX
  15755. -
  15756. -# Dependencies to place after the objects being linked to create a
  15757. -# shared library.
  15758. -postdeps=$lt_postdeps_CXX
  15759. -
  15760. -# The library search path used internally by the compiler when linking
  15761. -# a shared library.
  15762. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15763. -# Method to check whether dependent libraries are shared objects.
  15764. -deplibs_check_method=$lt_deplibs_check_method
  15765. +# Only expand once:
  15766. -# Command to use when deplibs_check_method == file_magic.
  15767. -file_magic_cmd=$lt_file_magic_cmd
  15768. -# Flag that allows shared libraries with undefined symbols to be built.
  15769. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15770. -# Flag that forces no undefined symbols.
  15771. -no_undefined_flag=$lt_no_undefined_flag_CXX
  15772. -# Commands used to finish a libtool library installation in a directory.
  15773. -finish_cmds=$lt_finish_cmds
  15774. +##########################
  15775. +## General definitions. ##
  15776. +##########################
  15777. -# Same as above, but a single script fragment to be evaled but not shown.
  15778. -finish_eval=$lt_finish_eval
  15779. +# Used by libgcrypt-config
  15780. +LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
  15781. +LIBGCRYPT_CONFIG_CFLAGS=""
  15782. -# Take the output of nm and produce a listing of raw symbols and C names.
  15783. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15784. +# Definitions for symmetric ciphers.
  15785. +available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
  15786. +available_ciphers="$available_ciphers camellia"
  15787. +enabled_ciphers=""
  15788. -# Transform the output of nm in a proper C declaration
  15789. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15790. +# Definitions for public-key ciphers.
  15791. +available_pubkey_ciphers="dsa elgamal rsa ecc"
  15792. +enabled_pubkey_ciphers=""
  15793. -# Transform the output of nm in a C name address pair
  15794. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15795. +# Definitions for message digests.
  15796. +available_digests="crc md4 md5 rmd160 sha1 sha256"
  15797. +available_digests_64="sha512 tiger whirlpool"
  15798. +enabled_digests=""
  15799. -# This is the shared library runtime path variable.
  15800. -runpath_var=$runpath_var
  15801. +# Definitions for random modules.
  15802. +available_random_modules="linux egd unix"
  15803. +auto_random_modules="$available_random_modules"
  15804. -# This is the shared library path variable.
  15805. -shlibpath_var=$shlibpath_var
  15806. +# Supported thread backends.
  15807. +LIBGCRYPT_THREAD_MODULES=""
  15808. -# Is shlibpath searched before the hard-coded library search path?
  15809. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15810. +# Other definitions.
  15811. +print_egd_notice=no
  15812. +have_w32_system=no
  15813. -# How to hardcode a shared library path into an executable.
  15814. -hardcode_action=$hardcode_action_CXX
  15815. +# Setup some stuff depending on host.
  15816. +case "${host}" in
  15817. + *-*-mingw32*)
  15818. + available_random_modules="w32"
  15819. + ac_cv_have_dev_random=no
  15820. + have_w32_system=yes
  15821. -# Whether we should hardcode library paths into libraries.
  15822. -hardcode_into_libs=$hardcode_into_libs
  15823. +$as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
  15824. -# Flag to hardcode \$libdir into a binary during linking.
  15825. -# This must work even if \$libdir does not exist.
  15826. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15827. -# If ld is used when linking, flag to hardcode \$libdir into
  15828. -# a binary during linking. This must work even if \$libdir does
  15829. -# not exist.
  15830. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15831. -
  15832. -# Whether we need a single -rpath flag with a separated argument.
  15833. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15834. -
  15835. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  15836. -# resulting binary.
  15837. -hardcode_direct=$hardcode_direct_CXX
  15838. -
  15839. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  15840. -# resulting binary.
  15841. -hardcode_minus_L=$hardcode_minus_L_CXX
  15842. -
  15843. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  15844. -# the resulting binary.
  15845. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15846. -
  15847. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  15848. -# and all subsequent libraries and executables linked against it.
  15849. -hardcode_automatic=$hardcode_automatic_CXX
  15850. +$as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
  15851. -# Variables whose values should be saved in libtool wrapper scripts and
  15852. -# restored at relink time.
  15853. -variables_saved_for_relink="$variables_saved_for_relink"
  15854. -# Whether libtool must link a program against all its dependency libraries.
  15855. -link_all_deplibs=$link_all_deplibs_CXX
  15856. +$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
  15857. -# Compile-time system search path for libraries
  15858. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15859. + ;;
  15860. -# Run-time system search path for libraries
  15861. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15862. + i?86-emx-os2 | i?86-*-os2*emx)
  15863. + # OS/2 with the EMX environment
  15864. + ac_cv_have_dev_random=no
  15865. + $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
  15866. -# Fix the shell variable \$srcfile for the compiler.
  15867. -fix_srcfile_path="$fix_srcfile_path_CXX"
  15868. + $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
  15869. -# Set to yes if exported symbols are required.
  15870. -always_export_symbols=$always_export_symbols_CXX
  15871. + ;;
  15872. -# The commands to list exported symbols.
  15873. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15874. + i?86-*-msdosdjgpp*)
  15875. + # DOS with the DJGPP environment
  15876. + ac_cv_have_dev_random=no
  15877. + $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
  15878. -# The commands to extract the exported symbol list from a shared archive.
  15879. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15880. + $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
  15881. -# Symbols that should not be listed in the preloaded symbols.
  15882. -exclude_expsyms=$lt_exclude_expsyms_CXX
  15883. + ;;
  15884. -# Symbols that must always be exported.
  15885. -include_expsyms=$lt_include_expsyms_CXX
  15886. + *-*-freebsd*)
  15887. + # FreeBSD
  15888. + CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  15889. + LDFLAGS="$LDFLAGS -L/usr/local/lib"
  15890. + ;;
  15891. -# ### END LIBTOOL TAG CONFIG: $tagname
  15892. + *-*-hpux*)
  15893. + if test -z "$GCC" ; then
  15894. + CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
  15895. + fi
  15896. + ;;
  15897. + *-dec-osf4*)
  15898. + if test -z "$GCC" ; then
  15899. + # Suppress all warnings
  15900. + # to get rid of the unsigned/signed char mismatch warnings.
  15901. + CFLAGS="$CFLAGS -w"
  15902. + fi
  15903. + ;;
  15904. + m68k-atari-mint)
  15905. + ;;
  15906. + *)
  15907. + ;;
  15908. +esac
  15909. -__EOF__
  15910. +if test "$have_w32_system" = yes; then
  15911. +$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
  15912. +fi
  15913. + if test "$have_w32_system" = yes; then
  15914. + HAVE_W32_SYSTEM_TRUE=
  15915. + HAVE_W32_SYSTEM_FALSE='#'
  15916. else
  15917. - # If there is no Makefile yet, we rely on a make rule to execute
  15918. - # `config.status --recheck' to rerun these tests and create the
  15919. - # libtool script then.
  15920. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  15921. - if test -f "$ltmain_in"; then
  15922. - test -f Makefile && make "$ltmain"
  15923. - fi
  15924. + HAVE_W32_SYSTEM_TRUE='#'
  15925. + HAVE_W32_SYSTEM_FALSE=
  15926. fi
  15927. -ac_ext=c
  15928. -ac_cpp='$CPP $CPPFLAGS'
  15929. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15930. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15931. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15932. -CC=$lt_save_CC
  15933. -LDCXX=$LD
  15934. -LD=$lt_save_LD
  15935. -GCC=$lt_save_GCC
  15936. -with_gnu_ldcxx=$with_gnu_ld
  15937. -with_gnu_ld=$lt_save_with_gnu_ld
  15938. -lt_cv_path_LDCXX=$lt_cv_path_LD
  15939. -lt_cv_path_LD=$lt_save_path_LD
  15940. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15941. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15942. - else
  15943. - tagname=""
  15944. - fi
  15945. - ;;
  15946. +# A printable OS Name is sometimes useful.
  15947. +case "${host}" in
  15948. + *-*-mingw32*)
  15949. + PRINTABLE_OS_NAME="MingW32"
  15950. + ;;
  15951. - F77)
  15952. - if test -n "$F77" && test "X$F77" != "Xno"; then
  15953. + i?86-emx-os2 | i?86-*-os2*emx )
  15954. + PRINTABLE_OS_NAME="OS/2"
  15955. + ;;
  15956. -ac_ext=f
  15957. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  15958. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15959. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  15960. -
  15961. -
  15962. -archive_cmds_need_lc_F77=no
  15963. -allow_undefined_flag_F77=
  15964. -always_export_symbols_F77=no
  15965. -archive_expsym_cmds_F77=
  15966. -export_dynamic_flag_spec_F77=
  15967. -hardcode_direct_F77=no
  15968. -hardcode_libdir_flag_spec_F77=
  15969. -hardcode_libdir_flag_spec_ld_F77=
  15970. -hardcode_libdir_separator_F77=
  15971. -hardcode_minus_L_F77=no
  15972. -hardcode_automatic_F77=no
  15973. -module_cmds_F77=
  15974. -module_expsym_cmds_F77=
  15975. -link_all_deplibs_F77=unknown
  15976. -old_archive_cmds_F77=$old_archive_cmds
  15977. -no_undefined_flag_F77=
  15978. -whole_archive_flag_spec_F77=
  15979. -enable_shared_with_static_runtimes_F77=no
  15980. + i?86-*-msdosdjgpp*)
  15981. + PRINTABLE_OS_NAME="MSDOS/DJGPP"
  15982. + ;;
  15983. -# Source file extension for f77 test sources.
  15984. -ac_ext=f
  15985. + *-linux*)
  15986. + PRINTABLE_OS_NAME="GNU/Linux"
  15987. + ;;
  15988. -# Object file extension for compiled f77 test sources.
  15989. -objext=o
  15990. -objext_F77=$objext
  15991. + *)
  15992. + PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
  15993. + ;;
  15994. +esac
  15995. -# Code to be used in simple compile tests
  15996. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  15997. +#
  15998. +# Figure out the name of the random device
  15999. +#
  16000. +case "${host}" in
  16001. + *-openbsd*)
  16002. + NAME_OF_DEV_RANDOM="/dev/srandom"
  16003. + NAME_OF_DEV_URANDOM="/dev/urandom"
  16004. + ;;
  16005. -# Code to be used in simple link tests
  16006. -lt_simple_link_test_code=" program t\n end\n"
  16007. + *)
  16008. + NAME_OF_DEV_RANDOM="/dev/random"
  16009. + NAME_OF_DEV_URANDOM="/dev/urandom"
  16010. + ;;
  16011. +esac
  16012. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  16013. -# If no C compiler was specified, use CC.
  16014. -LTCC=${LTCC-"$CC"}
  16015. +# Check whether --enable-endian-check was given.
  16016. +if test "${enable_endian_check+set}" = set; then :
  16017. + enableval=$enable_endian_check; endiancheck=$enableval
  16018. +else
  16019. + endiancheck=yes
  16020. +fi
  16021. -# Allow CC to be a program name with arguments.
  16022. -compiler=$CC
  16023. +if test x"$endiancheck" = xyes ; then
  16024. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16025. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  16026. +if test "${ac_cv_c_bigendian+set}" = set; then :
  16027. + $as_echo_n "(cached) " >&6
  16028. +else
  16029. + ac_cv_c_bigendian=unknown
  16030. + # See if we're dealing with a universal compiler.
  16031. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16032. +/* end confdefs.h. */
  16033. +#ifndef __APPLE_CC__
  16034. + not a universal capable compiler
  16035. + #endif
  16036. + typedef int dummy;
  16037. +_ACEOF
  16038. +if ac_fn_c_try_compile "$LINENO"; then :
  16039. -# Allow CC to be a program name with arguments.
  16040. -lt_save_CC="$CC"
  16041. -CC=${F77-"f77"}
  16042. -compiler=$CC
  16043. -compiler_F77=$CC
  16044. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  16045. + # Check for potential -arch flags. It is not universal unless
  16046. + # there are at least two -arch flags with different values.
  16047. + ac_arch=
  16048. + ac_prev=
  16049. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16050. + if test -n "$ac_prev"; then
  16051. + case $ac_word in
  16052. + i?86 | x86_64 | ppc | ppc64)
  16053. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16054. + ac_arch=$ac_word
  16055. + else
  16056. + ac_cv_c_bigendian=universal
  16057. + break
  16058. + fi
  16059. + ;;
  16060. + esac
  16061. + ac_prev=
  16062. + elif test "x$ac_word" = "x-arch"; then
  16063. + ac_prev=arch
  16064. + fi
  16065. + done
  16066. +fi
  16067. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16068. + if test $ac_cv_c_bigendian = unknown; then
  16069. + # See if sys/param.h defines the BYTE_ORDER macro.
  16070. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16071. +/* end confdefs.h. */
  16072. +#include <sys/types.h>
  16073. + #include <sys/param.h>
  16074. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  16075. -$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  16076. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  16077. -$as_echo "$can_build_shared" >&6; }
  16078. +int
  16079. +main ()
  16080. +{
  16081. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16082. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16083. + && LITTLE_ENDIAN)
  16084. + bogus endian macros
  16085. + #endif
  16086. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  16087. -$as_echo_n "checking whether to build shared libraries... " >&6; }
  16088. -test "$can_build_shared" = "no" && enable_shared=no
  16089. + ;
  16090. + return 0;
  16091. +}
  16092. +_ACEOF
  16093. +if ac_fn_c_try_compile "$LINENO"; then :
  16094. + # It does; now see whether it defined to BIG_ENDIAN or not.
  16095. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16096. +/* end confdefs.h. */
  16097. +#include <sys/types.h>
  16098. + #include <sys/param.h>
  16099. -# On AIX, shared libraries and static libraries use the same namespace, and
  16100. -# are all built from PIC.
  16101. -case "$host_os" in
  16102. -aix3*)
  16103. - test "$enable_shared" = yes && enable_static=no
  16104. - if test -n "$RANLIB"; then
  16105. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  16106. - postinstall_cmds='$RANLIB $lib'
  16107. - fi
  16108. - ;;
  16109. -aix4* | aix5*)
  16110. - test "$enable_shared" = yes && enable_static=no
  16111. - ;;
  16112. -esac
  16113. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  16114. -$as_echo "$enable_shared" >&6; }
  16115. +int
  16116. +main ()
  16117. +{
  16118. +#if BYTE_ORDER != BIG_ENDIAN
  16119. + not big endian
  16120. + #endif
  16121. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  16122. -$as_echo_n "checking whether to build static libraries... " >&6; }
  16123. -# Make sure either enable_shared or enable_static is yes.
  16124. -test "$enable_shared" = yes || enable_static=yes
  16125. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  16126. -$as_echo "$enable_static" >&6; }
  16127. + ;
  16128. + return 0;
  16129. +}
  16130. +_ACEOF
  16131. +if ac_fn_c_try_compile "$LINENO"; then :
  16132. + ac_cv_c_bigendian=yes
  16133. +else
  16134. + ac_cv_c_bigendian=no
  16135. +fi
  16136. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16137. +fi
  16138. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16139. + fi
  16140. + if test $ac_cv_c_bigendian = unknown; then
  16141. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16142. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16143. +/* end confdefs.h. */
  16144. +#include <limits.h>
  16145. -test "$ld_shlibs_F77" = no && can_build_shared=no
  16146. +int
  16147. +main ()
  16148. +{
  16149. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16150. + bogus endian macros
  16151. + #endif
  16152. -GCC_F77="$G77"
  16153. -LD_F77="$LD"
  16154. + ;
  16155. + return 0;
  16156. +}
  16157. +_ACEOF
  16158. +if ac_fn_c_try_compile "$LINENO"; then :
  16159. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  16160. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16161. +/* end confdefs.h. */
  16162. +#include <limits.h>
  16163. -lt_prog_compiler_wl_F77=
  16164. -lt_prog_compiler_pic_F77=
  16165. -lt_prog_compiler_static_F77=
  16166. +int
  16167. +main ()
  16168. +{
  16169. +#ifndef _BIG_ENDIAN
  16170. + not big endian
  16171. + #endif
  16172. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  16173. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  16174. + ;
  16175. + return 0;
  16176. +}
  16177. +_ACEOF
  16178. +if ac_fn_c_try_compile "$LINENO"; then :
  16179. + ac_cv_c_bigendian=yes
  16180. +else
  16181. + ac_cv_c_bigendian=no
  16182. +fi
  16183. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16184. +fi
  16185. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16186. + fi
  16187. + if test $ac_cv_c_bigendian = unknown; then
  16188. + # Compile a test program.
  16189. + if test "$cross_compiling" = yes; then :
  16190. + # Try to guess by grepping values from an object file.
  16191. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16192. +/* end confdefs.h. */
  16193. +short int ascii_mm[] =
  16194. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16195. + short int ascii_ii[] =
  16196. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16197. + int use_ascii (int i) {
  16198. + return ascii_mm[i] + ascii_ii[i];
  16199. + }
  16200. + short int ebcdic_ii[] =
  16201. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16202. + short int ebcdic_mm[] =
  16203. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16204. + int use_ebcdic (int i) {
  16205. + return ebcdic_mm[i] + ebcdic_ii[i];
  16206. + }
  16207. + extern int foo;
  16208. - if test "$GCC" = yes; then
  16209. - lt_prog_compiler_wl_F77='-Wl,'
  16210. - lt_prog_compiler_static_F77='-static'
  16211. +int
  16212. +main ()
  16213. +{
  16214. +return use_ascii (foo) == use_ebcdic (foo);
  16215. + ;
  16216. + return 0;
  16217. +}
  16218. +_ACEOF
  16219. +if ac_fn_c_try_compile "$LINENO"; then :
  16220. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  16221. + ac_cv_c_bigendian=yes
  16222. + fi
  16223. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  16224. + if test "$ac_cv_c_bigendian" = unknown; then
  16225. + ac_cv_c_bigendian=no
  16226. + else
  16227. + # finding both strings is unlikely to happen, but who knows?
  16228. + ac_cv_c_bigendian=unknown
  16229. + fi
  16230. + fi
  16231. +fi
  16232. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16233. +else
  16234. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16235. +/* end confdefs.h. */
  16236. +$ac_includes_default
  16237. +int
  16238. +main ()
  16239. +{
  16240. - case $host_os in
  16241. - aix*)
  16242. - # All AIX code is PIC.
  16243. - if test "$host_cpu" = ia64; then
  16244. - # AIX 5 now supports IA64 processor
  16245. - lt_prog_compiler_static_F77='-Bstatic'
  16246. - fi
  16247. - ;;
  16248. + /* Are we little or big endian? From Harbison&Steele. */
  16249. + union
  16250. + {
  16251. + long int l;
  16252. + char c[sizeof (long int)];
  16253. + } u;
  16254. + u.l = 1;
  16255. + return u.c[sizeof (long int) - 1] == 1;
  16256. - amigaos*)
  16257. - # FIXME: we need at least 68020 code to build shared libraries, but
  16258. - # adding the `-m68020' flag to GCC prevents building anything better,
  16259. - # like `-m68040'.
  16260. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  16261. - ;;
  16262. + ;
  16263. + return 0;
  16264. +}
  16265. +_ACEOF
  16266. +if ac_fn_c_try_run "$LINENO"; then :
  16267. + ac_cv_c_bigendian=no
  16268. +else
  16269. + ac_cv_c_bigendian=yes
  16270. +fi
  16271. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16272. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  16273. +fi
  16274. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16275. - # PIC is the default for these OSes.
  16276. - ;;
  16277. + fi
  16278. +fi
  16279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16280. +$as_echo "$ac_cv_c_bigendian" >&6; }
  16281. + case $ac_cv_c_bigendian in #(
  16282. + yes)
  16283. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16284. +;; #(
  16285. + no)
  16286. + ;; #(
  16287. + universal)
  16288. - mingw* | pw32* | os2*)
  16289. - # This hack is so that the source file can tell whether it is being
  16290. - # built for inclusion in a dll (and should export symbols for example).
  16291. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  16292. - ;;
  16293. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16294. - darwin* | rhapsody*)
  16295. - # PIC is the default on this platform
  16296. - # Common symbols not allowed in MH_DYLIB files
  16297. - lt_prog_compiler_pic_F77='-fno-common'
  16298. - ;;
  16299. + ;; #(
  16300. + *)
  16301. + as_fn_error "unknown endianness
  16302. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16303. + esac
  16304. - msdosdjgpp*)
  16305. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  16306. - # on systems that don't support them.
  16307. - lt_prog_compiler_can_build_shared_F77=no
  16308. - enable_shared=no
  16309. - ;;
  16310. +else
  16311. - sysv4*MP*)
  16312. - if test -d /usr/nec; then
  16313. - lt_prog_compiler_pic_F77=-Kconform_pic
  16314. - fi
  16315. - ;;
  16316. +$as_echo "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
  16317. - hpux*)
  16318. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16319. - # not for PA HP-UX.
  16320. - case "$host_cpu" in
  16321. - hppa*64*|ia64*)
  16322. - # +Z the default
  16323. - ;;
  16324. - *)
  16325. - lt_prog_compiler_pic_F77='-fPIC'
  16326. - ;;
  16327. - esac
  16328. - ;;
  16329. +fi
  16330. - *)
  16331. - lt_prog_compiler_pic_F77='-fPIC'
  16332. - ;;
  16333. - esac
  16334. - else
  16335. - # PORTME Check for flag to pass linker flags through the system compiler.
  16336. - case $host_os in
  16337. - aix*)
  16338. - lt_prog_compiler_wl_F77='-Wl,'
  16339. - if test "$host_cpu" = ia64; then
  16340. - # AIX 5 now supports IA64 processor
  16341. - lt_prog_compiler_static_F77='-Bstatic'
  16342. - else
  16343. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  16344. - fi
  16345. - ;;
  16346. -
  16347. - mingw* | pw32* | os2*)
  16348. - # This hack is so that the source file can tell whether it is being
  16349. - # built for inclusion in a dll (and should export symbols for example).
  16350. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  16351. - ;;
  16352. -
  16353. - hpux9* | hpux10* | hpux11*)
  16354. - lt_prog_compiler_wl_F77='-Wl,'
  16355. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  16356. - # not for PA HP-UX.
  16357. - case "$host_cpu" in
  16358. - hppa*64*|ia64*)
  16359. - # +Z the default
  16360. - ;;
  16361. - *)
  16362. - lt_prog_compiler_pic_F77='+Z'
  16363. - ;;
  16364. - esac
  16365. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  16366. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  16367. - ;;
  16368. +# The cast to long int works around a bug in the HP C Compiler
  16369. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16370. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16371. +# This bug is HP SR number 8606223364.
  16372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
  16373. +$as_echo_n "checking size of unsigned short... " >&6; }
  16374. +if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
  16375. + $as_echo_n "(cached) " >&6
  16376. +else
  16377. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
  16378. - irix5* | irix6* | nonstopux*)
  16379. - lt_prog_compiler_wl_F77='-Wl,'
  16380. - # PIC (with -KPIC) is the default.
  16381. - lt_prog_compiler_static_F77='-non_shared'
  16382. - ;;
  16383. +else
  16384. + if test "$ac_cv_type_unsigned_short" = yes; then
  16385. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16386. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16387. +{ as_fn_set_status 77
  16388. +as_fn_error "cannot compute sizeof (unsigned short)
  16389. +See \`config.log' for more details." "$LINENO" 5; }; }
  16390. + else
  16391. + ac_cv_sizeof_unsigned_short=0
  16392. + fi
  16393. +fi
  16394. - newsos6)
  16395. - lt_prog_compiler_pic_F77='-KPIC'
  16396. - lt_prog_compiler_static_F77='-Bstatic'
  16397. - ;;
  16398. +fi
  16399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
  16400. +$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  16401. - linux*)
  16402. - case $CC in
  16403. - icc* | ecc*)
  16404. - lt_prog_compiler_wl_F77='-Wl,'
  16405. - lt_prog_compiler_pic_F77='-KPIC'
  16406. - lt_prog_compiler_static_F77='-static'
  16407. - ;;
  16408. - ccc*)
  16409. - lt_prog_compiler_wl_F77='-Wl,'
  16410. - # All Alpha code is PIC.
  16411. - lt_prog_compiler_static_F77='-non_shared'
  16412. - ;;
  16413. - esac
  16414. - ;;
  16415. - osf3* | osf4* | osf5*)
  16416. - lt_prog_compiler_wl_F77='-Wl,'
  16417. - # All OSF/1 code is PIC.
  16418. - lt_prog_compiler_static_F77='-non_shared'
  16419. - ;;
  16420. - sco3.2v5*)
  16421. - lt_prog_compiler_pic_F77='-Kpic'
  16422. - lt_prog_compiler_static_F77='-dn'
  16423. - ;;
  16424. +cat >>confdefs.h <<_ACEOF
  16425. +#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  16426. +_ACEOF
  16427. - solaris*)
  16428. - lt_prog_compiler_wl_F77='-Wl,'
  16429. - lt_prog_compiler_pic_F77='-KPIC'
  16430. - lt_prog_compiler_static_F77='-Bstatic'
  16431. - ;;
  16432. - sunos4*)
  16433. - lt_prog_compiler_wl_F77='-Qoption ld '
  16434. - lt_prog_compiler_pic_F77='-PIC'
  16435. - lt_prog_compiler_static_F77='-Bstatic'
  16436. - ;;
  16437. +# The cast to long int works around a bug in the HP C Compiler
  16438. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16439. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16440. +# This bug is HP SR number 8606223364.
  16441. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
  16442. +$as_echo_n "checking size of unsigned int... " >&6; }
  16443. +if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
  16444. + $as_echo_n "(cached) " >&6
  16445. +else
  16446. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
  16447. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16448. - lt_prog_compiler_wl_F77='-Wl,'
  16449. - lt_prog_compiler_pic_F77='-KPIC'
  16450. - lt_prog_compiler_static_F77='-Bstatic'
  16451. - ;;
  16452. +else
  16453. + if test "$ac_cv_type_unsigned_int" = yes; then
  16454. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16455. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16456. +{ as_fn_set_status 77
  16457. +as_fn_error "cannot compute sizeof (unsigned int)
  16458. +See \`config.log' for more details." "$LINENO" 5; }; }
  16459. + else
  16460. + ac_cv_sizeof_unsigned_int=0
  16461. + fi
  16462. +fi
  16463. - sysv4*MP*)
  16464. - if test -d /usr/nec ;then
  16465. - lt_prog_compiler_pic_F77='-Kconform_pic'
  16466. - lt_prog_compiler_static_F77='-Bstatic'
  16467. - fi
  16468. - ;;
  16469. +fi
  16470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
  16471. +$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  16472. - uts4*)
  16473. - lt_prog_compiler_pic_F77='-pic'
  16474. - lt_prog_compiler_static_F77='-Bstatic'
  16475. - ;;
  16476. - *)
  16477. - lt_prog_compiler_can_build_shared_F77=no
  16478. - ;;
  16479. - esac
  16480. - fi
  16481. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
  16482. -$as_echo "$lt_prog_compiler_pic_F77" >&6; }
  16483. +cat >>confdefs.h <<_ACEOF
  16484. +#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  16485. +_ACEOF
  16486. -#
  16487. -# Check to make sure the PIC flag actually works.
  16488. -#
  16489. -if test -n "$lt_prog_compiler_pic_F77"; then
  16490. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  16491. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
  16492. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then :
  16493. +# The cast to long int works around a bug in the HP C Compiler
  16494. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16495. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16496. +# This bug is HP SR number 8606223364.
  16497. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  16498. +$as_echo_n "checking size of unsigned long... " >&6; }
  16499. +if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  16500. $as_echo_n "(cached) " >&6
  16501. else
  16502. - lt_prog_compiler_pic_works_F77=no
  16503. - ac_outfile=conftest.$ac_objext
  16504. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16505. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  16506. - # Insert the option either (1) after the last *FLAGS variable, or
  16507. - # (2) before a word containing "conftest.", or (3) at the end.
  16508. - # Note that $ac_compile itself does not contain backslashes and begins
  16509. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  16510. - # The option is referenced via a variable to avoid confusing sed.
  16511. - lt_compile=`echo "$ac_compile" | $SED \
  16512. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16513. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16514. - -e 's:$: $lt_compiler_flag:'`
  16515. - (eval echo "\"\$as_me:14386: $lt_compile\"" >&5)
  16516. - (eval "$lt_compile" 2>conftest.err)
  16517. - ac_status=$?
  16518. - cat conftest.err >&5
  16519. - echo "$as_me:14390: \$? = $ac_status" >&5
  16520. - if (exit $ac_status) && test -s "$ac_outfile"; then
  16521. - # The compiler can only warn and ignore the option if not recognized
  16522. - # So say no if there are warnings
  16523. - if test ! -s conftest.err; then
  16524. - lt_prog_compiler_pic_works_F77=yes
  16525. - fi
  16526. - fi
  16527. - $rm conftest*
  16528. -
  16529. -fi
  16530. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
  16531. -$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
  16532. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  16533. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  16534. - case $lt_prog_compiler_pic_F77 in
  16535. - "" | " "*) ;;
  16536. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  16537. - esac
  16538. else
  16539. - lt_prog_compiler_pic_F77=
  16540. - lt_prog_compiler_can_build_shared_F77=no
  16541. + if test "$ac_cv_type_unsigned_long" = yes; then
  16542. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16543. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16544. +{ as_fn_set_status 77
  16545. +as_fn_error "cannot compute sizeof (unsigned long)
  16546. +See \`config.log' for more details." "$LINENO" 5; }; }
  16547. + else
  16548. + ac_cv_sizeof_unsigned_long=0
  16549. + fi
  16550. fi
  16551. fi
  16552. -case "$host_os" in
  16553. - # For platforms which do not support PIC, -DPIC is meaningless:
  16554. - *djgpp*)
  16555. - lt_prog_compiler_pic_F77=
  16556. - ;;
  16557. - *)
  16558. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  16559. - ;;
  16560. -esac
  16561. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  16562. +$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  16563. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  16564. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  16565. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
  16566. +
  16567. +
  16568. +cat >>confdefs.h <<_ACEOF
  16569. +#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  16570. +_ACEOF
  16571. +
  16572. +
  16573. +# The cast to long int works around a bug in the HP C Compiler
  16574. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16575. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16576. +# This bug is HP SR number 8606223364.
  16577. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  16578. +$as_echo_n "checking size of unsigned long long... " >&6; }
  16579. +if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
  16580. $as_echo_n "(cached) " >&6
  16581. else
  16582. - lt_cv_prog_compiler_c_o_F77=no
  16583. - $rm -r conftest 2>/dev/null
  16584. - mkdir conftest
  16585. - cd conftest
  16586. - mkdir out
  16587. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  16588. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  16589. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  16590. - # Insert the option either (1) after the last *FLAGS variable, or
  16591. - # (2) before a word containing "conftest.", or (3) at the end.
  16592. - # Note that $ac_compile itself does not contain backslashes and begins
  16593. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  16594. - lt_compile=`echo "$ac_compile" | $SED \
  16595. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  16596. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16597. - -e 's:$: $lt_compiler_flag:'`
  16598. - (eval echo "\"\$as_me:14446: $lt_compile\"" >&5)
  16599. - (eval "$lt_compile" 2>out/conftest.err)
  16600. - ac_status=$?
  16601. - cat out/conftest.err >&5
  16602. - echo "$as_me:14450: \$? = $ac_status" >&5
  16603. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16604. - then
  16605. - # The compiler can only warn and ignore the option if not recognized
  16606. - # So say no if there are warnings
  16607. - if test ! -s out/conftest.err; then
  16608. - lt_cv_prog_compiler_c_o_F77=yes
  16609. - fi
  16610. +else
  16611. + if test "$ac_cv_type_unsigned_long_long" = yes; then
  16612. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16613. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16614. +{ as_fn_set_status 77
  16615. +as_fn_error "cannot compute sizeof (unsigned long long)
  16616. +See \`config.log' for more details." "$LINENO" 5; }; }
  16617. + else
  16618. + ac_cv_sizeof_unsigned_long_long=0
  16619. fi
  16620. - chmod u+w .
  16621. - $rm conftest*
  16622. - # SGI C++ compiler will create directory out/ii_files/ for
  16623. - # template instantiation
  16624. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  16625. - $rm out/* && rmdir out
  16626. - cd ..
  16627. - rmdir conftest
  16628. - $rm conftest*
  16629. +fi
  16630. fi
  16631. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
  16632. -$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
  16633. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  16634. +$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  16635. -hard_links="nottested"
  16636. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  16637. - # do not overwrite the value of need_locks provided by the user
  16638. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  16639. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  16640. - hard_links=yes
  16641. - $rm conftest*
  16642. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16643. - touch conftest.a
  16644. - ln conftest.a conftest.b 2>&5 || hard_links=no
  16645. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16646. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  16647. -$as_echo "$hard_links" >&6; }
  16648. - if test "$hard_links" = no; then
  16649. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  16650. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  16651. - need_locks=warn
  16652. - fi
  16653. -else
  16654. - need_locks=no
  16655. -fi
  16656. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  16657. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  16658. +cat >>confdefs.h <<_ACEOF
  16659. +#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  16660. +_ACEOF
  16661. - runpath_var=
  16662. - allow_undefined_flag_F77=
  16663. - enable_shared_with_static_runtimes_F77=no
  16664. - archive_cmds_F77=
  16665. - archive_expsym_cmds_F77=
  16666. - old_archive_From_new_cmds_F77=
  16667. - old_archive_from_expsyms_cmds_F77=
  16668. - export_dynamic_flag_spec_F77=
  16669. - whole_archive_flag_spec_F77=
  16670. - thread_safe_flag_spec_F77=
  16671. - hardcode_libdir_flag_spec_F77=
  16672. - hardcode_libdir_flag_spec_ld_F77=
  16673. - hardcode_libdir_separator_F77=
  16674. - hardcode_direct_F77=no
  16675. - hardcode_minus_L_F77=no
  16676. - hardcode_shlibpath_var_F77=unsupported
  16677. - link_all_deplibs_F77=unknown
  16678. - hardcode_automatic_F77=no
  16679. - module_cmds_F77=
  16680. - module_expsym_cmds_F77=
  16681. - always_export_symbols_F77=no
  16682. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  16683. - # include_expsyms should be a list of space-separated symbols to be *always*
  16684. - # included in the symbol list
  16685. - include_expsyms_F77=
  16686. - # exclude_expsyms can be an extended regexp of symbols to exclude
  16687. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  16688. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  16689. - # as well as any symbol that contains `d'.
  16690. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  16691. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  16692. - # platforms (ab)use it in PIC code, but their linkers get confused if
  16693. - # the symbol is explicitly referenced. Since portable code cannot
  16694. - # rely on this symbol name, it's probably fine to never include it in
  16695. - # preloaded symbol tables.
  16696. - extract_expsyms_cmds=
  16697. - case $host_os in
  16698. - cygwin* | mingw* | pw32*)
  16699. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  16700. - # When not using gcc, we currently assume that we are using
  16701. - # Microsoft Visual C++.
  16702. - if test "$GCC" != yes; then
  16703. - with_gnu_ld=no
  16704. - fi
  16705. - ;;
  16706. - openbsd*)
  16707. - with_gnu_ld=no
  16708. - ;;
  16709. - esac
  16710. - ld_shlibs_F77=yes
  16711. - if test "$with_gnu_ld" = yes; then
  16712. - # If archive_cmds runs LD, not CC, wlarc should be empty
  16713. - wlarc='${wl}'
  16714. - # See if GNU ld supports shared libraries.
  16715. - case $host_os in
  16716. - aix3* | aix4* | aix5*)
  16717. - # On AIX/PPC, the GNU linker is very broken
  16718. - if test "$host_cpu" != ia64; then
  16719. - ld_shlibs_F77=no
  16720. - cat <<EOF 1>&2
  16721. + ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  16722. +if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  16723. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  16724. -*** to be unable to reliably create shared libraries on AIX.
  16725. -*** Therefore, libtool is disabling shared libraries support. If you
  16726. -*** really care for shared libraries, you may want to modify your PATH
  16727. -*** so that a non-GNU linker is found, and then restart.
  16728. +$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  16729. -EOF
  16730. - fi
  16731. - ;;
  16732. +else
  16733. + for ac_type in 'unsigned int' 'unsigned long int' \
  16734. + 'unsigned long long int'; do
  16735. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16736. +/* end confdefs.h. */
  16737. +$ac_includes_default
  16738. +int
  16739. +main ()
  16740. +{
  16741. +static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  16742. +test_array [0] = 0
  16743. - amigaos*)
  16744. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  16745. - hardcode_libdir_flag_spec_F77='-L$libdir'
  16746. - hardcode_minus_L_F77=yes
  16747. -
  16748. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  16749. - # that the semantics of dynamic libraries on AmigaOS, at least up
  16750. - # to version 4, is to share data among multiple programs linked
  16751. - # with the same dynamic library. Since this doesn't match the
  16752. - # behavior of shared libraries on other platforms, we can't use
  16753. - # them.
  16754. - ld_shlibs_F77=no
  16755. - ;;
  16756. + ;
  16757. + return 0;
  16758. +}
  16759. +_ACEOF
  16760. +if ac_fn_c_try_compile "$LINENO"; then :
  16761. - beos*)
  16762. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16763. - allow_undefined_flag_F77=unsupported
  16764. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16765. - # support --undefined. This deserves some investigation. FIXME
  16766. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16767. - else
  16768. - ld_shlibs_F77=no
  16769. - fi
  16770. - ;;
  16771. +cat >>confdefs.h <<_ACEOF
  16772. +#define uintptr_t $ac_type
  16773. +_ACEOF
  16774. - cygwin* | mingw* | pw32*)
  16775. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  16776. - # as there is no search path for DLLs.
  16777. - hardcode_libdir_flag_spec_F77='-L$libdir'
  16778. - allow_undefined_flag_F77=unsupported
  16779. - always_export_symbols_F77=no
  16780. - enable_shared_with_static_runtimes_F77=yes
  16781. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  16782. + ac_type=
  16783. +fi
  16784. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16785. + test -z "$ac_type" && break
  16786. + done
  16787. +fi
  16788. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  16789. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  16790. - # If the export-symbols file already is a .def file (1st line
  16791. - # is EXPORTS), use it as is; otherwise, prepend...
  16792. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16793. - cp $export_symbols $output_objdir/$soname.def;
  16794. - else
  16795. - echo EXPORTS > $output_objdir/$soname.def;
  16796. - cat $export_symbols >> $output_objdir/$soname.def;
  16797. - fi~
  16798. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  16799. - else
  16800. - ld_shlibs=no
  16801. - fi
  16802. - ;;
  16803. - netbsd* | knetbsd*-gnu)
  16804. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16805. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  16806. - wlarc=
  16807. - else
  16808. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16809. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16810. - fi
  16811. - ;;
  16812. - solaris* | sysv5*)
  16813. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  16814. - ld_shlibs_F77=no
  16815. - cat <<EOF 1>&2
  16816. +if test "$ac_cv_sizeof_unsigned_short" = "0" \
  16817. + || test "$ac_cv_sizeof_unsigned_int" = "0" \
  16818. + || test "$ac_cv_sizeof_unsigned_long" = "0"; then
  16819. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
  16820. +$as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
  16821. +fi
  16822. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  16823. -*** create shared libraries on Solaris systems. Therefore, libtool
  16824. -*** is disabling shared libraries support. We urge you to upgrade GNU
  16825. -*** binutils to release 2.9.1 or newer. Another option is to modify
  16826. -*** your PATH or compiler configuration so that the native linker is
  16827. -*** used, and then restart.
  16828. +# Do we have any 64-bit data types?
  16829. +if test "$ac_cv_sizeof_unsigned_int" != "8" \
  16830. + && test "$ac_cv_sizeof_unsigned_long" != "8" \
  16831. + && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
  16832. + && test "$ac_cv_sizeof_uint64_t" != "8"; then
  16833. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64-bit types. Disabling TIGER/192, SHA-384, and SHA-512" >&5
  16834. +$as_echo "$as_me: WARNING: No 64-bit types. Disabling TIGER/192, SHA-384, and SHA-512" >&2;}
  16835. +else
  16836. + available_digests="$available_digests $available_digests_64"
  16837. +fi
  16838. -EOF
  16839. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16840. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16841. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16842. - else
  16843. - ld_shlibs_F77=no
  16844. - fi
  16845. - ;;
  16846. +# If not specified otherwise, all available algorithms will be
  16847. +# included.
  16848. +default_ciphers="$available_ciphers"
  16849. +default_pubkey_ciphers="$available_pubkey_ciphers"
  16850. +default_digests="$available_digests"
  16851. - sunos4*)
  16852. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16853. - wlarc=
  16854. - hardcode_direct_F77=yes
  16855. - hardcode_shlibpath_var_F77=no
  16856. - ;;
  16857. +############################
  16858. +## Command line switches. ##
  16859. +############################
  16860. - linux*)
  16861. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16862. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16863. - archive_cmds_F77="$tmp_archive_cmds"
  16864. - supports_anon_versioning=no
  16865. - case `$LD -v 2>/dev/null` in
  16866. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  16867. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  16868. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  16869. - *\ 2.11.*) ;; # other 2.11 versions
  16870. - *) supports_anon_versioning=yes ;;
  16871. - esac
  16872. - if test $supports_anon_versioning = yes; then
  16873. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  16874. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16875. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  16876. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16877. - else
  16878. - archive_expsym_cmds_F77="$tmp_archive_cmds"
  16879. - fi
  16880. - link_all_deplibs_F77=no
  16881. - else
  16882. - ld_shlibs_F77=no
  16883. - fi
  16884. - ;;
  16885. +# Implementation of the --enable-ciphers switch.
  16886. +# Check whether --enable-ciphers was given.
  16887. +if test "${enable_ciphers+set}" = set; then :
  16888. + enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
  16889. +else
  16890. + enabled_ciphers=""
  16891. +fi
  16892. - *)
  16893. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  16894. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16895. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16896. - else
  16897. - ld_shlibs_F77=no
  16898. - fi
  16899. - ;;
  16900. - esac
  16901. +if test "x$enabled_ciphers" = "x" \
  16902. + -o "$enabled_ciphers" = "yes" \
  16903. + -o "$enabled_ciphers" = "no"; then
  16904. + enabled_ciphers=$default_ciphers
  16905. +fi
  16906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
  16907. +$as_echo_n "checking which symmetric ciphers to include... " >&6; }
  16908. +for cipher in $enabled_ciphers; do
  16909. - if test "$ld_shlibs_F77" = yes; then
  16910. - runpath_var=LD_RUN_PATH
  16911. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  16912. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  16913. - # ancient GNU ld didn't support --whole-archive et. al.
  16914. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  16915. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16916. - else
  16917. - whole_archive_flag_spec_F77=
  16918. - fi
  16919. - fi
  16920. - else
  16921. - # PORTME fill in a description of your system's linker (not GNU ld)
  16922. - case $host_os in
  16923. - aix3*)
  16924. - allow_undefined_flag_F77=unsupported
  16925. - always_export_symbols_F77=yes
  16926. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  16927. - # Note: this linker hardcodes the directories in LIBPATH if there
  16928. - # are no directories specified by -L.
  16929. - hardcode_minus_L_F77=yes
  16930. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  16931. - # Neither direct hardcoding nor static linking is supported with a
  16932. - # broken collect2.
  16933. - hardcode_direct_F77=unsupported
  16934. - fi
  16935. - ;;
  16936. +name=$cipher
  16937. +list=$available_ciphers
  16938. +found=0
  16939. - aix4* | aix5*)
  16940. - if test "$host_cpu" = ia64; then
  16941. - # On IA64, the linker does run time linking by default, so we don't
  16942. - # have to do anything special.
  16943. - aix_use_runtimelinking=no
  16944. - exp_sym_flag='-Bexport'
  16945. - no_entry_flag=""
  16946. - else
  16947. - # If we're using GNU nm, then we don't want the "-C" option.
  16948. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  16949. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  16950. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  16951. - else
  16952. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  16953. - fi
  16954. - aix_use_runtimelinking=no
  16955. +for n in $list; do
  16956. + if test "x$name" = "x$n"; then
  16957. + found=1
  16958. + fi
  16959. +done
  16960. - # Test if we are trying to use run time linking or normal
  16961. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16962. - # need to do runtime linking.
  16963. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  16964. - for ld_flag in $LDFLAGS; do
  16965. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  16966. - aix_use_runtimelinking=yes
  16967. - break
  16968. - fi
  16969. - done
  16970. - esac
  16971. + if test "$found" = "0"; then
  16972. + as_fn_error "unsupported cipher \"$cipher\" specified" "$LINENO" 5
  16973. + fi
  16974. +done
  16975. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
  16976. +$as_echo "$enabled_ciphers" >&6; }
  16977. - exp_sym_flag='-bexport'
  16978. - no_entry_flag='-bnoentry'
  16979. - fi
  16980. +# Implementation of the --enable-pubkey-ciphers switch.
  16981. +# Check whether --enable-pubkey-ciphers was given.
  16982. +if test "${enable_pubkey_ciphers+set}" = set; then :
  16983. + enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
  16984. +else
  16985. + enabled_pubkey_ciphers=""
  16986. +fi
  16987. - # When large executables or shared objects are built, AIX ld can
  16988. - # have problems creating the table of contents. If linking a library
  16989. - # or program results in "error TOC overflow" add -mminimal-toc to
  16990. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  16991. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16992. +if test "x$enabled_pubkey_ciphers" = "x" \
  16993. + -o "$enabled_pubkey_ciphers" = "yes" \
  16994. + -o "$enabled_pubkey_ciphers" = "no"; then
  16995. + enabled_pubkey_ciphers=$default_pubkey_ciphers
  16996. +fi
  16997. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
  16998. +$as_echo_n "checking which public-key ciphers to include... " >&6; }
  16999. +for cipher in $enabled_pubkey_ciphers; do
  17000. - archive_cmds_F77=''
  17001. - hardcode_direct_F77=yes
  17002. - hardcode_libdir_separator_F77=':'
  17003. - link_all_deplibs_F77=yes
  17004. +name=$cipher
  17005. +list=$available_pubkey_ciphers
  17006. +found=0
  17007. - if test "$GCC" = yes; then
  17008. - case $host_os in aix4.012|aix4.012.*)
  17009. - # We only want to do this on AIX 4.2 and lower, the check
  17010. - # below for broken collect2 doesn't work under 4.3+
  17011. - collect2name=`${CC} -print-prog-name=collect2`
  17012. - if test -f "$collect2name" && \
  17013. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  17014. - then
  17015. - # We have reworked collect2
  17016. - hardcode_direct_F77=yes
  17017. - else
  17018. - # We have old collect2
  17019. - hardcode_direct_F77=unsupported
  17020. - # It fails to find uninstalled libraries when the uninstalled
  17021. - # path is not listed in the libpath. Setting hardcode_minus_L
  17022. - # to unsupported forces relinking
  17023. - hardcode_minus_L_F77=yes
  17024. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17025. - hardcode_libdir_separator_F77=
  17026. - fi
  17027. - esac
  17028. - shared_flag='-shared'
  17029. - else
  17030. - # not using gcc
  17031. - if test "$host_cpu" = ia64; then
  17032. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  17033. - # chokes on -Wl,-G. The following line is correct:
  17034. - shared_flag='-G'
  17035. - else
  17036. - if test "$aix_use_runtimelinking" = yes; then
  17037. - shared_flag='${wl}-G'
  17038. - else
  17039. - shared_flag='${wl}-bM:SRE'
  17040. - fi
  17041. - fi
  17042. - fi
  17043. +for n in $list; do
  17044. + if test "x$name" = "x$n"; then
  17045. + found=1
  17046. + fi
  17047. +done
  17048. - # It seems that -bexpall does not export symbols beginning with
  17049. - # underscore (_), so it is better to generate a list of symbols to export.
  17050. - always_export_symbols_F77=yes
  17051. - if test "$aix_use_runtimelinking" = yes; then
  17052. - # Warning - without using the other runtime loading flags (-brtl),
  17053. - # -berok will link without error, but may produce a broken library.
  17054. - allow_undefined_flag_F77='-berok'
  17055. - # Determine the default libpath from the value encoded in an empty executable.
  17056. - cat > conftest.$ac_ext <<_ACEOF
  17057. - program main
  17058. + if test "$found" = "0"; then
  17059. + as_fn_error "unsupported public-key cipher specified" "$LINENO" 5
  17060. + fi
  17061. +done
  17062. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
  17063. +$as_echo "$enabled_pubkey_ciphers" >&6; }
  17064. - end
  17065. -_ACEOF
  17066. -if ac_fn_f77_try_link "$LINENO"; then :
  17067. +# Implementation of the --enable-digests switch.
  17068. +# Check whether --enable-digests was given.
  17069. +if test "${enable_digests+set}" = set; then :
  17070. + enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
  17071. +else
  17072. + enabled_digests=""
  17073. +fi
  17074. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17075. -}'`
  17076. -# Check for a 64-bit object if we didn't find anything.
  17077. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17078. -}'`; fi
  17079. +if test "x$enabled_digests" = "x" \
  17080. + -o "$enabled_digests" = "yes" \
  17081. + -o "$enabled_digests" = "no"; then
  17082. + enabled_digests=$default_digests
  17083. fi
  17084. -rm -f core conftest.err conftest.$ac_objext \
  17085. - conftest$ac_exeext conftest.$ac_ext
  17086. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17087. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
  17088. +$as_echo_n "checking which message digests to include... " >&6; }
  17089. +for digest in $enabled_digests; do
  17090. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  17091. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  17092. - else
  17093. - if test "$host_cpu" = ia64; then
  17094. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  17095. - allow_undefined_flag_F77="-z nodefs"
  17096. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  17097. - else
  17098. - # Determine the default libpath from the value encoded in an empty executable.
  17099. - cat > conftest.$ac_ext <<_ACEOF
  17100. - program main
  17101. +name=$digest
  17102. +list=$available_digests
  17103. +found=0
  17104. - end
  17105. -_ACEOF
  17106. -if ac_fn_f77_try_link "$LINENO"; then :
  17107. +for n in $list; do
  17108. + if test "x$name" = "x$n"; then
  17109. + found=1
  17110. + fi
  17111. +done
  17112. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17113. -}'`
  17114. -# Check for a 64-bit object if we didn't find anything.
  17115. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  17116. -}'`; fi
  17117. -fi
  17118. -rm -f core conftest.err conftest.$ac_objext \
  17119. - conftest$ac_exeext conftest.$ac_ext
  17120. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  17121. + if test "$found" = "0"; then
  17122. + as_fn_error "unsupported message digest specified" "$LINENO" 5
  17123. + fi
  17124. +done
  17125. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
  17126. +$as_echo "$enabled_digests" >&6; }
  17127. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  17128. - # Warning - without using the other run time loading flags,
  17129. - # -berok will link without error, but may produce a broken library.
  17130. - no_undefined_flag_F77=' ${wl}-bernotok'
  17131. - allow_undefined_flag_F77=' ${wl}-berok'
  17132. - # -bexpall does not export symbols beginning with underscore (_)
  17133. - always_export_symbols_F77=yes
  17134. - # Exported symbols can be pulled into shared objects from archives
  17135. - whole_archive_flag_spec_F77=' '
  17136. - archive_cmds_need_lc_F77=yes
  17137. - # This is similar to how AIX traditionally builds it's shared libraries.
  17138. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  17139. - fi
  17140. - fi
  17141. - ;;
  17142. +# Implementation of the --enable-random switch.
  17143. +# Check whether --enable-random was given.
  17144. +if test "${enable_random+set}" = set; then :
  17145. + enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
  17146. +fi
  17147. - amigaos*)
  17148. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  17149. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17150. - hardcode_minus_L_F77=yes
  17151. - # see comment about different semantics on the GNU ld section
  17152. - ld_shlibs_F77=no
  17153. - ;;
  17154. +if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
  17155. + random=default
  17156. +fi
  17157. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
  17158. +$as_echo_n "checking which random module to use... " >&6; }
  17159. +if test "$random" != "default" -a "$random" != "auto"; then
  17160. - bsdi4*)
  17161. - export_dynamic_flag_spec_F77=-rdynamic
  17162. - ;;
  17163. +name=$random
  17164. +list=$available_random_modules
  17165. +found=0
  17166. - cygwin* | mingw* | pw32*)
  17167. - # When not using gcc, we currently assume that we are using
  17168. - # Microsoft Visual C++.
  17169. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  17170. - # no search path for DLLs.
  17171. - hardcode_libdir_flag_spec_F77=' '
  17172. - allow_undefined_flag_F77=unsupported
  17173. - # Tell ltmain to make .lib files, not .a files.
  17174. - libext=lib
  17175. - # Tell ltmain to make .dll files, not .so files.
  17176. - shrext_cmds=".dll"
  17177. - # FIXME: Setting linknames here is a bad hack.
  17178. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  17179. - # The linker will automatically build a .lib file if we build a DLL.
  17180. - old_archive_From_new_cmds_F77='true'
  17181. - # FIXME: Should let the user specify the lib program.
  17182. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  17183. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  17184. - enable_shared_with_static_runtimes_F77=yes
  17185. - ;;
  17186. +for n in $list; do
  17187. + if test "x$name" = "x$n"; then
  17188. + found=1
  17189. + fi
  17190. +done
  17191. - darwin* | rhapsody*)
  17192. - if test "$GXX" = yes ; then
  17193. - archive_cmds_need_lc_F77=no
  17194. - case "$host_os" in
  17195. - rhapsody* | darwin1.[012])
  17196. - allow_undefined_flag_F77='-undefined suppress'
  17197. - ;;
  17198. - *) # Darwin 1.3 on
  17199. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  17200. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  17201. - else
  17202. - case ${MACOSX_DEPLOYMENT_TARGET} in
  17203. - 10.[012])
  17204. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  17205. - ;;
  17206. - 10.*)
  17207. - allow_undefined_flag_F77='-undefined dynamic_lookup'
  17208. - ;;
  17209. - esac
  17210. - fi
  17211. - ;;
  17212. - esac
  17213. - lt_int_apple_cc_single_mod=no
  17214. - output_verbose_link_cmd='echo'
  17215. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  17216. - lt_int_apple_cc_single_mod=yes
  17217. - fi
  17218. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17219. - archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17220. - else
  17221. - archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17222. - fi
  17223. - module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17224. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  17225. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17226. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17227. - else
  17228. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17229. - fi
  17230. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17231. - hardcode_direct_F77=no
  17232. - hardcode_automatic_F77=yes
  17233. - hardcode_shlibpath_var_F77=unsupported
  17234. - whole_archive_flag_spec_F77='-all_load $convenience'
  17235. - link_all_deplibs_F77=yes
  17236. - else
  17237. - ld_shlibs_F77=no
  17238. + if test "$found" = "0"; then
  17239. + as_fn_error "unsupported random module specified" "$LINENO" 5
  17240. fi
  17241. - ;;
  17242. +fi
  17243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random" >&5
  17244. +$as_echo "$random" >&6; }
  17245. - dgux*)
  17246. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17247. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17248. - hardcode_shlibpath_var_F77=no
  17249. - ;;
  17250. +# Implementation of the --disable-dev-random switch.
  17251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
  17252. +$as_echo_n "checking whether use of /dev/random is requested... " >&6; }
  17253. +# Check whether --enable-dev-random was given.
  17254. +if test "${enable_dev_random+set}" = set; then :
  17255. + enableval=$enable_dev_random; try_dev_random=$enableval
  17256. +else
  17257. + try_dev_random=yes
  17258. +fi
  17259. - freebsd1*)
  17260. - ld_shlibs_F77=no
  17261. - ;;
  17262. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
  17263. +$as_echo "$try_dev_random" >&6; }
  17264. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  17265. - # support. Future versions do this automatically, but an explicit c++rt0.o
  17266. - # does not break anything, and helps significantly (at the cost of a little
  17267. - # extra space).
  17268. - freebsd2.2*)
  17269. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  17270. - hardcode_libdir_flag_spec_F77='-R$libdir'
  17271. - hardcode_direct_F77=yes
  17272. - hardcode_shlibpath_var_F77=no
  17273. - ;;
  17274. +# Implementation of the --with-egd-socket switch.
  17275. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  17276. - freebsd2*)
  17277. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17278. - hardcode_direct_F77=yes
  17279. - hardcode_minus_L_F77=yes
  17280. - hardcode_shlibpath_var_F77=no
  17281. - ;;
  17282. +# Check whether --with-egd-socket was given.
  17283. +if test "${with_egd_socket+set}" = set; then :
  17284. + withval=$with_egd_socket; egd_socket_name="$withval"
  17285. +else
  17286. + egd_socket_name=""
  17287. +fi
  17288. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  17289. - freebsd* | kfreebsd*-gnu)
  17290. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  17291. - hardcode_libdir_flag_spec_F77='-R$libdir'
  17292. - hardcode_direct_F77=yes
  17293. - hardcode_shlibpath_var_F77=no
  17294. - ;;
  17295. - hpux9*)
  17296. - if test "$GCC" = yes; then
  17297. - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  17298. - else
  17299. - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  17300. - fi
  17301. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  17302. - hardcode_libdir_separator_F77=:
  17303. - hardcode_direct_F77=yes
  17304. +cat >>confdefs.h <<_ACEOF
  17305. +#define EGD_SOCKET_NAME "$egd_socket_name"
  17306. +_ACEOF
  17307. - # hardcode_minus_L: Not really in the search PATH,
  17308. - # but as the default location of the library.
  17309. - hardcode_minus_L_F77=yes
  17310. - export_dynamic_flag_spec_F77='${wl}-E'
  17311. - ;;
  17312. - hpux10* | hpux11*)
  17313. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  17314. - case "$host_cpu" in
  17315. - hppa*64*|ia64*)
  17316. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17317. - ;;
  17318. - *)
  17319. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  17320. - ;;
  17321. - esac
  17322. - else
  17323. - case "$host_cpu" in
  17324. - hppa*64*|ia64*)
  17325. - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  17326. - ;;
  17327. - *)
  17328. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  17329. - ;;
  17330. - esac
  17331. - fi
  17332. - if test "$with_gnu_ld" = no; then
  17333. - case "$host_cpu" in
  17334. - hppa*64*)
  17335. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  17336. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  17337. - hardcode_libdir_separator_F77=:
  17338. - hardcode_direct_F77=no
  17339. - hardcode_shlibpath_var_F77=no
  17340. - ;;
  17341. - ia64*)
  17342. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17343. - hardcode_direct_F77=no
  17344. - hardcode_shlibpath_var_F77=no
  17345. +# Implementation of the --enable-random-daemon
  17346. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the experimental random daemon is requested" >&5
  17347. +$as_echo_n "checking whether the experimental random daemon is requested... " >&6; }
  17348. +# Check whether --enable-random-daemon was given.
  17349. +if test "${enable_random_daemon+set}" = set; then :
  17350. + enableval=$enable_random_daemon; use_random_daemon=$enableval
  17351. +else
  17352. + use_random_daemon=no
  17353. +fi
  17354. - # hardcode_minus_L: Not really in the search PATH,
  17355. - # but as the default location of the library.
  17356. - hardcode_minus_L_F77=yes
  17357. - ;;
  17358. - *)
  17359. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  17360. - hardcode_libdir_separator_F77=:
  17361. - hardcode_direct_F77=yes
  17362. - export_dynamic_flag_spec_F77='${wl}-E'
  17363. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_random_daemon" >&5
  17364. +$as_echo "$use_random_daemon" >&6; }
  17365. +if test x$use_random_daemon = xyes ; then
  17366. - # hardcode_minus_L: Not really in the search PATH,
  17367. - # but as the default location of the library.
  17368. - hardcode_minus_L_F77=yes
  17369. - ;;
  17370. - esac
  17371. - fi
  17372. - ;;
  17373. +$as_echo "#define USE_RANDOM_DAEMON 1" >>confdefs.h
  17374. - irix5* | irix6* | nonstopux*)
  17375. - if test "$GCC" = yes; then
  17376. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17377. - else
  17378. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17379. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  17380. - fi
  17381. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  17382. - hardcode_libdir_separator_F77=:
  17383. - link_all_deplibs_F77=yes
  17384. - ;;
  17385. +fi
  17386. + if test x$use_random_daemon = xyes; then
  17387. + USE_RANDOM_DAEMON_TRUE=
  17388. + USE_RANDOM_DAEMON_FALSE='#'
  17389. +else
  17390. + USE_RANDOM_DAEMON_TRUE='#'
  17391. + USE_RANDOM_DAEMON_FALSE=
  17392. +fi
  17393. - netbsd* | knetbsd*-gnu)
  17394. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  17395. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  17396. - else
  17397. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  17398. - fi
  17399. - hardcode_libdir_flag_spec_F77='-R$libdir'
  17400. - hardcode_direct_F77=yes
  17401. - hardcode_shlibpath_var_F77=no
  17402. - ;;
  17403. - newsos6)
  17404. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17405. - hardcode_direct_F77=yes
  17406. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  17407. - hardcode_libdir_separator_F77=:
  17408. - hardcode_shlibpath_var_F77=no
  17409. - ;;
  17410. - openbsd*)
  17411. - hardcode_direct_F77=yes
  17412. - hardcode_shlibpath_var_F77=no
  17413. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17414. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17415. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  17416. - export_dynamic_flag_spec_F77='${wl}-E'
  17417. - else
  17418. - case $host_os in
  17419. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  17420. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  17421. - hardcode_libdir_flag_spec_F77='-R$libdir'
  17422. - ;;
  17423. - *)
  17424. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  17425. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  17426. - ;;
  17427. - esac
  17428. - fi
  17429. - ;;
  17430. +# Implementation of --disable-asm.
  17431. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI assembler modules are requested" >&5
  17432. +$as_echo_n "checking whether MPI assembler modules are requested... " >&6; }
  17433. +# Check whether --enable-asm was given.
  17434. +if test "${enable_asm+set}" = set; then :
  17435. + enableval=$enable_asm; try_asm_modules=$enableval
  17436. +else
  17437. + try_asm_modules=yes
  17438. +fi
  17439. - os2*)
  17440. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17441. - hardcode_minus_L_F77=yes
  17442. - allow_undefined_flag_F77=unsupported
  17443. - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  17444. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  17445. - ;;
  17446. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
  17447. +$as_echo "$try_asm_modules" >&6; }
  17448. - osf3*)
  17449. - if test "$GCC" = yes; then
  17450. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  17451. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17452. - else
  17453. - allow_undefined_flag_F77=' -expect_unresolved \*'
  17454. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17455. - fi
  17456. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  17457. - hardcode_libdir_separator_F77=:
  17458. - ;;
  17459. +# Implementation of the --enable-m-guard switch.
  17460. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory guard is requested" >&5
  17461. +$as_echo_n "checking whether memory guard is requested... " >&6; }
  17462. +# Check whether --enable-m-guard was given.
  17463. +if test "${enable_m_guard+set}" = set; then :
  17464. + enableval=$enable_m_guard; use_m_guard=$enableval
  17465. +else
  17466. + use_m_guard=no
  17467. +fi
  17468. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  17469. - if test "$GCC" = yes; then
  17470. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  17471. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  17472. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  17473. - else
  17474. - allow_undefined_flag_F77=' -expect_unresolved \*'
  17475. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  17476. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  17477. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  17478. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_m_guard" >&5
  17479. +$as_echo "$use_m_guard" >&6; }
  17480. +if test "$use_m_guard" = yes ; then
  17481. - # Both c and cxx compiler support -rpath directly
  17482. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  17483. - fi
  17484. - hardcode_libdir_separator_F77=:
  17485. - ;;
  17486. +$as_echo "#define M_GUARD 1" >>confdefs.h
  17487. - sco3.2v5*)
  17488. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17489. - hardcode_shlibpath_var_F77=no
  17490. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  17491. - runpath_var=LD_RUN_PATH
  17492. - hardcode_runpath_var=yes
  17493. - ;;
  17494. +fi
  17495. - solaris*)
  17496. - no_undefined_flag_F77=' -z text'
  17497. - if test "$GCC" = yes; then
  17498. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17499. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17500. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  17501. - else
  17502. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17503. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17504. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  17505. - fi
  17506. - hardcode_libdir_flag_spec_F77='-R$libdir'
  17507. - hardcode_shlibpath_var_F77=no
  17508. - case $host_os in
  17509. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  17510. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  17511. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  17512. - esac
  17513. - link_all_deplibs_F77=yes
  17514. - ;;
  17515. +# Implementation of the --with-capabilities switch.
  17516. +# Check whether we want to use Linux capabilities
  17517. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
  17518. +$as_echo_n "checking whether use of capabilities is requested... " >&6; }
  17519. - sunos4*)
  17520. - if test "x$host_vendor" = xsequent; then
  17521. - # Use $CC to link under sequent, because it throws in some extra .o
  17522. - # files that make .init and .fini sections work.
  17523. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  17524. - else
  17525. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  17526. - fi
  17527. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17528. - hardcode_direct_F77=yes
  17529. - hardcode_minus_L_F77=yes
  17530. - hardcode_shlibpath_var_F77=no
  17531. - ;;
  17532. +# Check whether --with-capabilities was given.
  17533. +if test "${with_capabilities+set}" = set; then :
  17534. + withval=$with_capabilities; use_capabilities="$withval"
  17535. +else
  17536. + use_capabilities=no
  17537. +fi
  17538. - sysv4)
  17539. - case $host_vendor in
  17540. - sni)
  17541. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17542. - hardcode_direct_F77=yes # is this really true???
  17543. - ;;
  17544. - siemens)
  17545. - ## LD is ld it makes a PLAMLIB
  17546. - ## CC just makes a GrossModule.
  17547. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  17548. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  17549. - hardcode_direct_F77=no
  17550. - ;;
  17551. - motorola)
  17552. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17553. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  17554. - ;;
  17555. - esac
  17556. - runpath_var='LD_RUN_PATH'
  17557. - hardcode_shlibpath_var_F77=no
  17558. - ;;
  17559. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
  17560. +$as_echo "$use_capabilities" >&6; }
  17561. - sysv4.3*)
  17562. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17563. - hardcode_shlibpath_var_F77=no
  17564. - export_dynamic_flag_spec_F77='-Bexport'
  17565. - ;;
  17566. +# Implementation of the --enable-hmac-binary-check.
  17567. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
  17568. +$as_echo_n "checking whether a HMAC binary check is requested... " >&6; }
  17569. +# Check whether --enable-hmac-binary-check was given.
  17570. +if test "${enable_hmac_binary_check+set}" = set; then :
  17571. + enableval=$enable_hmac_binary_check; use_hmac_binary_check=$enableval
  17572. +else
  17573. + use_hmac_binary_check=no
  17574. +fi
  17575. - sysv4*MP*)
  17576. - if test -d /usr/nec; then
  17577. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17578. - hardcode_shlibpath_var_F77=no
  17579. - runpath_var=LD_RUN_PATH
  17580. - hardcode_runpath_var=yes
  17581. - ld_shlibs_F77=yes
  17582. - fi
  17583. - ;;
  17584. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
  17585. +$as_echo "$use_hmac_binary_check" >&6; }
  17586. +if test "$use_hmac_binary_check" = yes ; then
  17587. - sysv4.2uw2*)
  17588. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  17589. - hardcode_direct_F77=yes
  17590. - hardcode_minus_L_F77=no
  17591. - hardcode_shlibpath_var_F77=no
  17592. - hardcode_runpath_var=yes
  17593. - runpath_var=LD_RUN_PATH
  17594. - ;;
  17595. +$as_echo "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
  17596. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  17597. - no_undefined_flag_F77='${wl}-z ${wl}text'
  17598. - if test "$GCC" = yes; then
  17599. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17600. - else
  17601. - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  17602. - fi
  17603. - runpath_var='LD_RUN_PATH'
  17604. - hardcode_shlibpath_var_F77=no
  17605. - ;;
  17606. +fi
  17607. - sysv5*)
  17608. - no_undefined_flag_F77=' -z text'
  17609. - # $CC -shared without GNU ld will not create a library from C++
  17610. - # object files and a static libstdc++, better avoid it by now
  17611. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17612. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  17613. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  17614. - hardcode_libdir_flag_spec_F77=
  17615. - hardcode_shlibpath_var_F77=no
  17616. - runpath_var='LD_RUN_PATH'
  17617. - ;;
  17618. - uts4*)
  17619. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  17620. - hardcode_libdir_flag_spec_F77='-L$libdir'
  17621. - hardcode_shlibpath_var_F77=no
  17622. - ;;
  17623. +# Implementation of the --disable-padlock-support switch.
  17624. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
  17625. +$as_echo_n "checking whether padlock support is requested... " >&6; }
  17626. +# Check whether --enable-padlock-support was given.
  17627. +if test "${enable_padlock_support+set}" = set; then :
  17628. + enableval=$enable_padlock_support; padlocksupport=$enableval
  17629. +else
  17630. + padlocksupport=yes
  17631. +fi
  17632. - *)
  17633. - ld_shlibs_F77=no
  17634. - ;;
  17635. - esac
  17636. - fi
  17637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
  17638. +$as_echo "$padlocksupport" >&6; }
  17639. +if test x"$padlocksupport" = xyes ; then
  17640. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
  17641. -$as_echo "$ld_shlibs_F77" >&6; }
  17642. -test "$ld_shlibs_F77" = no && can_build_shared=no
  17643. +$as_echo "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
  17644. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17645. -if test "$GCC" = yes; then
  17646. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17647. fi
  17648. -#
  17649. -# Do we need to explicitly link libc?
  17650. -#
  17651. -case "x$archive_cmds_need_lc_F77" in
  17652. -x|xyes)
  17653. - # Assume -lc should be added
  17654. - archive_cmds_need_lc_F77=yes
  17655. +# Implementation of the --disable-O-flag-munging switch.
  17656. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
  17657. +$as_echo_n "checking whether a -O flag munging is requested... " >&6; }
  17658. +# Check whether --enable-O-flag-munging was given.
  17659. +if test "${enable_O_flag_munging+set}" = set; then :
  17660. + enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
  17661. +else
  17662. + enable_o_flag_munging=yes
  17663. +fi
  17664. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  17665. - case $archive_cmds_F77 in
  17666. - *'~'*)
  17667. - # FIXME: we may have to deal with multi-command sequences.
  17668. - ;;
  17669. - '$CC '*)
  17670. - # Test whether the compiler implicitly links with -lc since on some
  17671. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17672. - # to ld, don't add -lc before -lgcc.
  17673. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  17674. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  17675. - $rm conftest*
  17676. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  17677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
  17678. +$as_echo "$enable_o_flag_munging" >&6; }
  17679. + if test "$enable_o_flag_munging" = "yes"; then
  17680. + ENABLE_O_FLAG_MUNGING_TRUE=
  17681. + ENABLE_O_FLAG_MUNGING_FALSE='#'
  17682. +else
  17683. + ENABLE_O_FLAG_MUNGING_TRUE='#'
  17684. + ENABLE_O_FLAG_MUNGING_FALSE=
  17685. +fi
  17686. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17687. - (eval $ac_compile) 2>&5
  17688. - ac_status=$?
  17689. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17690. - test $ac_status = 0; } 2>conftest.err; then
  17691. - soname=conftest
  17692. - lib=conftest
  17693. - libobjs=conftest.$ac_objext
  17694. - deplibs=
  17695. - wl=$lt_prog_compiler_wl_F77
  17696. - compiler_flags=-v
  17697. - linker_flags=-v
  17698. - verstring=
  17699. - output_objdir=.
  17700. - libname=conftest
  17701. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  17702. - allow_undefined_flag_F77=
  17703. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  17704. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17705. - ac_status=$?
  17706. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17707. - test $ac_status = 0; }
  17708. - then
  17709. - archive_cmds_need_lc_F77=no
  17710. - else
  17711. - archive_cmds_need_lc_F77=yes
  17712. - fi
  17713. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  17714. - else
  17715. - cat conftest.err 1>&5
  17716. - fi
  17717. - $rm conftest*
  17718. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
  17719. -$as_echo "$archive_cmds_need_lc_F77" >&6; }
  17720. - ;;
  17721. - esac
  17722. - fi
  17723. - ;;
  17724. +
  17725. +
  17726. +
  17727. +cat >>confdefs.h <<_ACEOF
  17728. +#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
  17729. +_ACEOF
  17730. +
  17731. +
  17732. +# For some systems we know that we have ld_version scripts.
  17733. +# Use it then as default.
  17734. +have_ld_version_script=no
  17735. +case "${host}" in
  17736. + *-*-linux*)
  17737. + have_ld_version_script=yes
  17738. + ;;
  17739. + *-*-gnu*)
  17740. + have_ld_version_script=yes
  17741. + ;;
  17742. esac
  17743. +# Check whether --enable-ld-version-script was given.
  17744. +if test "${enable_ld_version_script+set}" = set; then :
  17745. + enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  17746. +else
  17747. + :
  17748. +fi
  17749. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  17750. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  17751. -library_names_spec=
  17752. -libname_spec='lib$name'
  17753. -soname_spec=
  17754. -shrext_cmds=".so"
  17755. -postinstall_cmds=
  17756. -postuninstall_cmds=
  17757. -finish_cmds=
  17758. -finish_eval=
  17759. -shlibpath_var=
  17760. -shlibpath_overrides_runpath=unknown
  17761. -version_type=none
  17762. -dynamic_linker="$host_os ld.so"
  17763. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17764. -if test "$GCC" = yes; then
  17765. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17766. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  17767. - # if the path contains ";" then we assume it to be the separator
  17768. - # otherwise default to the standard path separator (i.e. ":") - it is
  17769. - # assumed that no part of a normal pathname contains ";" but that should
  17770. - # okay in the real world where ";" in dirpaths is itself problematic.
  17771. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17772. - else
  17773. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17774. - fi
  17775. + if test "$have_ld_version_script" = "yes"; then
  17776. + HAVE_LD_VERSION_SCRIPT_TRUE=
  17777. + HAVE_LD_VERSION_SCRIPT_FALSE='#'
  17778. else
  17779. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17780. + HAVE_LD_VERSION_SCRIPT_TRUE='#'
  17781. + HAVE_LD_VERSION_SCRIPT_FALSE=
  17782. fi
  17783. -need_lib_prefix=unknown
  17784. -hardcode_into_libs=no
  17785. -# when you set need_version to no, make sure it does not cause -set_version
  17786. -# flags to be left without arguments
  17787. -need_version=unknown
  17788. -case $host_os in
  17789. -aix3*)
  17790. - version_type=linux
  17791. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  17792. - shlibpath_var=LIBPATH
  17793. - # AIX 3 has no versioning support, so we append a major version to the name.
  17794. - soname_spec='${libname}${release}${shared_ext}$major'
  17795. - ;;
  17796. +cat >>confdefs.h <<_ACEOF
  17797. +#define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
  17798. +_ACEOF
  17799. -aix4* | aix5*)
  17800. - version_type=linux
  17801. - need_lib_prefix=no
  17802. - need_version=no
  17803. - hardcode_into_libs=yes
  17804. - if test "$host_cpu" = ia64; then
  17805. - # AIX 5 supports IA64
  17806. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  17807. - shlibpath_var=LD_LIBRARY_PATH
  17808. - else
  17809. - # With GCC up to 2.95.x, collect2 would create an import file
  17810. - # for dependence libraries. The import file would start with
  17811. - # the line `#! .'. This would cause the generated library to
  17812. - # depend on `.', always an invalid library. This was fixed in
  17813. - # development snapshots of GCC prior to 3.0.
  17814. - case $host_os in
  17815. - aix4 | aix4.[01] | aix4.[01].*)
  17816. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17817. - echo ' yes '
  17818. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  17819. - :
  17820. - else
  17821. - can_build_shared=no
  17822. - fi
  17823. - ;;
  17824. - esac
  17825. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  17826. - # soname into executable. Probably we can add versioning support to
  17827. - # collect2, so additional links can be useful in future.
  17828. - if test "$aix_use_runtimelinking" = yes; then
  17829. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17830. - # instead of lib<name>.a to let people know that these are not
  17831. - # typical AIX shared libraries.
  17832. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17833. - else
  17834. - # We preserve .a as extension for shared libraries through AIX4.2
  17835. - # and later when we are not doing run time linking.
  17836. - library_names_spec='${libname}${release}.a $libname.a'
  17837. - soname_spec='${libname}${release}${shared_ext}$major'
  17838. - fi
  17839. - shlibpath_var=LIBPATH
  17840. - fi
  17841. - ;;
  17842. -amigaos*)
  17843. - library_names_spec='$libname.ixlibrary $libname.a'
  17844. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17845. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  17846. - ;;
  17847. +cat >>confdefs.h <<_ACEOF
  17848. +#define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
  17849. +_ACEOF
  17850. -beos*)
  17851. - library_names_spec='${libname}${shared_ext}'
  17852. - dynamic_linker="$host_os ld.so"
  17853. - shlibpath_var=LIBRARY_PATH
  17854. - ;;
  17855. -bsdi4*)
  17856. - version_type=linux
  17857. - need_version=no
  17858. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17859. - soname_spec='${libname}${release}${shared_ext}$major'
  17860. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17861. - shlibpath_var=LD_LIBRARY_PATH
  17862. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17863. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17864. - # the default ld.so.conf also contains /usr/contrib/lib and
  17865. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17866. - # libtool to hard-code these into programs
  17867. - ;;
  17868. +###############################
  17869. +#### Checks for libraries. ####
  17870. +###############################
  17871. -cygwin* | mingw* | pw32*)
  17872. - version_type=windows
  17873. - shrext_cmds=".dll"
  17874. - need_version=no
  17875. - need_lib_prefix=no
  17876. +#
  17877. +# gpg-error is required.
  17878. +#
  17879. - case $GCC,$host_os in
  17880. - yes,cygwin* | yes,mingw* | yes,pw32*)
  17881. - library_names_spec='$libname.dll.a'
  17882. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17883. - postinstall_cmds='base_file=`basename \${file}`~
  17884. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  17885. - dldir=$destdir/`dirname \$dlpath`~
  17886. - test -d \$dldir || mkdir -p \$dldir~
  17887. - $install_prog $dir/$dlname \$dldir/$dlname'
  17888. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17889. - dlpath=$dir/\$dldll~
  17890. - $rm \$dlpath'
  17891. - shlibpath_overrides_runpath=yes
  17892. +# Check whether --with-gpg-error-prefix was given.
  17893. +if test "${with_gpg_error_prefix+set}" = set; then :
  17894. + withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
  17895. +else
  17896. + gpg_error_config_prefix=""
  17897. +fi
  17898. - case $host_os in
  17899. - cygwin*)
  17900. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17901. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17902. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  17903. - ;;
  17904. - mingw*)
  17905. - # MinGW DLLs use traditional 'lib' prefix
  17906. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17907. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  17908. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  17909. - # It is most probably a Windows format PATH printed by
  17910. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  17911. - # path with ; separators, and with drive letters. We can handle the
  17912. - # drive letters (cygwin fileutils understands them), so leave them,
  17913. - # especially as we might pass files found there to a mingw objdump,
  17914. - # which wouldn't understand a cygwinified path. Ahh.
  17915. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17916. - else
  17917. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17918. - fi
  17919. - ;;
  17920. - pw32*)
  17921. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  17922. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  17923. - ;;
  17924. - esac
  17925. - ;;
  17926. + if test x$gpg_error_config_prefix != x ; then
  17927. + if test x${GPG_ERROR_CONFIG+set} != xset ; then
  17928. + GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
  17929. + fi
  17930. + fi
  17931. + # Extract the first word of "gpg-error-config", so it can be a program name with args.
  17932. +set dummy gpg-error-config; ac_word=$2
  17933. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17934. +$as_echo_n "checking for $ac_word... " >&6; }
  17935. +if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then :
  17936. + $as_echo_n "(cached) " >&6
  17937. +else
  17938. + case $GPG_ERROR_CONFIG in
  17939. + [\\/]* | ?:[\\/]*)
  17940. + ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
  17941. + ;;
  17942. *)
  17943. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  17944. - ;;
  17945. - esac
  17946. - dynamic_linker='Win32 ld.exe'
  17947. - # FIXME: first we should search . and the directory the executable is in
  17948. - shlibpath_var=PATH
  17949. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17950. +for as_dir in $PATH
  17951. +do
  17952. + IFS=$as_save_IFS
  17953. + test -z "$as_dir" && as_dir=.
  17954. + for ac_exec_ext in '' $ac_executable_extensions; do
  17955. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17956. + ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17957. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17958. + break 2
  17959. + fi
  17960. +done
  17961. + done
  17962. +IFS=$as_save_IFS
  17963. +
  17964. + test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
  17965. ;;
  17966. +esac
  17967. +fi
  17968. +GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
  17969. +if test -n "$GPG_ERROR_CONFIG"; then
  17970. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
  17971. +$as_echo "$GPG_ERROR_CONFIG" >&6; }
  17972. +else
  17973. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17974. +$as_echo "no" >&6; }
  17975. +fi
  17976. -darwin* | rhapsody*)
  17977. - dynamic_linker="$host_os dyld"
  17978. - version_type=darwin
  17979. - need_lib_prefix=no
  17980. - need_version=no
  17981. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  17982. - soname_spec='${libname}${release}${major}$shared_ext'
  17983. - shlibpath_overrides_runpath=yes
  17984. - shlibpath_var=DYLD_LIBRARY_PATH
  17985. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  17986. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  17987. - if test "$GCC" = yes; then
  17988. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  17989. +
  17990. + min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
  17991. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
  17992. +$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
  17993. + ok=no
  17994. + if test "$GPG_ERROR_CONFIG" != "no" ; then
  17995. + req_major=`echo $min_gpg_error_version | \
  17996. + sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
  17997. + req_minor=`echo $min_gpg_error_version | \
  17998. + sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
  17999. + gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
  18000. + if test "$gpg_error_config_version"; then
  18001. + major=`echo $gpg_error_config_version | \
  18002. + sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
  18003. + minor=`echo $gpg_error_config_version | \
  18004. + sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
  18005. + if test "$major" -gt "$req_major"; then
  18006. + ok=yes
  18007. + else
  18008. + if test "$major" -eq "$req_major"; then
  18009. + if test "$minor" -ge "$req_minor"; then
  18010. + ok=yes
  18011. + fi
  18012. + fi
  18013. + fi
  18014. + fi
  18015. + fi
  18016. + if test $ok = yes; then
  18017. + GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
  18018. + GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
  18019. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18020. +$as_echo "yes" >&6; }
  18021. + :
  18022. else
  18023. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  18024. + GPG_ERROR_CFLAGS=""
  18025. + GPG_ERROR_LIBS=""
  18026. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18027. +$as_echo "no" >&6; }
  18028. + :
  18029. fi
  18030. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  18031. - ;;
  18032. -dgux*)
  18033. - version_type=linux
  18034. - need_lib_prefix=no
  18035. - need_version=no
  18036. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  18037. - soname_spec='${libname}${release}${shared_ext}$major'
  18038. - shlibpath_var=LD_LIBRARY_PATH
  18039. - ;;
  18040. -freebsd1*)
  18041. - dynamic_linker=no
  18042. - ;;
  18043. -kfreebsd*-gnu)
  18044. - version_type=linux
  18045. - need_lib_prefix=no
  18046. - need_version=no
  18047. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18048. - soname_spec='${libname}${release}${shared_ext}$major'
  18049. - shlibpath_var=LD_LIBRARY_PATH
  18050. - shlibpath_overrides_runpath=no
  18051. - hardcode_into_libs=yes
  18052. - dynamic_linker='GNU ld.so'
  18053. - ;;
  18054. +if test "x$GPG_ERROR_LIBS" = "x"; then
  18055. + as_fn_error "libgpg-error is needed.
  18056. + See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
  18057. +fi
  18058. -freebsd*)
  18059. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  18060. - version_type=freebsd-$objformat
  18061. - case $version_type in
  18062. - freebsd-elf*)
  18063. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18064. - need_version=no
  18065. - need_lib_prefix=no
  18066. - ;;
  18067. - freebsd-*)
  18068. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  18069. - need_version=yes
  18070. - ;;
  18071. - esac
  18072. - shlibpath_var=LD_LIBRARY_PATH
  18073. - case $host_os in
  18074. - freebsd2*)
  18075. - shlibpath_overrides_runpath=yes
  18076. - ;;
  18077. - freebsd3.01* | freebsdelf3.01*)
  18078. - shlibpath_overrides_runpath=yes
  18079. - hardcode_into_libs=yes
  18080. - ;;
  18081. - *) # from 3.2 on
  18082. - shlibpath_overrides_runpath=no
  18083. - hardcode_into_libs=yes
  18084. - ;;
  18085. - esac
  18086. +
  18087. +$as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
  18088. +
  18089. +
  18090. +#
  18091. +# Check whether the GNU Pth library is available. We require this
  18092. +# to build the optional gcryptrnd program.
  18093. +#
  18094. +
  18095. +# Check whether --with-pth-prefix was given.
  18096. +if test "${with_pth_prefix+set}" = set; then :
  18097. + withval=$with_pth_prefix; pth_config_prefix="$withval"
  18098. +else
  18099. + pth_config_prefix=""
  18100. +fi
  18101. +
  18102. +if test x$pth_config_prefix != x ; then
  18103. + PTH_CONFIG="$pth_config_prefix/bin/pth-config"
  18104. +fi
  18105. +if test "$use_random_daemon" = "yes"; then
  18106. + # Extract the first word of "pth-config", so it can be a program name with args.
  18107. +set dummy pth-config; ac_word=$2
  18108. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18109. +$as_echo_n "checking for $ac_word... " >&6; }
  18110. +if test "${ac_cv_path_PTH_CONFIG+set}" = set; then :
  18111. + $as_echo_n "(cached) " >&6
  18112. +else
  18113. + case $PTH_CONFIG in
  18114. + [\\/]* | ?:[\\/]*)
  18115. + ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
  18116. ;;
  18117. + *)
  18118. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18119. +for as_dir in $PATH
  18120. +do
  18121. + IFS=$as_save_IFS
  18122. + test -z "$as_dir" && as_dir=.
  18123. + for ac_exec_ext in '' $ac_executable_extensions; do
  18124. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18125. + ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18126. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18127. + break 2
  18128. + fi
  18129. +done
  18130. + done
  18131. +IFS=$as_save_IFS
  18132. -gnu*)
  18133. - version_type=linux
  18134. - need_lib_prefix=no
  18135. - need_version=no
  18136. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  18137. - soname_spec='${libname}${release}${shared_ext}$major'
  18138. - shlibpath_var=LD_LIBRARY_PATH
  18139. - hardcode_into_libs=yes
  18140. + test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
  18141. ;;
  18142. +esac
  18143. +fi
  18144. +PTH_CONFIG=$ac_cv_path_PTH_CONFIG
  18145. +if test -n "$PTH_CONFIG"; then
  18146. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
  18147. +$as_echo "$PTH_CONFIG" >&6; }
  18148. +else
  18149. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18150. +$as_echo "no" >&6; }
  18151. +fi
  18152. -hpux9* | hpux10* | hpux11*)
  18153. - # Give a soname corresponding to the major version so that dld.sl refuses to
  18154. - # link against other versions.
  18155. - version_type=sunos
  18156. - need_lib_prefix=no
  18157. - need_version=no
  18158. - case "$host_cpu" in
  18159. - ia64*)
  18160. - shrext_cmds='.so'
  18161. - hardcode_into_libs=yes
  18162. - dynamic_linker="$host_os dld.so"
  18163. - shlibpath_var=LD_LIBRARY_PATH
  18164. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18165. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18166. - soname_spec='${libname}${release}${shared_ext}$major'
  18167. - if test "X$HPUX_IA64_MODE" = X32; then
  18168. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  18169. - else
  18170. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  18171. +
  18172. + if test "$PTH_CONFIG" = "no"; then
  18173. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  18174. +***
  18175. +*** To build the Libgcrypt's random number daemon
  18176. +*** we need the support of the GNU Portable Threads Library.
  18177. +*** Download it from ftp://ftp.gnu.org/gnu/pth/
  18178. +*** On a Debian GNU/Linux system you might want to try
  18179. +*** apt-get install libpth-dev
  18180. +***" >&5
  18181. +$as_echo "$as_me: WARNING:
  18182. +***
  18183. +*** To build the Libgcrypt's random number daemon
  18184. +*** we need the support of the GNU Portable Threads Library.
  18185. +*** Download it from ftp://ftp.gnu.org/gnu/pth/
  18186. +*** On a Debian GNU/Linux system you might want to try
  18187. +*** apt-get install libpth-dev
  18188. +***" >&2;}
  18189. + else
  18190. +
  18191. + _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
  18192. + _req_version="1.3.7"
  18193. +
  18194. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
  18195. +$as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
  18196. + for _var in _pth_version _req_version; do
  18197. + eval "_val=\"\$${_var}\""
  18198. + _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
  18199. + _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
  18200. + _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
  18201. + _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
  18202. + case $_rtype in
  18203. + "a" ) _rtype=0 ;;
  18204. + "b" ) _rtype=1 ;;
  18205. + "." ) _rtype=2 ;;
  18206. + esac
  18207. + _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
  18208. + "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
  18209. + eval "${_var}_hex=\"\$_hex\""
  18210. + done
  18211. + have_pth=no
  18212. + if test ".$_pth_version_hex" != .; then
  18213. + if test ".$_req_version_hex" != .; then
  18214. + if test $_pth_version_hex -ge $_req_version_hex; then
  18215. + have_pth=yes
  18216. + fi
  18217. + fi
  18218. fi
  18219. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18220. - ;;
  18221. - hppa*64*)
  18222. - shrext_cmds='.sl'
  18223. - hardcode_into_libs=yes
  18224. - dynamic_linker="$host_os dld.sl"
  18225. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  18226. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18227. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18228. - soname_spec='${libname}${release}${shared_ext}$major'
  18229. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  18230. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18231. - ;;
  18232. - *)
  18233. - shrext_cmds='.sl'
  18234. - dynamic_linker="$host_os dld.sl"
  18235. - shlibpath_var=SHLIB_PATH
  18236. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  18237. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18238. - soname_spec='${libname}${release}${shared_ext}$major'
  18239. - ;;
  18240. - esac
  18241. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  18242. - postinstall_cmds='chmod 555 $lib'
  18243. - ;;
  18244. + if test $have_pth = yes; then
  18245. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18246. +$as_echo "yes" >&6; }
  18247. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
  18248. +$as_echo_n "checking whether PTH installation is sane... " >&6; }
  18249. + if test "${gnupg_cv_pth_is_sane+set}" = set; then :
  18250. + $as_echo_n "(cached) " >&6
  18251. +else
  18252. -irix5* | irix6* | nonstopux*)
  18253. - case $host_os in
  18254. - nonstopux*) version_type=nonstopux ;;
  18255. - *)
  18256. - if test "$lt_cv_prog_gnu_ld" = yes; then
  18257. - version_type=linux
  18258. - else
  18259. - version_type=irix
  18260. - fi ;;
  18261. - esac
  18262. - need_lib_prefix=no
  18263. - need_version=no
  18264. - soname_spec='${libname}${release}${shared_ext}$major'
  18265. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  18266. - case $host_os in
  18267. - irix5* | nonstopux*)
  18268. - libsuff= shlibsuff=
  18269. - ;;
  18270. - *)
  18271. - case $LD in # libtool.m4 will add one of these switches to LD
  18272. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  18273. - libsuff= shlibsuff= libmagic=32-bit;;
  18274. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  18275. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  18276. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  18277. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  18278. - *) libsuff= shlibsuff= libmagic=never-match;;
  18279. - esac
  18280. - ;;
  18281. - esac
  18282. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  18283. - shlibpath_overrides_runpath=no
  18284. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  18285. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  18286. - hardcode_into_libs=yes
  18287. - ;;
  18288. + _gnupg_pth_save_cflags=$CFLAGS
  18289. + _gnupg_pth_save_ldflags=$LDFLAGS
  18290. + _gnupg_pth_save_libs=$LIBS
  18291. + CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
  18292. + LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
  18293. + LIBS="$LIBS `$PTH_CONFIG --libs`"
  18294. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18295. +/* end confdefs.h. */
  18296. +#include <pth.h>
  18297. -# No shared lib support for Linux oldld, aout, or coff.
  18298. -linux*oldld* | linux*aout* | linux*coff*)
  18299. - dynamic_linker=no
  18300. - ;;
  18301. +int
  18302. +main ()
  18303. +{
  18304. + pth_init ();
  18305. + ;
  18306. + return 0;
  18307. +}
  18308. +_ACEOF
  18309. +if ac_fn_c_try_link "$LINENO"; then :
  18310. + gnupg_cv_pth_is_sane=yes
  18311. +else
  18312. + gnupg_cv_pth_is_sane=no
  18313. +fi
  18314. +rm -f core conftest.err conftest.$ac_objext \
  18315. + conftest$ac_exeext conftest.$ac_ext
  18316. + CFLAGS=$_gnupg_pth_save_cflags
  18317. + LDFLAGS=$_gnupg_pth_save_ldflags
  18318. + LIBS=$_gnupg_pth_save_libs
  18319. -# This must be Linux ELF.
  18320. -linux*)
  18321. - version_type=linux
  18322. - need_lib_prefix=no
  18323. - need_version=no
  18324. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18325. - soname_spec='${libname}${release}${shared_ext}$major'
  18326. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  18327. - shlibpath_var=LD_LIBRARY_PATH
  18328. - shlibpath_overrides_runpath=no
  18329. - # This implies no fast_install, which is unacceptable.
  18330. - # Some rework will be needed to allow for fast_install
  18331. - # before this can be enabled.
  18332. - hardcode_into_libs=yes
  18333. +fi
  18334. - # Append ld.so.conf contents to the search path
  18335. - if test -f /etc/ld.so.conf; then
  18336. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  18337. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  18338. - fi
  18339. + if test $gnupg_cv_pth_is_sane != yes; then
  18340. + have_pth=no
  18341. + fi
  18342. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
  18343. +$as_echo "$gnupg_cv_pth_is_sane" >&6; }
  18344. + else
  18345. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18346. +$as_echo "no" >&6; }
  18347. + fi
  18348. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  18349. - # powerpc, because MkLinux only supported shared libraries with the
  18350. - # GNU dynamic linker. Since this was broken with cross compilers,
  18351. - # most powerpc-linux boxes support dynamic linking these days and
  18352. - # people can always --disable-shared, the test was removed, and we
  18353. - # assume the GNU/Linux dynamic linker is in use.
  18354. - dynamic_linker='GNU/Linux ld.so'
  18355. - ;;
  18356. + if test $have_pth = yes; then
  18357. + PTH_CFLAGS=`$PTH_CONFIG --cflags`
  18358. + PTH_LIBS=`$PTH_CONFIG --ldflags`
  18359. + PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
  18360. -knetbsd*-gnu)
  18361. - version_type=linux
  18362. - need_lib_prefix=no
  18363. - need_version=no
  18364. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18365. - soname_spec='${libname}${release}${shared_ext}$major'
  18366. - shlibpath_var=LD_LIBRARY_PATH
  18367. - shlibpath_overrides_runpath=no
  18368. - hardcode_into_libs=yes
  18369. - dynamic_linker='GNU ld.so'
  18370. - ;;
  18371. +$as_echo "#define USE_GNU_PTH 1" >>confdefs.h
  18372. -netbsd*)
  18373. - version_type=sunos
  18374. - need_lib_prefix=no
  18375. - need_version=no
  18376. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18377. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18378. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18379. - dynamic_linker='NetBSD (a.out) ld.so'
  18380. - else
  18381. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18382. - soname_spec='${libname}${release}${shared_ext}$major'
  18383. - dynamic_linker='NetBSD ld.elf_so'
  18384. +
  18385. +$as_echo "#define HAVE_PTH 1" >>confdefs.h
  18386. +
  18387. + fi
  18388. fi
  18389. - shlibpath_var=LD_LIBRARY_PATH
  18390. - shlibpath_overrides_runpath=yes
  18391. - hardcode_into_libs=yes
  18392. - ;;
  18393. +fi
  18394. -newsos6)
  18395. - version_type=linux
  18396. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18397. - shlibpath_var=LD_LIBRARY_PATH
  18398. - shlibpath_overrides_runpath=yes
  18399. - ;;
  18400. -nto-qnx*)
  18401. - version_type=linux
  18402. - need_lib_prefix=no
  18403. - need_version=no
  18404. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18405. - soname_spec='${libname}${release}${shared_ext}$major'
  18406. - shlibpath_var=LD_LIBRARY_PATH
  18407. - shlibpath_overrides_runpath=yes
  18408. - ;;
  18409. -openbsd*)
  18410. - version_type=sunos
  18411. - need_lib_prefix=no
  18412. - need_version=yes
  18413. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18414. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18415. - shlibpath_var=LD_LIBRARY_PATH
  18416. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18417. - case $host_os in
  18418. - openbsd2.[89] | openbsd2.[89].*)
  18419. - shlibpath_overrides_runpath=no
  18420. - ;;
  18421. - *)
  18422. - shlibpath_overrides_runpath=yes
  18423. - ;;
  18424. - esac
  18425. - else
  18426. - shlibpath_overrides_runpath=yes
  18427. - fi
  18428. - ;;
  18429. -os2*)
  18430. - libname_spec='$name'
  18431. - shrext_cmds=".dll"
  18432. - need_lib_prefix=no
  18433. - library_names_spec='$libname${shared_ext} $libname.a'
  18434. - dynamic_linker='OS/2 ld.exe'
  18435. - shlibpath_var=LIBPATH
  18436. - ;;
  18437. -
  18438. -osf3* | osf4* | osf5*)
  18439. - version_type=osf
  18440. - need_lib_prefix=no
  18441. - need_version=no
  18442. - soname_spec='${libname}${release}${shared_ext}$major'
  18443. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18444. - shlibpath_var=LD_LIBRARY_PATH
  18445. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18446. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18447. - ;;
  18448. -
  18449. -sco3.2v5*)
  18450. - version_type=osf
  18451. - soname_spec='${libname}${release}${shared_ext}$major'
  18452. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18453. - shlibpath_var=LD_LIBRARY_PATH
  18454. - ;;
  18455. -
  18456. -solaris*)
  18457. - version_type=linux
  18458. - need_lib_prefix=no
  18459. - need_version=no
  18460. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18461. - soname_spec='${libname}${release}${shared_ext}$major'
  18462. - shlibpath_var=LD_LIBRARY_PATH
  18463. - shlibpath_overrides_runpath=yes
  18464. - hardcode_into_libs=yes
  18465. - # ldd complains unless libraries are executable
  18466. - postinstall_cmds='chmod +x $lib'
  18467. - ;;
  18468. -
  18469. -sunos4*)
  18470. - version_type=sunos
  18471. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18472. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18473. - shlibpath_var=LD_LIBRARY_PATH
  18474. - shlibpath_overrides_runpath=yes
  18475. - if test "$with_gnu_ld" = yes; then
  18476. - need_lib_prefix=no
  18477. - fi
  18478. - need_version=yes
  18479. - ;;
  18480. -
  18481. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  18482. - version_type=linux
  18483. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18484. - soname_spec='${libname}${release}${shared_ext}$major'
  18485. - shlibpath_var=LD_LIBRARY_PATH
  18486. - case $host_vendor in
  18487. - sni)
  18488. - shlibpath_overrides_runpath=no
  18489. - need_lib_prefix=no
  18490. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  18491. - runpath_var=LD_RUN_PATH
  18492. - ;;
  18493. - siemens)
  18494. - need_lib_prefix=no
  18495. - ;;
  18496. - motorola)
  18497. - need_lib_prefix=no
  18498. - need_version=no
  18499. - shlibpath_overrides_runpath=no
  18500. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18501. - ;;
  18502. - esac
  18503. - ;;
  18504. +# Solaris needs -lsocket and -lnsl. Unisys system includes
  18505. +# gethostbyname in libsocket but needs libnsl for socket.
  18506. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  18507. +$as_echo_n "checking for library containing setsockopt... " >&6; }
  18508. +if test "${ac_cv_search_setsockopt+set}" = set; then :
  18509. + $as_echo_n "(cached) " >&6
  18510. +else
  18511. + ac_func_search_save_LIBS=$LIBS
  18512. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18513. +/* end confdefs.h. */
  18514. -sysv4*MP*)
  18515. - if test -d /usr/nec ;then
  18516. - version_type=linux
  18517. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18518. - soname_spec='$libname${shared_ext}.$major'
  18519. - shlibpath_var=LD_LIBRARY_PATH
  18520. +/* Override any GCC internal prototype to avoid an error.
  18521. + Use char because int might match the return type of a GCC
  18522. + builtin and then its argument prototype would still apply. */
  18523. +#ifdef __cplusplus
  18524. +extern "C"
  18525. +#endif
  18526. +char setsockopt ();
  18527. +int
  18528. +main ()
  18529. +{
  18530. +return setsockopt ();
  18531. + ;
  18532. + return 0;
  18533. +}
  18534. +_ACEOF
  18535. +for ac_lib in '' socket; do
  18536. + if test -z "$ac_lib"; then
  18537. + ac_res="none required"
  18538. + else
  18539. + ac_res=-l$ac_lib
  18540. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18541. fi
  18542. - ;;
  18543. -
  18544. -uts4*)
  18545. - version_type=linux
  18546. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18547. - soname_spec='${libname}${release}${shared_ext}$major'
  18548. - shlibpath_var=LD_LIBRARY_PATH
  18549. - ;;
  18550. + if ac_fn_c_try_link "$LINENO"; then :
  18551. + ac_cv_search_setsockopt=$ac_res
  18552. +fi
  18553. +rm -f core conftest.err conftest.$ac_objext \
  18554. + conftest$ac_exeext
  18555. + if test "${ac_cv_search_setsockopt+set}" = set; then :
  18556. + break
  18557. +fi
  18558. +done
  18559. +if test "${ac_cv_search_setsockopt+set}" = set; then :
  18560. -*)
  18561. - dynamic_linker=no
  18562. - ;;
  18563. -esac
  18564. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  18565. -$as_echo "$dynamic_linker" >&6; }
  18566. -test "$dynamic_linker" = no && can_build_shared=no
  18567. +else
  18568. + ac_cv_search_setsockopt=no
  18569. +fi
  18570. +rm conftest.$ac_ext
  18571. +LIBS=$ac_func_search_save_LIBS
  18572. +fi
  18573. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  18574. +$as_echo "$ac_cv_search_setsockopt" >&6; }
  18575. +ac_res=$ac_cv_search_setsockopt
  18576. +if test "$ac_res" != no; then :
  18577. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18578. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  18579. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  18580. -hardcode_action_F77=
  18581. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  18582. - test -n "$runpath_var F77" || \
  18583. - test "X$hardcode_automatic_F77"="Xyes" ; then
  18584. +else
  18585. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  18586. +$as_echo_n "checking for library containing setsockopt... " >&6; }
  18587. +if test "${ac_cv_search_setsockopt+set}" = set; then :
  18588. + $as_echo_n "(cached) " >&6
  18589. +else
  18590. + ac_func_search_save_LIBS=$LIBS
  18591. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18592. +/* end confdefs.h. */
  18593. - # We can hardcode non-existant directories.
  18594. - if test "$hardcode_direct_F77" != no &&
  18595. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18596. - # have to relink, otherwise we might link with an installed library
  18597. - # when we should be linking with a yet-to-be-installed one
  18598. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  18599. - test "$hardcode_minus_L_F77" != no; then
  18600. - # Linking always hardcodes the temporary library directory.
  18601. - hardcode_action_F77=relink
  18602. +/* Override any GCC internal prototype to avoid an error.
  18603. + Use char because int might match the return type of a GCC
  18604. + builtin and then its argument prototype would still apply. */
  18605. +#ifdef __cplusplus
  18606. +extern "C"
  18607. +#endif
  18608. +char setsockopt ();
  18609. +int
  18610. +main ()
  18611. +{
  18612. +return setsockopt ();
  18613. + ;
  18614. + return 0;
  18615. +}
  18616. +_ACEOF
  18617. +for ac_lib in '' socket; do
  18618. + if test -z "$ac_lib"; then
  18619. + ac_res="none required"
  18620. else
  18621. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18622. - hardcode_action_F77=immediate
  18623. + ac_res=-l$ac_lib
  18624. + LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  18625. fi
  18626. -else
  18627. - # We cannot hardcode anything, or else we can only hardcode existing
  18628. - # directories.
  18629. - hardcode_action_F77=unsupported
  18630. + if ac_fn_c_try_link "$LINENO"; then :
  18631. + ac_cv_search_setsockopt=$ac_res
  18632. fi
  18633. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
  18634. -$as_echo "$hardcode_action_F77" >&6; }
  18635. -
  18636. -if test "$hardcode_action_F77" = relink; then
  18637. - # Fast installation is not supported
  18638. - enable_fast_install=no
  18639. -elif test "$shlibpath_overrides_runpath" = yes ||
  18640. - test "$enable_shared" = no; then
  18641. - # Fast installation is not necessary
  18642. - enable_fast_install=needless
  18643. +rm -f core conftest.err conftest.$ac_objext \
  18644. + conftest$ac_exeext
  18645. + if test "${ac_cv_search_setsockopt+set}" = set; then :
  18646. + break
  18647. fi
  18648. +done
  18649. +if test "${ac_cv_search_setsockopt+set}" = set; then :
  18650. -striplib=
  18651. -old_striplib=
  18652. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  18653. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  18654. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  18655. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  18656. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  18657. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18658. -$as_echo "yes" >&6; }
  18659. else
  18660. -# FIXME - insert some real tests, host_os isn't really good enough
  18661. - case $host_os in
  18662. - darwin*)
  18663. - if test -n "$STRIP" ; then
  18664. - striplib="$STRIP -x"
  18665. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18666. -$as_echo "yes" >&6; }
  18667. - else
  18668. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18669. -$as_echo "no" >&6; }
  18670. + ac_cv_search_setsockopt=no
  18671. fi
  18672. - ;;
  18673. - *)
  18674. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18675. -$as_echo "no" >&6; }
  18676. - ;;
  18677. - esac
  18678. +rm conftest.$ac_ext
  18679. +LIBS=$ac_func_search_save_LIBS
  18680. fi
  18681. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  18682. +$as_echo "$ac_cv_search_setsockopt" >&6; }
  18683. +ac_res=$ac_cv_search_setsockopt
  18684. +if test "$ac_res" != no; then :
  18685. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18686. +fi
  18687. +fi
  18688. -# The else clause should only fire when bootstrapping the
  18689. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  18690. -# with your package, and you will get complaints that there are
  18691. -# no rules to generate ltmain.sh.
  18692. -if test -f "$ltmain"; then
  18693. - # See if we are running on zsh, and set the options which allow our commands through
  18694. - # without removal of \ escapes.
  18695. - if test -n "${ZSH_VERSION+set}" ; then
  18696. - setopt NO_GLOB_SUBST
  18697. - fi
  18698. - # Now quote all the things that may contain metacharacters while being
  18699. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  18700. - # variables and quote the copies for generation of the libtool script.
  18701. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  18702. - SED SHELL STRIP \
  18703. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  18704. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  18705. - deplibs_check_method reload_flag reload_cmds need_locks \
  18706. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  18707. - lt_cv_sys_global_symbol_to_c_name_address \
  18708. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  18709. - old_postinstall_cmds old_postuninstall_cmds \
  18710. - compiler_F77 \
  18711. - CC_F77 \
  18712. - LD_F77 \
  18713. - lt_prog_compiler_wl_F77 \
  18714. - lt_prog_compiler_pic_F77 \
  18715. - lt_prog_compiler_static_F77 \
  18716. - lt_prog_compiler_no_builtin_flag_F77 \
  18717. - export_dynamic_flag_spec_F77 \
  18718. - thread_safe_flag_spec_F77 \
  18719. - whole_archive_flag_spec_F77 \
  18720. - enable_shared_with_static_runtimes_F77 \
  18721. - old_archive_cmds_F77 \
  18722. - old_archive_from_new_cmds_F77 \
  18723. - predep_objects_F77 \
  18724. - postdep_objects_F77 \
  18725. - predeps_F77 \
  18726. - postdeps_F77 \
  18727. - compiler_lib_search_path_F77 \
  18728. - archive_cmds_F77 \
  18729. - archive_expsym_cmds_F77 \
  18730. - postinstall_cmds_F77 \
  18731. - postuninstall_cmds_F77 \
  18732. - old_archive_from_expsyms_cmds_F77 \
  18733. - allow_undefined_flag_F77 \
  18734. - no_undefined_flag_F77 \
  18735. - export_symbols_cmds_F77 \
  18736. - hardcode_libdir_flag_spec_F77 \
  18737. - hardcode_libdir_flag_spec_ld_F77 \
  18738. - hardcode_libdir_separator_F77 \
  18739. - hardcode_automatic_F77 \
  18740. - module_cmds_F77 \
  18741. - module_expsym_cmds_F77 \
  18742. - lt_cv_prog_compiler_c_o_F77 \
  18743. - exclude_expsyms_F77 \
  18744. - include_expsyms_F77; do
  18745. -
  18746. - case $var in
  18747. - old_archive_cmds_F77 | \
  18748. - old_archive_from_new_cmds_F77 | \
  18749. - archive_cmds_F77 | \
  18750. - archive_expsym_cmds_F77 | \
  18751. - module_cmds_F77 | \
  18752. - module_expsym_cmds_F77 | \
  18753. - old_archive_from_expsyms_cmds_F77 | \
  18754. - export_symbols_cmds_F77 | \
  18755. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  18756. - postinstall_cmds | postuninstall_cmds | \
  18757. - old_postinstall_cmds | old_postuninstall_cmds | \
  18758. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  18759. - # Double-quote double-evaled strings.
  18760. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  18761. - ;;
  18762. - *)
  18763. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  18764. - ;;
  18765. - esac
  18766. - done
  18767. -
  18768. - case $lt_echo in
  18769. - *'\$0 --fallback-echo"')
  18770. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  18771. - ;;
  18772. - esac
  18773. -
  18774. -cfgfile="$ofile"
  18775. -
  18776. - cat <<__EOF__ >> "$cfgfile"
  18777. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  18778. -
  18779. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  18780. -
  18781. -# Shell to use when invoking shell scripts.
  18782. -SHELL=$lt_SHELL
  18783. -
  18784. -# Whether or not to build shared libraries.
  18785. -build_libtool_libs=$enable_shared
  18786. -
  18787. -# Whether or not to build static libraries.
  18788. -build_old_libs=$enable_static
  18789. -
  18790. -# Whether or not to add -lc for building shared libraries.
  18791. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  18792. -
  18793. -# Whether or not to disallow shared libs when runtime libs are static
  18794. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  18795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  18796. +$as_echo_n "checking for library containing setsockopt... " >&6; }
  18797. +if test "${ac_cv_search_setsockopt+set}" = set; then :
  18798. + $as_echo_n "(cached) " >&6
  18799. +else
  18800. + ac_func_search_save_LIBS=$LIBS
  18801. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18802. +/* end confdefs.h. */
  18803. -# Whether or not to optimize for fast installation.
  18804. -fast_install=$enable_fast_install
  18805. -
  18806. -# The host system.
  18807. -host_alias=$host_alias
  18808. -host=$host
  18809. +/* Override any GCC internal prototype to avoid an error.
  18810. + Use char because int might match the return type of a GCC
  18811. + builtin and then its argument prototype would still apply. */
  18812. +#ifdef __cplusplus
  18813. +extern "C"
  18814. +#endif
  18815. +char setsockopt ();
  18816. +int
  18817. +main ()
  18818. +{
  18819. +return setsockopt ();
  18820. + ;
  18821. + return 0;
  18822. +}
  18823. +_ACEOF
  18824. +for ac_lib in '' nsl; do
  18825. + if test -z "$ac_lib"; then
  18826. + ac_res="none required"
  18827. + else
  18828. + ac_res=-l$ac_lib
  18829. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18830. + fi
  18831. + if ac_fn_c_try_link "$LINENO"; then :
  18832. + ac_cv_search_setsockopt=$ac_res
  18833. +fi
  18834. +rm -f core conftest.err conftest.$ac_objext \
  18835. + conftest$ac_exeext
  18836. + if test "${ac_cv_search_setsockopt+set}" = set; then :
  18837. + break
  18838. +fi
  18839. +done
  18840. +if test "${ac_cv_search_setsockopt+set}" = set; then :
  18841. -# An echo program that does not interpret backslashes.
  18842. -echo=$lt_echo
  18843. +else
  18844. + ac_cv_search_setsockopt=no
  18845. +fi
  18846. +rm conftest.$ac_ext
  18847. +LIBS=$ac_func_search_save_LIBS
  18848. +fi
  18849. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  18850. +$as_echo "$ac_cv_search_setsockopt" >&6; }
  18851. +ac_res=$ac_cv_search_setsockopt
  18852. +if test "$ac_res" != no; then :
  18853. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18854. -# The archiver.
  18855. -AR=$lt_AR
  18856. -AR_FLAGS=$lt_AR_FLAGS
  18857. +fi
  18858. -# A C compiler.
  18859. -LTCC=$lt_LTCC
  18860. -# A language-specific compiler.
  18861. -CC=$lt_compiler_F77
  18862. +##################################
  18863. +#### Checks for header files. ####
  18864. +##################################
  18865. -# Is the compiler the GNU C compiler?
  18866. -with_gcc=$GCC_F77
  18867. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  18868. +$as_echo_n "checking for ANSI C header files... " >&6; }
  18869. +if test "${ac_cv_header_stdc+set}" = set; then :
  18870. + $as_echo_n "(cached) " >&6
  18871. +else
  18872. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18873. +/* end confdefs.h. */
  18874. +#include <stdlib.h>
  18875. +#include <stdarg.h>
  18876. +#include <string.h>
  18877. +#include <float.h>
  18878. -# An ERE matcher.
  18879. -EGREP=$lt_EGREP
  18880. +int
  18881. +main ()
  18882. +{
  18883. -# The linker used to build libraries.
  18884. -LD=$lt_LD_F77
  18885. + ;
  18886. + return 0;
  18887. +}
  18888. +_ACEOF
  18889. +if ac_fn_c_try_compile "$LINENO"; then :
  18890. + ac_cv_header_stdc=yes
  18891. +else
  18892. + ac_cv_header_stdc=no
  18893. +fi
  18894. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18895. -# Whether we need hard or soft links.
  18896. -LN_S=$lt_LN_S
  18897. +if test $ac_cv_header_stdc = yes; then
  18898. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18899. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18900. +/* end confdefs.h. */
  18901. +#include <string.h>
  18902. -# A BSD-compatible nm program.
  18903. -NM=$lt_NM
  18904. +_ACEOF
  18905. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18906. + $EGREP "memchr" >/dev/null 2>&1; then :
  18907. -# A symbol stripping program
  18908. -STRIP=$lt_STRIP
  18909. +else
  18910. + ac_cv_header_stdc=no
  18911. +fi
  18912. +rm -f conftest*
  18913. -# Used to examine libraries when file_magic_cmd begins "file"
  18914. -MAGIC_CMD=$MAGIC_CMD
  18915. +fi
  18916. -# Used on cygwin: DLL creation program.
  18917. -DLLTOOL="$DLLTOOL"
  18918. +if test $ac_cv_header_stdc = yes; then
  18919. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18920. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18921. +/* end confdefs.h. */
  18922. +#include <stdlib.h>
  18923. -# Used on cygwin: object dumper.
  18924. -OBJDUMP="$OBJDUMP"
  18925. +_ACEOF
  18926. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18927. + $EGREP "free" >/dev/null 2>&1; then :
  18928. -# Used on cygwin: assembler.
  18929. -AS="$AS"
  18930. +else
  18931. + ac_cv_header_stdc=no
  18932. +fi
  18933. +rm -f conftest*
  18934. -# The name of the directory that contains temporary libtool files.
  18935. -objdir=$objdir
  18936. +fi
  18937. -# How to create reloadable object files.
  18938. -reload_flag=$lt_reload_flag
  18939. -reload_cmds=$lt_reload_cmds
  18940. +if test $ac_cv_header_stdc = yes; then
  18941. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18942. + if test "$cross_compiling" = yes; then :
  18943. + :
  18944. +else
  18945. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18946. +/* end confdefs.h. */
  18947. +#include <ctype.h>
  18948. +#include <stdlib.h>
  18949. +#if ((' ' & 0x0FF) == 0x020)
  18950. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18951. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18952. +#else
  18953. +# define ISLOWER(c) \
  18954. + (('a' <= (c) && (c) <= 'i') \
  18955. + || ('j' <= (c) && (c) <= 'r') \
  18956. + || ('s' <= (c) && (c) <= 'z'))
  18957. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18958. +#endif
  18959. -# How to pass a linker flag through the compiler.
  18960. -wl=$lt_lt_prog_compiler_wl_F77
  18961. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18962. +int
  18963. +main ()
  18964. +{
  18965. + int i;
  18966. + for (i = 0; i < 256; i++)
  18967. + if (XOR (islower (i), ISLOWER (i))
  18968. + || toupper (i) != TOUPPER (i))
  18969. + return 2;
  18970. + return 0;
  18971. +}
  18972. +_ACEOF
  18973. +if ac_fn_c_try_run "$LINENO"; then :
  18974. -# Object file suffix (normally "o").
  18975. -objext="$ac_objext"
  18976. +else
  18977. + ac_cv_header_stdc=no
  18978. +fi
  18979. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18980. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18981. +fi
  18982. -# Old archive suffix (normally "a").
  18983. -libext="$libext"
  18984. +fi
  18985. +fi
  18986. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  18987. +$as_echo "$ac_cv_header_stdc" >&6; }
  18988. +if test $ac_cv_header_stdc = yes; then
  18989. -# Shared library suffix (normally ".so").
  18990. -shrext_cmds='$shrext_cmds'
  18991. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  18992. -# Executable file suffix (normally "").
  18993. -exeext="$exeext"
  18994. +fi
  18995. -# Additional compiler flags for building library objects.
  18996. -pic_flag=$lt_lt_prog_compiler_pic_F77
  18997. -pic_mode=$pic_mode
  18998. +for ac_header in unistd.h sys/select.h
  18999. +do :
  19000. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19001. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19002. +eval as_val=\$$as_ac_Header
  19003. + if test "x$as_val" = x""yes; then :
  19004. + cat >>confdefs.h <<_ACEOF
  19005. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19006. +_ACEOF
  19007. -# What is the maximum length of a command?
  19008. -max_cmd_len=$lt_cv_sys_max_cmd_len
  19009. +fi
  19010. -# Does compiler simultaneously support -c and -o options?
  19011. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  19012. +done
  19013. -# Must we lock files when doing compilation ?
  19014. -need_locks=$lt_need_locks
  19015. -# Do we need the lib prefix for modules?
  19016. -need_lib_prefix=$need_lib_prefix
  19017. +##########################################
  19018. +#### Checks for typedefs, structures, ####
  19019. +#### and compiler characteristics. ####
  19020. +##########################################
  19021. -# Do we need a version for libraries?
  19022. -need_version=$need_version
  19023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  19024. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  19025. +if test "${ac_cv_c_const+set}" = set; then :
  19026. + $as_echo_n "(cached) " >&6
  19027. +else
  19028. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19029. +/* end confdefs.h. */
  19030. -# Whether dlopen is supported.
  19031. -dlopen_support=$enable_dlopen
  19032. +int
  19033. +main ()
  19034. +{
  19035. +/* FIXME: Include the comments suggested by Paul. */
  19036. +#ifndef __cplusplus
  19037. + /* Ultrix mips cc rejects this. */
  19038. + typedef int charset[2];
  19039. + const charset cs;
  19040. + /* SunOS 4.1.1 cc rejects this. */
  19041. + char const *const *pcpcc;
  19042. + char **ppc;
  19043. + /* NEC SVR4.0.2 mips cc rejects this. */
  19044. + struct point {int x, y;};
  19045. + static struct point const zero = {0,0};
  19046. + /* AIX XL C 1.02.0.0 rejects this.
  19047. + It does not let you subtract one const X* pointer from another in
  19048. + an arm of an if-expression whose if-part is not a constant
  19049. + expression */
  19050. + const char *g = "string";
  19051. + pcpcc = &g + (g ? g-g : 0);
  19052. + /* HPUX 7.0 cc rejects these. */
  19053. + ++pcpcc;
  19054. + ppc = (char**) pcpcc;
  19055. + pcpcc = (char const *const *) ppc;
  19056. + { /* SCO 3.2v4 cc rejects this. */
  19057. + char *t;
  19058. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  19059. -# Whether dlopen of programs is supported.
  19060. -dlopen_self=$enable_dlopen_self
  19061. + *t++ = 0;
  19062. + if (s) return 0;
  19063. + }
  19064. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  19065. + int x[] = {25, 17};
  19066. + const int *foo = &x[0];
  19067. + ++foo;
  19068. + }
  19069. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  19070. + typedef const int *iptr;
  19071. + iptr p = 0;
  19072. + ++p;
  19073. + }
  19074. + { /* AIX XL C 1.02.0.0 rejects this saying
  19075. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  19076. + struct s { int j; const int *ap[3]; };
  19077. + struct s *b; b->j = 5;
  19078. + }
  19079. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  19080. + const int foo = 10;
  19081. + if (!foo) return 0;
  19082. + }
  19083. + return !cs[0] && !zero.x;
  19084. +#endif
  19085. -# Whether dlopen of statically linked programs is supported.
  19086. -dlopen_self_static=$enable_dlopen_self_static
  19087. + ;
  19088. + return 0;
  19089. +}
  19090. +_ACEOF
  19091. +if ac_fn_c_try_compile "$LINENO"; then :
  19092. + ac_cv_c_const=yes
  19093. +else
  19094. + ac_cv_c_const=no
  19095. +fi
  19096. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19097. +fi
  19098. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  19099. +$as_echo "$ac_cv_c_const" >&6; }
  19100. +if test $ac_cv_c_const = no; then
  19101. -# Compiler flag to prevent dynamic linking.
  19102. -link_static_flag=$lt_lt_prog_compiler_static_F77
  19103. +$as_echo "#define const /**/" >>confdefs.h
  19104. -# Compiler flag to turn off builtin functions.
  19105. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  19106. +fi
  19107. -# Compiler flag to allow reflexive dlopens.
  19108. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  19109. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  19110. +$as_echo_n "checking for inline... " >&6; }
  19111. +if test "${ac_cv_c_inline+set}" = set; then :
  19112. + $as_echo_n "(cached) " >&6
  19113. +else
  19114. + ac_cv_c_inline=no
  19115. +for ac_kw in inline __inline__ __inline; do
  19116. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19117. +/* end confdefs.h. */
  19118. +#ifndef __cplusplus
  19119. +typedef int foo_t;
  19120. +static $ac_kw foo_t static_foo () {return 0; }
  19121. +$ac_kw foo_t foo () {return 0; }
  19122. +#endif
  19123. -# Compiler flag to generate shared objects directly from archives.
  19124. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  19125. +_ACEOF
  19126. +if ac_fn_c_try_compile "$LINENO"; then :
  19127. + ac_cv_c_inline=$ac_kw
  19128. +fi
  19129. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19130. + test "$ac_cv_c_inline" != no && break
  19131. +done
  19132. -# Compiler flag to generate thread-safe objects.
  19133. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  19134. +fi
  19135. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  19136. +$as_echo "$ac_cv_c_inline" >&6; }
  19137. -# Library versioning type.
  19138. -version_type=$version_type
  19139. +case $ac_cv_c_inline in
  19140. + inline | yes) ;;
  19141. + *)
  19142. + case $ac_cv_c_inline in
  19143. + no) ac_val=;;
  19144. + *) ac_val=$ac_cv_c_inline;;
  19145. + esac
  19146. + cat >>confdefs.h <<_ACEOF
  19147. +#ifndef __cplusplus
  19148. +#define inline $ac_val
  19149. +#endif
  19150. +_ACEOF
  19151. + ;;
  19152. +esac
  19153. -# Format of library name prefix.
  19154. -libname_spec=$lt_libname_spec
  19155. +ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  19156. +if test "x$ac_cv_type_size_t" = x""yes; then :
  19157. -# List of archive names. First name is the real one, the rest are links.
  19158. -# The last name is the one that the linker finds with -lNAME.
  19159. -library_names_spec=$lt_library_names_spec
  19160. +else
  19161. -# The coded name of the library, if different from the real name.
  19162. -soname_spec=$lt_soname_spec
  19163. +cat >>confdefs.h <<_ACEOF
  19164. +#define size_t unsigned int
  19165. +_ACEOF
  19166. -# Commands used to build and install an old-style archive.
  19167. -RANLIB=$lt_RANLIB
  19168. -old_archive_cmds=$lt_old_archive_cmds_F77
  19169. -old_postinstall_cmds=$lt_old_postinstall_cmds
  19170. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19171. +fi
  19172. -# Create an old-style archive from a shared archive.
  19173. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  19174. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  19175. +$as_echo_n "checking return type of signal handlers... " >&6; }
  19176. +if test "${ac_cv_type_signal+set}" = set; then :
  19177. + $as_echo_n "(cached) " >&6
  19178. +else
  19179. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19180. +/* end confdefs.h. */
  19181. +#include <sys/types.h>
  19182. +#include <signal.h>
  19183. -# Create a temporary old-style archive to link instead of a shared archive.
  19184. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  19185. +int
  19186. +main ()
  19187. +{
  19188. +return *(signal (0, 0)) (0) == 1;
  19189. + ;
  19190. + return 0;
  19191. +}
  19192. +_ACEOF
  19193. +if ac_fn_c_try_compile "$LINENO"; then :
  19194. + ac_cv_type_signal=int
  19195. +else
  19196. + ac_cv_type_signal=void
  19197. +fi
  19198. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19199. +fi
  19200. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  19201. +$as_echo "$ac_cv_type_signal" >&6; }
  19202. -# Commands used to build and install a shared archive.
  19203. -archive_cmds=$lt_archive_cmds_F77
  19204. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  19205. -postinstall_cmds=$lt_postinstall_cmds
  19206. -postuninstall_cmds=$lt_postuninstall_cmds
  19207. +cat >>confdefs.h <<_ACEOF
  19208. +#define RETSIGTYPE $ac_cv_type_signal
  19209. +_ACEOF
  19210. -# Commands used to build a loadable module (assumed same as above if empty)
  19211. -module_cmds=$lt_module_cmds_F77
  19212. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  19213. -# Commands to strip libraries.
  19214. -old_striplib=$lt_old_striplib
  19215. -striplib=$lt_striplib
  19216. +ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
  19217. +/* NetBSD declares sys_siglist in unistd.h. */
  19218. +#ifdef HAVE_UNISTD_H
  19219. +# include <unistd.h>
  19220. +#endif
  19221. -# Dependencies to place before the objects being linked to create a
  19222. -# shared library.
  19223. -predep_objects=$lt_predep_objects_F77
  19224. -
  19225. -# Dependencies to place after the objects being linked to create a
  19226. -# shared library.
  19227. -postdep_objects=$lt_postdep_objects_F77
  19228. -
  19229. -# Dependencies to place before the objects being linked to create a
  19230. -# shared library.
  19231. -predeps=$lt_predeps_F77
  19232. -
  19233. -# Dependencies to place after the objects being linked to create a
  19234. -# shared library.
  19235. -postdeps=$lt_postdeps_F77
  19236. -
  19237. -# The library search path used internally by the compiler when linking
  19238. -# a shared library.
  19239. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  19240. +"
  19241. +if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
  19242. + ac_have_decl=1
  19243. +else
  19244. + ac_have_decl=0
  19245. +fi
  19246. -# Method to check whether dependent libraries are shared objects.
  19247. -deplibs_check_method=$lt_deplibs_check_method
  19248. +cat >>confdefs.h <<_ACEOF
  19249. +#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
  19250. +_ACEOF
  19251. -# Command to use when deplibs_check_method == file_magic.
  19252. -file_magic_cmd=$lt_file_magic_cmd
  19253. -# Flag that allows shared libraries with undefined symbols to be built.
  19254. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  19255. -# Flag that forces no undefined symbols.
  19256. -no_undefined_flag=$lt_no_undefined_flag_F77
  19257. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
  19258. +$as_echo_n "checking for byte typedef... " >&6; }
  19259. + if test "${gnupg_cv_typedef_byte+set}" = set; then :
  19260. + $as_echo_n "(cached) " >&6
  19261. +else
  19262. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19263. +/* end confdefs.h. */
  19264. +#define _GNU_SOURCE 1
  19265. + #include <stdlib.h>
  19266. + #include <sys/types.h>
  19267. +int
  19268. +main ()
  19269. +{
  19270. -# Commands used to finish a libtool library installation in a directory.
  19271. -finish_cmds=$lt_finish_cmds
  19272. + #undef byte
  19273. + int a = sizeof(byte);
  19274. -# Same as above, but a single script fragment to be evaled but not shown.
  19275. -finish_eval=$lt_finish_eval
  19276. + ;
  19277. + return 0;
  19278. +}
  19279. +_ACEOF
  19280. +if ac_fn_c_try_compile "$LINENO"; then :
  19281. + gnupg_cv_typedef_byte=yes
  19282. +else
  19283. + gnupg_cv_typedef_byte=no
  19284. +fi
  19285. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19286. +fi
  19287. -# Take the output of nm and produce a listing of raw symbols and C names.
  19288. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19289. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
  19290. +$as_echo "$gnupg_cv_typedef_byte" >&6; }
  19291. + if test "$gnupg_cv_typedef_byte" = yes; then
  19292. -# Transform the output of nm in a proper C declaration
  19293. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19294. +$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
  19295. -# Transform the output of nm in a C name address pair
  19296. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19297. + fi
  19298. -# This is the shared library runtime path variable.
  19299. -runpath_var=$runpath_var
  19300. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
  19301. +$as_echo_n "checking for ushort typedef... " >&6; }
  19302. + if test "${gnupg_cv_typedef_ushort+set}" = set; then :
  19303. + $as_echo_n "(cached) " >&6
  19304. +else
  19305. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19306. +/* end confdefs.h. */
  19307. +#define _GNU_SOURCE 1
  19308. + #include <stdlib.h>
  19309. + #include <sys/types.h>
  19310. +int
  19311. +main ()
  19312. +{
  19313. -# This is the shared library path variable.
  19314. -shlibpath_var=$shlibpath_var
  19315. + #undef ushort
  19316. + int a = sizeof(ushort);
  19317. -# Is shlibpath searched before the hard-coded library search path?
  19318. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19319. + ;
  19320. + return 0;
  19321. +}
  19322. +_ACEOF
  19323. +if ac_fn_c_try_compile "$LINENO"; then :
  19324. + gnupg_cv_typedef_ushort=yes
  19325. +else
  19326. + gnupg_cv_typedef_ushort=no
  19327. +fi
  19328. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19329. +fi
  19330. -# How to hardcode a shared library path into an executable.
  19331. -hardcode_action=$hardcode_action_F77
  19332. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
  19333. +$as_echo "$gnupg_cv_typedef_ushort" >&6; }
  19334. + if test "$gnupg_cv_typedef_ushort" = yes; then
  19335. -# Whether we should hardcode library paths into libraries.
  19336. -hardcode_into_libs=$hardcode_into_libs
  19337. +$as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
  19338. -# Flag to hardcode \$libdir into a binary during linking.
  19339. -# This must work even if \$libdir does not exist.
  19340. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  19341. + fi
  19342. -# If ld is used when linking, flag to hardcode \$libdir into
  19343. -# a binary during linking. This must work even if \$libdir does
  19344. -# not exist.
  19345. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  19346. -
  19347. -# Whether we need a single -rpath flag with a separated argument.
  19348. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  19349. -
  19350. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  19351. -# resulting binary.
  19352. -hardcode_direct=$hardcode_direct_F77
  19353. -
  19354. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  19355. -# resulting binary.
  19356. -hardcode_minus_L=$hardcode_minus_L_F77
  19357. -
  19358. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  19359. -# the resulting binary.
  19360. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  19361. -
  19362. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  19363. -# and all subsequent libraries and executables linked against it.
  19364. -hardcode_automatic=$hardcode_automatic_F77
  19365. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
  19366. +$as_echo_n "checking for ulong typedef... " >&6; }
  19367. + if test "${gnupg_cv_typedef_ulong+set}" = set; then :
  19368. + $as_echo_n "(cached) " >&6
  19369. +else
  19370. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19371. +/* end confdefs.h. */
  19372. +#define _GNU_SOURCE 1
  19373. + #include <stdlib.h>
  19374. + #include <sys/types.h>
  19375. +int
  19376. +main ()
  19377. +{
  19378. -# Variables whose values should be saved in libtool wrapper scripts and
  19379. -# restored at relink time.
  19380. -variables_saved_for_relink="$variables_saved_for_relink"
  19381. + #undef ulong
  19382. + int a = sizeof(ulong);
  19383. -# Whether libtool must link a program against all its dependency libraries.
  19384. -link_all_deplibs=$link_all_deplibs_F77
  19385. + ;
  19386. + return 0;
  19387. +}
  19388. +_ACEOF
  19389. +if ac_fn_c_try_compile "$LINENO"; then :
  19390. + gnupg_cv_typedef_ulong=yes
  19391. +else
  19392. + gnupg_cv_typedef_ulong=no
  19393. +fi
  19394. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19395. +fi
  19396. -# Compile-time system search path for libraries
  19397. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19398. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
  19399. +$as_echo "$gnupg_cv_typedef_ulong" >&6; }
  19400. + if test "$gnupg_cv_typedef_ulong" = yes; then
  19401. -# Run-time system search path for libraries
  19402. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  19403. +$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
  19404. -# Fix the shell variable \$srcfile for the compiler.
  19405. -fix_srcfile_path="$fix_srcfile_path_F77"
  19406. + fi
  19407. -# Set to yes if exported symbols are required.
  19408. -always_export_symbols=$always_export_symbols_F77
  19409. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
  19410. +$as_echo_n "checking for u16 typedef... " >&6; }
  19411. + if test "${gnupg_cv_typedef_u16+set}" = set; then :
  19412. + $as_echo_n "(cached) " >&6
  19413. +else
  19414. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19415. +/* end confdefs.h. */
  19416. +#define _GNU_SOURCE 1
  19417. + #include <stdlib.h>
  19418. + #include <sys/types.h>
  19419. +int
  19420. +main ()
  19421. +{
  19422. -# The commands to list exported symbols.
  19423. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  19424. + #undef u16
  19425. + int a = sizeof(u16);
  19426. -# The commands to extract the exported symbol list from a shared archive.
  19427. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19428. + ;
  19429. + return 0;
  19430. +}
  19431. +_ACEOF
  19432. +if ac_fn_c_try_compile "$LINENO"; then :
  19433. + gnupg_cv_typedef_u16=yes
  19434. +else
  19435. + gnupg_cv_typedef_u16=no
  19436. +fi
  19437. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19438. +fi
  19439. -# Symbols that should not be listed in the preloaded symbols.
  19440. -exclude_expsyms=$lt_exclude_expsyms_F77
  19441. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
  19442. +$as_echo "$gnupg_cv_typedef_u16" >&6; }
  19443. + if test "$gnupg_cv_typedef_u16" = yes; then
  19444. -# Symbols that must always be exported.
  19445. -include_expsyms=$lt_include_expsyms_F77
  19446. +$as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
  19447. -# ### END LIBTOOL TAG CONFIG: $tagname
  19448. + fi
  19449. -__EOF__
  19450. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
  19451. +$as_echo_n "checking for u32 typedef... " >&6; }
  19452. + if test "${gnupg_cv_typedef_u32+set}" = set; then :
  19453. + $as_echo_n "(cached) " >&6
  19454. +else
  19455. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19456. +/* end confdefs.h. */
  19457. +#define _GNU_SOURCE 1
  19458. + #include <stdlib.h>
  19459. + #include <sys/types.h>
  19460. +int
  19461. +main ()
  19462. +{
  19463. + #undef u32
  19464. + int a = sizeof(u32);
  19465. + ;
  19466. + return 0;
  19467. +}
  19468. +_ACEOF
  19469. +if ac_fn_c_try_compile "$LINENO"; then :
  19470. + gnupg_cv_typedef_u32=yes
  19471. else
  19472. - # If there is no Makefile yet, we rely on a make rule to execute
  19473. - # `config.status --recheck' to rerun these tests and create the
  19474. - # libtool script then.
  19475. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  19476. - if test -f "$ltmain_in"; then
  19477. - test -f Makefile && make "$ltmain"
  19478. - fi
  19479. + gnupg_cv_typedef_u32=no
  19480. +fi
  19481. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19482. fi
  19483. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
  19484. +$as_echo "$gnupg_cv_typedef_u32" >&6; }
  19485. + if test "$gnupg_cv_typedef_u32" = yes; then
  19486. -ac_ext=c
  19487. -ac_cpp='$CPP $CPPFLAGS'
  19488. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19489. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19490. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19491. +$as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
  19492. -CC="$lt_save_CC"
  19493. + fi
  19494. - else
  19495. - tagname=""
  19496. - fi
  19497. - ;;
  19498. - GCJ)
  19499. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  19500. + for ac_header in sys/socket.h
  19501. +do :
  19502. + ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  19503. +if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  19504. + cat >>confdefs.h <<_ACEOF
  19505. +#define HAVE_SYS_SOCKET_H 1
  19506. +_ACEOF
  19507. -# Source file extension for Java test sources.
  19508. -ac_ext=java
  19509. +fi
  19510. -# Object file extension for compiled Java test sources.
  19511. -objext=o
  19512. -objext_GCJ=$objext
  19513. +done
  19514. -# Code to be used in simple compile tests
  19515. -lt_simple_compile_test_code="class foo {}\n"
  19516. -# Code to be used in simple link tests
  19517. -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  19518. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  19519. -# If no C compiler was specified, use CC.
  19520. -LTCC=${LTCC-"$CC"}
  19521. + :
  19522. -# Allow CC to be a program name with arguments.
  19523. -compiler=$CC
  19524. -# Allow CC to be a program name with arguments.
  19525. -lt_save_CC="$CC"
  19526. -CC=${GCJ-"gcj"}
  19527. -compiler=$CC
  19528. -compiler_GCJ=$CC
  19529. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  19530. -archive_cmds_need_lc_GCJ=no
  19531. -## CAVEAT EMPTOR:
  19532. -## There is no encapsulation within the following macros, do not change
  19533. -## the running order or otherwise move them around unless you know exactly
  19534. -## what you are doing...
  19535. + if test $ac_cv_header_sys_socket_h = yes; then
  19536. + SYS_SOCKET_H=''
  19537. + else
  19538. + for ac_header in winsock2.h ws2tcpip.h
  19539. +do :
  19540. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19541. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19542. +eval as_val=\$$as_ac_Header
  19543. + if test "x$as_val" = x""yes; then :
  19544. + cat >>confdefs.h <<_ACEOF
  19545. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19546. +_ACEOF
  19547. -lt_prog_compiler_no_builtin_flag_GCJ=
  19548. +fi
  19549. -if test "$GCC" = yes; then
  19550. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  19551. +done
  19552. + SYS_SOCKET_H='sys/socket.h'
  19553. + fi
  19554. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  19555. -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  19556. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  19557. - $as_echo_n "(cached) " >&6
  19558. -else
  19559. - lt_cv_prog_compiler_rtti_exceptions=no
  19560. - ac_outfile=conftest.$ac_objext
  19561. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19562. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  19563. - # Insert the option either (1) after the last *FLAGS variable, or
  19564. - # (2) before a word containing "conftest.", or (3) at the end.
  19565. - # Note that $ac_compile itself does not contain backslashes and begins
  19566. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  19567. - # The option is referenced via a variable to avoid confusing sed.
  19568. - lt_compile=`echo "$ac_compile" | $SED \
  19569. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  19570. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19571. - -e 's:$: $lt_compiler_flag:'`
  19572. - (eval echo "\"\$as_me:16434: $lt_compile\"" >&5)
  19573. - (eval "$lt_compile" 2>conftest.err)
  19574. - ac_status=$?
  19575. - cat conftest.err >&5
  19576. - echo "$as_me:16438: \$? = $ac_status" >&5
  19577. - if (exit $ac_status) && test -s "$ac_outfile"; then
  19578. - # The compiler can only warn and ignore the option if not recognized
  19579. - # So say no if there are warnings
  19580. - if test ! -s conftest.err; then
  19581. - lt_cv_prog_compiler_rtti_exceptions=yes
  19582. - fi
  19583. - fi
  19584. - $rm conftest*
  19585. -fi
  19586. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  19587. -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  19588. + ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  19589. + #if HAVE_SYS_SOCKET_H
  19590. + # include <sys/socket.h>
  19591. + #elif HAVE_WS2TCPIP_H
  19592. + # include <ws2tcpip.h>
  19593. + #endif
  19594. +"
  19595. +if test "x$ac_cv_type_socklen_t" = x""yes; then :
  19596. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  19597. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  19598. else
  19599. - :
  19600. -fi
  19601. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  19602. +$as_echo_n "checking for socklen_t equivalent... " >&6; }
  19603. + if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then :
  19604. + $as_echo_n "(cached) " >&6
  19605. +else
  19606. + # Systems have either "struct sockaddr *" or
  19607. + # "void *" as the second argument to getpeername
  19608. + gl_cv_socklen_t_equiv=
  19609. + for arg2 in "struct sockaddr" void; do
  19610. + for t in int size_t "unsigned int" "long int" "unsigned long int"; do
  19611. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19612. +/* end confdefs.h. */
  19613. +#include <sys/types.h>
  19614. + #include <sys/socket.h>
  19615. + int getpeername (int, $arg2 *, $t *);
  19616. +int
  19617. +main ()
  19618. +{
  19619. +$t len;
  19620. + getpeername (0, 0, &len);
  19621. + ;
  19622. + return 0;
  19623. +}
  19624. +_ACEOF
  19625. +if ac_fn_c_try_compile "$LINENO"; then :
  19626. + gl_cv_socklen_t_equiv="$t"
  19627. fi
  19628. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19629. + test "$gl_cv_socklen_t_equiv" != "" && break
  19630. + done
  19631. + test "$gl_cv_socklen_t_equiv" != "" && break
  19632. + done
  19633. -lt_prog_compiler_wl_GCJ=
  19634. -lt_prog_compiler_pic_GCJ=
  19635. -lt_prog_compiler_static_GCJ=
  19636. -
  19637. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  19638. -$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  19639. -
  19640. - if test "$GCC" = yes; then
  19641. - lt_prog_compiler_wl_GCJ='-Wl,'
  19642. - lt_prog_compiler_static_GCJ='-static'
  19643. +fi
  19644. - case $host_os in
  19645. - aix*)
  19646. - # All AIX code is PIC.
  19647. - if test "$host_cpu" = ia64; then
  19648. - # AIX 5 now supports IA64 processor
  19649. - lt_prog_compiler_static_GCJ='-Bstatic'
  19650. + if test "$gl_cv_socklen_t_equiv" = ""; then
  19651. + as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  19652. fi
  19653. - ;;
  19654. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
  19655. +$as_echo "$gl_cv_socklen_t_equiv" >&6; }
  19656. - amigaos*)
  19657. - # FIXME: we need at least 68020 code to build shared libraries, but
  19658. - # adding the `-m68020' flag to GCC prevents building anything better,
  19659. - # like `-m68040'.
  19660. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  19661. - ;;
  19662. +cat >>confdefs.h <<_ACEOF
  19663. +#define socklen_t $gl_cv_socklen_t_equiv
  19664. +_ACEOF
  19665. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  19666. - # PIC is the default for these OSes.
  19667. - ;;
  19668. +fi
  19669. - mingw* | pw32* | os2*)
  19670. - # This hack is so that the source file can tell whether it is being
  19671. - # built for inclusion in a dll (and should export symbols for example).
  19672. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  19673. - ;;
  19674. +case "${host}" in
  19675. + *-*-mingw32*)
  19676. + # socklen_t may or may not be defined depending on what headers
  19677. + # are included. To be safe we use int as this is the actual type.
  19678. + FALLBACK_SOCKLEN_T="typedef int gcry_socklen_t;"
  19679. + ;;
  19680. + *)
  19681. + if test ".$gl_cv_socklen_t_equiv" = "."; then
  19682. + FALLBACK_SOCKLEN_T="typedef socklen_t gcry_socklen_t;"
  19683. + else
  19684. + FALLBACK_SOCKLEN_T="typedef ${gl_cv_socklen_t_equiv} gcry_socklen_t;"
  19685. + fi
  19686. +esac
  19687. - darwin* | rhapsody*)
  19688. - # PIC is the default on this platform
  19689. - # Common symbols not allowed in MH_DYLIB files
  19690. - lt_prog_compiler_pic_GCJ='-fno-common'
  19691. - ;;
  19692. - msdosdjgpp*)
  19693. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  19694. - # on systems that don't support them.
  19695. - lt_prog_compiler_can_build_shared_GCJ=no
  19696. - enable_shared=no
  19697. - ;;
  19698. +#
  19699. +# Check for ELF visibility support.
  19700. +#
  19701. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
  19702. +$as_echo_n "checking whether the visibility attribute is supported... " >&6; }
  19703. +if test "${gcry_cv_visibility_attribute+set}" = set; then :
  19704. + $as_echo_n "(cached) " >&6
  19705. +else
  19706. + gcry_cv_visibility_attribute=no
  19707. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19708. +/* end confdefs.h. */
  19709. +int foo __attribute__ ((visibility ("hidden"))) = 1;
  19710. + int bar __attribute__ ((visibility ("protected"))) = 1;
  19711. - sysv4*MP*)
  19712. - if test -d /usr/nec; then
  19713. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  19714. - fi
  19715. - ;;
  19716. +_ACEOF
  19717. - hpux*)
  19718. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19719. - # not for PA HP-UX.
  19720. - case "$host_cpu" in
  19721. - hppa*64*|ia64*)
  19722. - # +Z the default
  19723. - ;;
  19724. - *)
  19725. - lt_prog_compiler_pic_GCJ='-fPIC'
  19726. - ;;
  19727. - esac
  19728. - ;;
  19729. + if ${CC-cc} -Werror -S conftest.c -o conftest.s \
  19730. + 1>&5 2>&5 ; then
  19731. + if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
  19732. + if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
  19733. + gcry_cv_visibility_attribute=yes
  19734. + fi
  19735. + fi
  19736. + fi
  19737. - *)
  19738. - lt_prog_compiler_pic_GCJ='-fPIC'
  19739. - ;;
  19740. - esac
  19741. - else
  19742. - # PORTME Check for flag to pass linker flags through the system compiler.
  19743. - case $host_os in
  19744. - aix*)
  19745. - lt_prog_compiler_wl_GCJ='-Wl,'
  19746. - if test "$host_cpu" = ia64; then
  19747. - # AIX 5 now supports IA64 processor
  19748. - lt_prog_compiler_static_GCJ='-Bstatic'
  19749. - else
  19750. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  19751. - fi
  19752. - ;;
  19753. +fi
  19754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
  19755. +$as_echo "$gcry_cv_visibility_attribute" >&6; }
  19756. +if test "$gcry_cv_visibility_attribute" = "yes"; then
  19757. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
  19758. +$as_echo_n "checking for broken visibility attribute... " >&6; }
  19759. +if test "${gcry_cv_broken_visibility_attribute+set}" = set; then :
  19760. + $as_echo_n "(cached) " >&6
  19761. +else
  19762. + gcry_cv_broken_visibility_attribute=yes
  19763. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19764. +/* end confdefs.h. */
  19765. +int foo (int x);
  19766. + int bar (int x) __asm__ ("foo")
  19767. + __attribute__ ((visibility ("hidden")));
  19768. + int bar (int x) { return x; }
  19769. - mingw* | pw32* | os2*)
  19770. - # This hack is so that the source file can tell whether it is being
  19771. - # built for inclusion in a dll (and should export symbols for example).
  19772. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  19773. - ;;
  19774. +_ACEOF
  19775. - hpux9* | hpux10* | hpux11*)
  19776. - lt_prog_compiler_wl_GCJ='-Wl,'
  19777. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19778. - # not for PA HP-UX.
  19779. - case "$host_cpu" in
  19780. - hppa*64*|ia64*)
  19781. - # +Z the default
  19782. - ;;
  19783. - *)
  19784. - lt_prog_compiler_pic_GCJ='+Z'
  19785. - ;;
  19786. - esac
  19787. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  19788. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  19789. - ;;
  19790. + if ${CC-cc} -Werror -S conftest.c -o conftest.s \
  19791. + 1>&5 2>&5 ; then
  19792. + if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
  19793. + then
  19794. + gcry_cv_broken_visibility_attribute=no
  19795. + fi
  19796. + fi
  19797. - irix5* | irix6* | nonstopux*)
  19798. - lt_prog_compiler_wl_GCJ='-Wl,'
  19799. - # PIC (with -KPIC) is the default.
  19800. - lt_prog_compiler_static_GCJ='-non_shared'
  19801. - ;;
  19802. +fi
  19803. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
  19804. +$as_echo "$gcry_cv_broken_visibility_attribute" >&6; }
  19805. +fi
  19806. +if test "$gcry_cv_visibility_attribute" = "yes"; then
  19807. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
  19808. +$as_echo_n "checking for broken alias attribute... " >&6; }
  19809. +if test "${gcry_cv_broken_alias_attribute+set}" = set; then :
  19810. + $as_echo_n "(cached) " >&6
  19811. +else
  19812. + gcry_cv_broken_alias_attribute=yes
  19813. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19814. +/* end confdefs.h. */
  19815. +extern int foo (int x) __asm ("xyzzy");
  19816. + int bar (int x) { return x; }
  19817. + extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
  19818. + extern int dfoo;
  19819. + extern __typeof (dfoo) dfoo __asm ("abccb");
  19820. + int dfoo = 1;
  19821. - newsos6)
  19822. - lt_prog_compiler_pic_GCJ='-KPIC'
  19823. - lt_prog_compiler_static_GCJ='-Bstatic'
  19824. - ;;
  19825. +_ACEOF
  19826. - linux*)
  19827. - case $CC in
  19828. - icc* | ecc*)
  19829. - lt_prog_compiler_wl_GCJ='-Wl,'
  19830. - lt_prog_compiler_pic_GCJ='-KPIC'
  19831. - lt_prog_compiler_static_GCJ='-static'
  19832. - ;;
  19833. - ccc*)
  19834. - lt_prog_compiler_wl_GCJ='-Wl,'
  19835. - # All Alpha code is PIC.
  19836. - lt_prog_compiler_static_GCJ='-non_shared'
  19837. - ;;
  19838. - esac
  19839. - ;;
  19840. + if ${CC-cc} -Werror -S conftest.c -o conftest.s \
  19841. + 1>&5 2>&5 ; then
  19842. + if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
  19843. + grep 'abccb' conftest.s >/dev/null 2>&1; then
  19844. + gcry_cv_broken_alias_attribute=no
  19845. + fi
  19846. + fi
  19847. - osf3* | osf4* | osf5*)
  19848. - lt_prog_compiler_wl_GCJ='-Wl,'
  19849. - # All OSF/1 code is PIC.
  19850. - lt_prog_compiler_static_GCJ='-non_shared'
  19851. - ;;
  19852. +fi
  19853. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
  19854. +$as_echo "$gcry_cv_broken_alias_attribute" >&6; }
  19855. +fi
  19856. +if test "$gcry_cv_visibility_attribute" = "yes"; then
  19857. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
  19858. +$as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
  19859. +if test "${gcry_cv_gcc_has_f_visibility+set}" = set; then :
  19860. + $as_echo_n "(cached) " >&6
  19861. +else
  19862. + gcry_cv_gcc_has_f_visibility=no
  19863. + _gcc_cflags_save=$CFLAGS
  19864. + CFLAGS="-fvisibility=hidden"
  19865. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19866. +/* end confdefs.h. */
  19867. - sco3.2v5*)
  19868. - lt_prog_compiler_pic_GCJ='-Kpic'
  19869. - lt_prog_compiler_static_GCJ='-dn'
  19870. - ;;
  19871. +int
  19872. +main ()
  19873. +{
  19874. - solaris*)
  19875. - lt_prog_compiler_wl_GCJ='-Wl,'
  19876. - lt_prog_compiler_pic_GCJ='-KPIC'
  19877. - lt_prog_compiler_static_GCJ='-Bstatic'
  19878. - ;;
  19879. + ;
  19880. + return 0;
  19881. +}
  19882. +_ACEOF
  19883. +if ac_fn_c_try_compile "$LINENO"; then :
  19884. + gcry_cv_gcc_has_f_visibility=yes
  19885. +fi
  19886. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19887. + CFLAGS=$_gcc_cflags_save;
  19888. - sunos4*)
  19889. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  19890. - lt_prog_compiler_pic_GCJ='-PIC'
  19891. - lt_prog_compiler_static_GCJ='-Bstatic'
  19892. - ;;
  19893. +fi
  19894. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
  19895. +$as_echo "$gcry_cv_gcc_has_f_visibility" >&6; }
  19896. +fi
  19897. +if test "$gcry_cv_visibility_attribute" = "yes" \
  19898. + && test "$gcry_cv_broken_visibility_attribute" != "yes" \
  19899. + && test "$gcry_cv_broken_alias_attribute" != "yes" \
  19900. + && test "$gcry_cv_gcc_has_f_visibility" = "yes"
  19901. + then
  19902. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  19903. - lt_prog_compiler_wl_GCJ='-Wl,'
  19904. - lt_prog_compiler_pic_GCJ='-KPIC'
  19905. - lt_prog_compiler_static_GCJ='-Bstatic'
  19906. - ;;
  19907. +$as_echo "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
  19908. - sysv4*MP*)
  19909. - if test -d /usr/nec ;then
  19910. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  19911. - lt_prog_compiler_static_GCJ='-Bstatic'
  19912. - fi
  19913. - ;;
  19914. + CFLAGS="$CFLAGS -fvisibility=hidden"
  19915. +fi
  19916. - uts4*)
  19917. - lt_prog_compiler_pic_GCJ='-pic'
  19918. - lt_prog_compiler_static_GCJ='-Bstatic'
  19919. - ;;
  19920. - *)
  19921. - lt_prog_compiler_can_build_shared_GCJ=no
  19922. - ;;
  19923. - esac
  19924. - fi
  19925. +#######################################
  19926. +#### Checks for library functions. ####
  19927. +#######################################
  19928. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
  19929. -$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  19930. +for ac_func in vprintf
  19931. +do :
  19932. + ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  19933. +if test "x$ac_cv_func_vprintf" = x""yes; then :
  19934. + cat >>confdefs.h <<_ACEOF
  19935. +#define HAVE_VPRINTF 1
  19936. +_ACEOF
  19937. -#
  19938. -# Check to make sure the PIC flag actually works.
  19939. -#
  19940. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  19941. +ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  19942. +if test "x$ac_cv_func__doprnt" = x""yes; then :
  19943. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  19944. -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  19945. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
  19946. - $as_echo_n "(cached) " >&6
  19947. -else
  19948. - lt_prog_compiler_pic_works_GCJ=no
  19949. - ac_outfile=conftest.$ac_objext
  19950. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19951. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  19952. - # Insert the option either (1) after the last *FLAGS variable, or
  19953. - # (2) before a word containing "conftest.", or (3) at the end.
  19954. - # Note that $ac_compile itself does not contain backslashes and begins
  19955. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  19956. - # The option is referenced via a variable to avoid confusing sed.
  19957. - lt_compile=`echo "$ac_compile" | $SED \
  19958. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  19959. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  19960. - -e 's:$: $lt_compiler_flag:'`
  19961. - (eval echo "\"\$as_me:16667: $lt_compile\"" >&5)
  19962. - (eval "$lt_compile" 2>conftest.err)
  19963. - ac_status=$?
  19964. - cat conftest.err >&5
  19965. - echo "$as_me:16671: \$? = $ac_status" >&5
  19966. - if (exit $ac_status) && test -s "$ac_outfile"; then
  19967. - # The compiler can only warn and ignore the option if not recognized
  19968. - # So say no if there are warnings
  19969. - if test ! -s conftest.err; then
  19970. - lt_prog_compiler_pic_works_GCJ=yes
  19971. - fi
  19972. - fi
  19973. - $rm conftest*
  19974. +$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  19975. fi
  19976. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
  19977. -$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
  19978. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  19979. - case $lt_prog_compiler_pic_GCJ in
  19980. - "" | " "*) ;;
  19981. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  19982. - esac
  19983. -else
  19984. - lt_prog_compiler_pic_GCJ=
  19985. - lt_prog_compiler_can_build_shared_GCJ=no
  19986. fi
  19987. +done
  19988. -fi
  19989. -case "$host_os" in
  19990. - # For platforms which do not support PIC, -DPIC is meaningless:
  19991. - *djgpp*)
  19992. - lt_prog_compiler_pic_GCJ=
  19993. - ;;
  19994. - *)
  19995. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  19996. - ;;
  19997. -esac
  19998. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  19999. -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  20000. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  20001. - $as_echo_n "(cached) " >&6
  20002. -else
  20003. - lt_cv_prog_compiler_c_o_GCJ=no
  20004. - $rm -r conftest 2>/dev/null
  20005. - mkdir conftest
  20006. - cd conftest
  20007. - mkdir out
  20008. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  20009. +# We have replacements for these in src/missing-string.c
  20010. +for ac_func in stpcpy strcasecmp
  20011. +do :
  20012. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20013. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20014. +eval as_val=\$$as_ac_var
  20015. + if test "x$as_val" = x""yes; then :
  20016. + cat >>confdefs.h <<_ACEOF
  20017. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20018. +_ACEOF
  20019. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  20020. - # Insert the option either (1) after the last *FLAGS variable, or
  20021. - # (2) before a word containing "conftest.", or (3) at the end.
  20022. - # Note that $ac_compile itself does not contain backslashes and begins
  20023. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  20024. - lt_compile=`echo "$ac_compile" | $SED \
  20025. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  20026. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  20027. - -e 's:$: $lt_compiler_flag:'`
  20028. - (eval echo "\"\$as_me:16727: $lt_compile\"" >&5)
  20029. - (eval "$lt_compile" 2>out/conftest.err)
  20030. - ac_status=$?
  20031. - cat out/conftest.err >&5
  20032. - echo "$as_me:16731: \$? = $ac_status" >&5
  20033. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  20034. - then
  20035. - # The compiler can only warn and ignore the option if not recognized
  20036. - # So say no if there are warnings
  20037. - if test ! -s out/conftest.err; then
  20038. - lt_cv_prog_compiler_c_o_GCJ=yes
  20039. - fi
  20040. - fi
  20041. - chmod u+w .
  20042. - $rm conftest*
  20043. - # SGI C++ compiler will create directory out/ii_files/ for
  20044. - # template instantiation
  20045. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  20046. - $rm out/* && rmdir out
  20047. - cd ..
  20048. - rmdir conftest
  20049. - $rm conftest*
  20050. +fi
  20051. +done
  20052. +
  20053. +# We have replacements for these in src/g10lib.h
  20054. +for ac_func in strtoul memmove stricmp atexit raise
  20055. +do :
  20056. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20057. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20058. +eval as_val=\$$as_ac_var
  20059. + if test "x$as_val" = x""yes; then :
  20060. + cat >>confdefs.h <<_ACEOF
  20061. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20062. +_ACEOF
  20063. fi
  20064. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  20065. -$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  20066. +done
  20067. +# Other checks
  20068. +for ac_func in strerror rand mmap getpagesize sysconf waitpid wait4
  20069. +do :
  20070. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20071. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20072. +eval as_val=\$$as_ac_var
  20073. + if test "x$as_val" = x""yes; then :
  20074. + cat >>confdefs.h <<_ACEOF
  20075. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20076. +_ACEOF
  20077. -hard_links="nottested"
  20078. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  20079. - # do not overwrite the value of need_locks provided by the user
  20080. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  20081. -$as_echo_n "checking if we can lock with hard links... " >&6; }
  20082. - hard_links=yes
  20083. - $rm conftest*
  20084. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  20085. - touch conftest.a
  20086. - ln conftest.a conftest.b 2>&5 || hard_links=no
  20087. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  20088. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  20089. -$as_echo "$hard_links" >&6; }
  20090. - if test "$hard_links" = no; then
  20091. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  20092. -$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  20093. - need_locks=warn
  20094. - fi
  20095. -else
  20096. - need_locks=no
  20097. fi
  20098. +done
  20099. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  20100. -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  20101. -
  20102. - runpath_var=
  20103. - allow_undefined_flag_GCJ=
  20104. - enable_shared_with_static_runtimes_GCJ=no
  20105. - archive_cmds_GCJ=
  20106. - archive_expsym_cmds_GCJ=
  20107. - old_archive_From_new_cmds_GCJ=
  20108. - old_archive_from_expsyms_cmds_GCJ=
  20109. - export_dynamic_flag_spec_GCJ=
  20110. - whole_archive_flag_spec_GCJ=
  20111. - thread_safe_flag_spec_GCJ=
  20112. - hardcode_libdir_flag_spec_GCJ=
  20113. - hardcode_libdir_flag_spec_ld_GCJ=
  20114. - hardcode_libdir_separator_GCJ=
  20115. - hardcode_direct_GCJ=no
  20116. - hardcode_minus_L_GCJ=no
  20117. - hardcode_shlibpath_var_GCJ=unsupported
  20118. - link_all_deplibs_GCJ=unknown
  20119. - hardcode_automatic_GCJ=no
  20120. - module_cmds_GCJ=
  20121. - module_expsym_cmds_GCJ=
  20122. - always_export_symbols_GCJ=no
  20123. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20124. - # include_expsyms should be a list of space-separated symbols to be *always*
  20125. - # included in the symbol list
  20126. - include_expsyms_GCJ=
  20127. - # exclude_expsyms can be an extended regexp of symbols to exclude
  20128. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  20129. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  20130. - # as well as any symbol that contains `d'.
  20131. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  20132. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  20133. - # platforms (ab)use it in PIC code, but their linkers get confused if
  20134. - # the symbol is explicitly referenced. Since portable code cannot
  20135. - # rely on this symbol name, it's probably fine to never include it in
  20136. - # preloaded symbol tables.
  20137. - extract_expsyms_cmds=
  20138. -
  20139. - case $host_os in
  20140. - cygwin* | mingw* | pw32*)
  20141. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  20142. - # When not using gcc, we currently assume that we are using
  20143. - # Microsoft Visual C++.
  20144. - if test "$GCC" != yes; then
  20145. - with_gnu_ld=no
  20146. - fi
  20147. - ;;
  20148. - openbsd*)
  20149. - with_gnu_ld=no
  20150. - ;;
  20151. - esac
  20152. -
  20153. - ld_shlibs_GCJ=yes
  20154. - if test "$with_gnu_ld" = yes; then
  20155. - # If archive_cmds runs LD, not CC, wlarc should be empty
  20156. - wlarc='${wl}'
  20157. -
  20158. - # See if GNU ld supports shared libraries.
  20159. - case $host_os in
  20160. - aix3* | aix4* | aix5*)
  20161. - # On AIX/PPC, the GNU linker is very broken
  20162. - if test "$host_cpu" != ia64; then
  20163. - ld_shlibs_GCJ=no
  20164. - cat <<EOF 1>&2
  20165. -
  20166. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  20167. -*** to be unable to reliably create shared libraries on AIX.
  20168. -*** Therefore, libtool is disabling shared libraries support. If you
  20169. -*** really care for shared libraries, you may want to modify your PATH
  20170. -*** so that a non-GNU linker is found, and then restart.
  20171. -
  20172. -EOF
  20173. - fi
  20174. - ;;
  20175. -
  20176. - amigaos*)
  20177. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  20178. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20179. - hardcode_minus_L_GCJ=yes
  20180. -
  20181. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  20182. - # that the semantics of dynamic libraries on AmigaOS, at least up
  20183. - # to version 4, is to share data among multiple programs linked
  20184. - # with the same dynamic library. Since this doesn't match the
  20185. - # behavior of shared libraries on other platforms, we can't use
  20186. - # them.
  20187. - ld_shlibs_GCJ=no
  20188. - ;;
  20189. -
  20190. - beos*)
  20191. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  20192. - allow_undefined_flag_GCJ=unsupported
  20193. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  20194. - # support --undefined. This deserves some investigation. FIXME
  20195. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20196. - else
  20197. - ld_shlibs_GCJ=no
  20198. - fi
  20199. - ;;
  20200. -
  20201. - cygwin* | mingw* | pw32*)
  20202. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  20203. - # as there is no search path for DLLs.
  20204. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20205. - allow_undefined_flag_GCJ=unsupported
  20206. - always_export_symbols_GCJ=no
  20207. - enable_shared_with_static_runtimes_GCJ=yes
  20208. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  20209. -
  20210. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  20211. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  20212. - # If the export-symbols file already is a .def file (1st line
  20213. - # is EXPORTS), use it as is; otherwise, prepend...
  20214. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  20215. - cp $export_symbols $output_objdir/$soname.def;
  20216. - else
  20217. - echo EXPORTS > $output_objdir/$soname.def;
  20218. - cat $export_symbols >> $output_objdir/$soname.def;
  20219. - fi~
  20220. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  20221. - else
  20222. - ld_shlibs=no
  20223. - fi
  20224. - ;;
  20225. -
  20226. - netbsd* | knetbsd*-gnu)
  20227. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20228. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  20229. - wlarc=
  20230. - else
  20231. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20232. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20233. - fi
  20234. - ;;
  20235. -
  20236. - solaris* | sysv5*)
  20237. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  20238. - ld_shlibs_GCJ=no
  20239. - cat <<EOF 1>&2
  20240. -
  20241. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  20242. -*** create shared libraries on Solaris systems. Therefore, libtool
  20243. -*** is disabling shared libraries support. We urge you to upgrade GNU
  20244. -*** binutils to release 2.9.1 or newer. Another option is to modify
  20245. -*** your PATH or compiler configuration so that the native linker is
  20246. -*** used, and then restart.
  20247. -
  20248. -EOF
  20249. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  20250. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20251. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20252. - else
  20253. - ld_shlibs_GCJ=no
  20254. - fi
  20255. - ;;
  20256. -
  20257. - sunos4*)
  20258. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20259. - wlarc=
  20260. - hardcode_direct_GCJ=yes
  20261. - hardcode_shlibpath_var_GCJ=no
  20262. - ;;
  20263. +for ac_func in gettimeofday getrusage gethrtime clock_gettime syslog
  20264. +do :
  20265. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20266. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20267. +eval as_val=\$$as_ac_var
  20268. + if test "x$as_val" = x""yes; then :
  20269. + cat >>confdefs.h <<_ACEOF
  20270. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20271. +_ACEOF
  20272. - linux*)
  20273. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  20274. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20275. - archive_cmds_GCJ="$tmp_archive_cmds"
  20276. - supports_anon_versioning=no
  20277. - case `$LD -v 2>/dev/null` in
  20278. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  20279. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  20280. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  20281. - *\ 2.11.*) ;; # other 2.11 versions
  20282. - *) supports_anon_versioning=yes ;;
  20283. - esac
  20284. - if test $supports_anon_versioning = yes; then
  20285. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  20286. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  20287. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  20288. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  20289. - else
  20290. - archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  20291. - fi
  20292. - link_all_deplibs_GCJ=no
  20293. - else
  20294. - ld_shlibs_GCJ=no
  20295. - fi
  20296. - ;;
  20297. +fi
  20298. +done
  20299. - *)
  20300. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  20301. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20302. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  20303. - else
  20304. - ld_shlibs_GCJ=no
  20305. - fi
  20306. - ;;
  20307. - esac
  20308. +for ac_func in fcntl ftruncate
  20309. +do :
  20310. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20311. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20312. +eval as_val=\$$as_ac_var
  20313. + if test "x$as_val" = x""yes; then :
  20314. + cat >>confdefs.h <<_ACEOF
  20315. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20316. +_ACEOF
  20317. - if test "$ld_shlibs_GCJ" = yes; then
  20318. - runpath_var=LD_RUN_PATH
  20319. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  20320. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  20321. - # ancient GNU ld didn't support --whole-archive et. al.
  20322. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  20323. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  20324. - else
  20325. - whole_archive_flag_spec_GCJ=
  20326. - fi
  20327. - fi
  20328. - else
  20329. - # PORTME fill in a description of your system's linker (not GNU ld)
  20330. - case $host_os in
  20331. - aix3*)
  20332. - allow_undefined_flag_GCJ=unsupported
  20333. - always_export_symbols_GCJ=yes
  20334. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  20335. - # Note: this linker hardcodes the directories in LIBPATH if there
  20336. - # are no directories specified by -L.
  20337. - hardcode_minus_L_GCJ=yes
  20338. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  20339. - # Neither direct hardcoding nor static linking is supported with a
  20340. - # broken collect2.
  20341. - hardcode_direct_GCJ=unsupported
  20342. - fi
  20343. - ;;
  20344. +fi
  20345. +done
  20346. - aix4* | aix5*)
  20347. - if test "$host_cpu" = ia64; then
  20348. - # On IA64, the linker does run time linking by default, so we don't
  20349. - # have to do anything special.
  20350. - aix_use_runtimelinking=no
  20351. - exp_sym_flag='-Bexport'
  20352. - no_entry_flag=""
  20353. - else
  20354. - # If we're using GNU nm, then we don't want the "-C" option.
  20355. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  20356. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  20357. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  20358. - else
  20359. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  20360. - fi
  20361. - aix_use_runtimelinking=no
  20362. - # Test if we are trying to use run time linking or normal
  20363. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  20364. - # need to do runtime linking.
  20365. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  20366. - for ld_flag in $LDFLAGS; do
  20367. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  20368. - aix_use_runtimelinking=yes
  20369. - break
  20370. - fi
  20371. - done
  20372. - esac
  20373. + for ac_func in mlock
  20374. +do :
  20375. + ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
  20376. +if test "x$ac_cv_func_mlock" = x""yes; then :
  20377. + cat >>confdefs.h <<_ACEOF
  20378. +#define HAVE_MLOCK 1
  20379. +_ACEOF
  20380. - exp_sym_flag='-bexport'
  20381. - no_entry_flag='-bnoentry'
  20382. - fi
  20383. +fi
  20384. +done
  20385. - # When large executables or shared objects are built, AIX ld can
  20386. - # have problems creating the table of contents. If linking a library
  20387. - # or program results in "error TOC overflow" add -mminimal-toc to
  20388. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  20389. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  20390. + if test "$ac_cv_func_mlock" = "no"; then
  20391. + for ac_header in sys/mman.h
  20392. +do :
  20393. + ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  20394. +if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  20395. + cat >>confdefs.h <<_ACEOF
  20396. +#define HAVE_SYS_MMAN_H 1
  20397. +_ACEOF
  20398. - archive_cmds_GCJ=''
  20399. - hardcode_direct_GCJ=yes
  20400. - hardcode_libdir_separator_GCJ=':'
  20401. - link_all_deplibs_GCJ=yes
  20402. +fi
  20403. - if test "$GCC" = yes; then
  20404. - case $host_os in aix4.012|aix4.012.*)
  20405. - # We only want to do this on AIX 4.2 and lower, the check
  20406. - # below for broken collect2 doesn't work under 4.3+
  20407. - collect2name=`${CC} -print-prog-name=collect2`
  20408. - if test -f "$collect2name" && \
  20409. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  20410. - then
  20411. - # We have reworked collect2
  20412. - hardcode_direct_GCJ=yes
  20413. - else
  20414. - # We have old collect2
  20415. - hardcode_direct_GCJ=unsupported
  20416. - # It fails to find uninstalled libraries when the uninstalled
  20417. - # path is not listed in the libpath. Setting hardcode_minus_L
  20418. - # to unsupported forces relinking
  20419. - hardcode_minus_L_GCJ=yes
  20420. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20421. - hardcode_libdir_separator_GCJ=
  20422. - fi
  20423. - esac
  20424. - shared_flag='-shared'
  20425. - else
  20426. - # not using gcc
  20427. - if test "$host_cpu" = ia64; then
  20428. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  20429. - # chokes on -Wl,-G. The following line is correct:
  20430. - shared_flag='-G'
  20431. - else
  20432. - if test "$aix_use_runtimelinking" = yes; then
  20433. - shared_flag='${wl}-G'
  20434. - else
  20435. - shared_flag='${wl}-bM:SRE'
  20436. - fi
  20437. - fi
  20438. - fi
  20439. +done
  20440. - # It seems that -bexpall does not export symbols beginning with
  20441. - # underscore (_), so it is better to generate a list of symbols to export.
  20442. - always_export_symbols_GCJ=yes
  20443. - if test "$aix_use_runtimelinking" = yes; then
  20444. - # Warning - without using the other runtime loading flags (-brtl),
  20445. - # -berok will link without error, but may produce a broken library.
  20446. - allow_undefined_flag_GCJ='-berok'
  20447. - # Determine the default libpath from the value encoded in an empty executable.
  20448. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20449. + if test "$ac_cv_header_sys_mman_h" = "yes"; then
  20450. + # Add librt to LIBS:
  20451. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
  20452. +$as_echo_n "checking for memlk in -lrt... " >&6; }
  20453. +if test "${ac_cv_lib_rt_memlk+set}" = set; then :
  20454. + $as_echo_n "(cached) " >&6
  20455. +else
  20456. + ac_check_lib_save_LIBS=$LIBS
  20457. +LIBS="-lrt $LIBS"
  20458. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20459. /* end confdefs.h. */
  20460. +/* Override any GCC internal prototype to avoid an error.
  20461. + Use char because int might match the return type of a GCC
  20462. + builtin and then its argument prototype would still apply. */
  20463. +#ifdef __cplusplus
  20464. +extern "C"
  20465. +#endif
  20466. +char memlk ();
  20467. int
  20468. main ()
  20469. {
  20470. -
  20471. +return memlk ();
  20472. ;
  20473. return 0;
  20474. }
  20475. _ACEOF
  20476. if ac_fn_c_try_link "$LINENO"; then :
  20477. -
  20478. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20479. -}'`
  20480. -# Check for a 64-bit object if we didn't find anything.
  20481. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20482. -}'`; fi
  20483. + ac_cv_lib_rt_memlk=yes
  20484. +else
  20485. + ac_cv_lib_rt_memlk=no
  20486. fi
  20487. rm -f core conftest.err conftest.$ac_objext \
  20488. conftest$ac_exeext conftest.$ac_ext
  20489. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  20490. -
  20491. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  20492. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  20493. - else
  20494. - if test "$host_cpu" = ia64; then
  20495. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  20496. - allow_undefined_flag_GCJ="-z nodefs"
  20497. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  20498. - else
  20499. - # Determine the default libpath from the value encoded in an empty executable.
  20500. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20501. -/* end confdefs.h. */
  20502. -
  20503. +LIBS=$ac_check_lib_save_LIBS
  20504. +fi
  20505. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
  20506. +$as_echo "$ac_cv_lib_rt_memlk" >&6; }
  20507. +if test "x$ac_cv_lib_rt_memlk" = x""yes; then :
  20508. + cat >>confdefs.h <<_ACEOF
  20509. +#define HAVE_LIBRT 1
  20510. +_ACEOF
  20511. +
  20512. + LIBS="-lrt $LIBS"
  20513. +
  20514. +fi
  20515. +
  20516. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
  20517. +$as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
  20518. +if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then :
  20519. + $as_echo_n "(cached) " >&6
  20520. +else
  20521. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20522. +/* end confdefs.h. */
  20523. +
  20524. + #include <assert.h>
  20525. + #ifdef HAVE_SYS_MMAN_H
  20526. + #include <sys/mman.h>
  20527. + #endif
  20528. +
  20529. int
  20530. main ()
  20531. {
  20532. +int i;
  20533. +
  20534. +/* glibc defines this for functions which it implements
  20535. + * to always fail with ENOSYS. Some functions are actually
  20536. + * named something starting with __ and the normal name
  20537. + * is an alias. */
  20538. +#if defined (__stub_mlock) || defined (__stub___mlock)
  20539. +choke me
  20540. +#else
  20541. +mlock(&i, 4);
  20542. +#endif
  20543. +; return 0;
  20544. +
  20545. ;
  20546. return 0;
  20547. }
  20548. _ACEOF
  20549. if ac_fn_c_try_link "$LINENO"; then :
  20550. -
  20551. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20552. -}'`
  20553. -# Check for a 64-bit object if we didn't find anything.
  20554. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  20555. -}'`; fi
  20556. + gnupg_cv_mlock_is_in_sys_mman=yes
  20557. +else
  20558. + gnupg_cv_mlock_is_in_sys_mman=no
  20559. fi
  20560. rm -f core conftest.err conftest.$ac_objext \
  20561. conftest$ac_exeext conftest.$ac_ext
  20562. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  20563. -
  20564. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  20565. - # Warning - without using the other run time loading flags,
  20566. - # -berok will link without error, but may produce a broken library.
  20567. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  20568. - allow_undefined_flag_GCJ=' ${wl}-berok'
  20569. - # -bexpall does not export symbols beginning with underscore (_)
  20570. - always_export_symbols_GCJ=yes
  20571. - # Exported symbols can be pulled into shared objects from archives
  20572. - whole_archive_flag_spec_GCJ=' '
  20573. - archive_cmds_need_lc_GCJ=yes
  20574. - # This is similar to how AIX traditionally builds it's shared libraries.
  20575. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  20576. - fi
  20577. - fi
  20578. - ;;
  20579. -
  20580. - amigaos*)
  20581. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  20582. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20583. - hardcode_minus_L_GCJ=yes
  20584. - # see comment about different semantics on the GNU ld section
  20585. - ld_shlibs_GCJ=no
  20586. - ;;
  20587. -
  20588. - bsdi4*)
  20589. - export_dynamic_flag_spec_GCJ=-rdynamic
  20590. - ;;
  20591. +fi
  20592. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
  20593. +$as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
  20594. + if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
  20595. - cygwin* | mingw* | pw32*)
  20596. - # When not using gcc, we currently assume that we are using
  20597. - # Microsoft Visual C++.
  20598. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  20599. - # no search path for DLLs.
  20600. - hardcode_libdir_flag_spec_GCJ=' '
  20601. - allow_undefined_flag_GCJ=unsupported
  20602. - # Tell ltmain to make .lib files, not .a files.
  20603. - libext=lib
  20604. - # Tell ltmain to make .dll files, not .so files.
  20605. - shrext_cmds=".dll"
  20606. - # FIXME: Setting linknames here is a bad hack.
  20607. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  20608. - # The linker will automatically build a .lib file if we build a DLL.
  20609. - old_archive_From_new_cmds_GCJ='true'
  20610. - # FIXME: Should let the user specify the lib program.
  20611. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  20612. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  20613. - enable_shared_with_static_runtimes_GCJ=yes
  20614. - ;;
  20615. +$as_echo "#define HAVE_MLOCK 1" >>confdefs.h
  20616. - darwin* | rhapsody*)
  20617. - if test "$GXX" = yes ; then
  20618. - archive_cmds_need_lc_GCJ=no
  20619. - case "$host_os" in
  20620. - rhapsody* | darwin1.[012])
  20621. - allow_undefined_flag_GCJ='-undefined suppress'
  20622. - ;;
  20623. - *) # Darwin 1.3 on
  20624. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  20625. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  20626. - else
  20627. - case ${MACOSX_DEPLOYMENT_TARGET} in
  20628. - 10.[012])
  20629. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  20630. - ;;
  20631. - 10.*)
  20632. - allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  20633. - ;;
  20634. - esac
  20635. - fi
  20636. - ;;
  20637. - esac
  20638. - lt_int_apple_cc_single_mod=no
  20639. - output_verbose_link_cmd='echo'
  20640. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  20641. - lt_int_apple_cc_single_mod=yes
  20642. - fi
  20643. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  20644. - archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  20645. - else
  20646. - archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  20647. - fi
  20648. - module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  20649. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  20650. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  20651. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  20652. - else
  20653. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  20654. + fi
  20655. fi
  20656. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  20657. - hardcode_direct_GCJ=no
  20658. - hardcode_automatic_GCJ=yes
  20659. - hardcode_shlibpath_var_GCJ=unsupported
  20660. - whole_archive_flag_spec_GCJ='-all_load $convenience'
  20661. - link_all_deplibs_GCJ=yes
  20662. - else
  20663. - ld_shlibs_GCJ=no
  20664. fi
  20665. - ;;
  20666. -
  20667. - dgux*)
  20668. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20669. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20670. - hardcode_shlibpath_var_GCJ=no
  20671. - ;;
  20672. + if test "$ac_cv_func_mlock" = "yes"; then
  20673. + for ac_func in sysconf getpagesize
  20674. +do :
  20675. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20676. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20677. +eval as_val=\$$as_ac_var
  20678. + if test "x$as_val" = x""yes; then :
  20679. + cat >>confdefs.h <<_ACEOF
  20680. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20681. +_ACEOF
  20682. - freebsd1*)
  20683. - ld_shlibs_GCJ=no
  20684. - ;;
  20685. +fi
  20686. +done
  20687. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  20688. - # support. Future versions do this automatically, but an explicit c++rt0.o
  20689. - # does not break anything, and helps significantly (at the cost of a little
  20690. - # extra space).
  20691. - freebsd2.2*)
  20692. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  20693. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  20694. - hardcode_direct_GCJ=yes
  20695. - hardcode_shlibpath_var_GCJ=no
  20696. - ;;
  20697. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
  20698. +$as_echo_n "checking whether mlock is broken... " >&6; }
  20699. + if test "${gnupg_cv_have_broken_mlock+set}" = set; then :
  20700. + $as_echo_n "(cached) " >&6
  20701. +else
  20702. + if test "$cross_compiling" = yes; then :
  20703. + gnupg_cv_have_broken_mlock="assume-no"
  20704. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  20705. - freebsd2*)
  20706. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20707. - hardcode_direct_GCJ=yes
  20708. - hardcode_minus_L_GCJ=yes
  20709. - hardcode_shlibpath_var_GCJ=no
  20710. - ;;
  20711. +else
  20712. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20713. +/* end confdefs.h. */
  20714. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  20715. - freebsd* | kfreebsd*-gnu)
  20716. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  20717. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  20718. - hardcode_direct_GCJ=yes
  20719. - hardcode_shlibpath_var_GCJ=no
  20720. - ;;
  20721. +#include <stdlib.h>
  20722. +#include <unistd.h>
  20723. +#include <errno.h>
  20724. +#include <sys/mman.h>
  20725. +#include <sys/types.h>
  20726. +#include <fcntl.h>
  20727. - hpux9*)
  20728. - if test "$GCC" = yes; then
  20729. - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  20730. - else
  20731. - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  20732. - fi
  20733. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  20734. - hardcode_libdir_separator_GCJ=:
  20735. - hardcode_direct_GCJ=yes
  20736. +int main()
  20737. +{
  20738. + char *pool;
  20739. + int err;
  20740. + long int pgsize;
  20741. - # hardcode_minus_L: Not really in the search PATH,
  20742. - # but as the default location of the library.
  20743. - hardcode_minus_L_GCJ=yes
  20744. - export_dynamic_flag_spec_GCJ='${wl}-E'
  20745. - ;;
  20746. +#if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
  20747. + pgsize = sysconf (_SC_PAGESIZE);
  20748. +#elif defined (HAVE_GETPAGESIZE)
  20749. + pgsize = getpagesize();
  20750. +#else
  20751. + pgsize = -1;
  20752. +#endif
  20753. - hpux10* | hpux11*)
  20754. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20755. - case "$host_cpu" in
  20756. - hppa*64*|ia64*)
  20757. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20758. - ;;
  20759. - *)
  20760. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20761. - ;;
  20762. - esac
  20763. - else
  20764. - case "$host_cpu" in
  20765. - hppa*64*|ia64*)
  20766. - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  20767. - ;;
  20768. - *)
  20769. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  20770. - ;;
  20771. - esac
  20772. - fi
  20773. - if test "$with_gnu_ld" = no; then
  20774. - case "$host_cpu" in
  20775. - hppa*64*)
  20776. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  20777. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  20778. - hardcode_libdir_separator_GCJ=:
  20779. - hardcode_direct_GCJ=no
  20780. - hardcode_shlibpath_var_GCJ=no
  20781. - ;;
  20782. - ia64*)
  20783. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20784. - hardcode_direct_GCJ=no
  20785. - hardcode_shlibpath_var_GCJ=no
  20786. + if (pgsize == -1)
  20787. + pgsize = 4096;
  20788. - # hardcode_minus_L: Not really in the search PATH,
  20789. - # but as the default location of the library.
  20790. - hardcode_minus_L_GCJ=yes
  20791. - ;;
  20792. - *)
  20793. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  20794. - hardcode_libdir_separator_GCJ=:
  20795. - hardcode_direct_GCJ=yes
  20796. - export_dynamic_flag_spec_GCJ='${wl}-E'
  20797. + pool = malloc( 4096 + pgsize );
  20798. + if( !pool )
  20799. + return 2;
  20800. + pool += (pgsize - ((long int)pool % pgsize));
  20801. - # hardcode_minus_L: Not really in the search PATH,
  20802. - # but as the default location of the library.
  20803. - hardcode_minus_L_GCJ=yes
  20804. - ;;
  20805. - esac
  20806. - fi
  20807. - ;;
  20808. + err = mlock( pool, 4096 );
  20809. + if( !err || errno == EPERM )
  20810. + return 0; /* okay */
  20811. - irix5* | irix6* | nonstopux*)
  20812. - if test "$GCC" = yes; then
  20813. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  20814. - else
  20815. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  20816. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  20817. - fi
  20818. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  20819. - hardcode_libdir_separator_GCJ=:
  20820. - link_all_deplibs_GCJ=yes
  20821. - ;;
  20822. + return 1; /* hmmm */
  20823. +}
  20824. - netbsd* | knetbsd*-gnu)
  20825. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20826. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  20827. - else
  20828. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  20829. - fi
  20830. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  20831. - hardcode_direct_GCJ=yes
  20832. - hardcode_shlibpath_var_GCJ=no
  20833. - ;;
  20834. - newsos6)
  20835. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20836. - hardcode_direct_GCJ=yes
  20837. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  20838. - hardcode_libdir_separator_GCJ=:
  20839. - hardcode_shlibpath_var_GCJ=no
  20840. - ;;
  20841. +_ACEOF
  20842. +if ac_fn_c_try_run "$LINENO"; then :
  20843. + gnupg_cv_have_broken_mlock="no"
  20844. +else
  20845. + gnupg_cv_have_broken_mlock="yes"
  20846. +fi
  20847. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  20848. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  20849. +fi
  20850. - openbsd*)
  20851. - hardcode_direct_GCJ=yes
  20852. - hardcode_shlibpath_var_GCJ=no
  20853. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20854. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20855. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  20856. - export_dynamic_flag_spec_GCJ='${wl}-E'
  20857. - else
  20858. - case $host_os in
  20859. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  20860. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20861. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  20862. - ;;
  20863. - *)
  20864. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  20865. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  20866. - ;;
  20867. - esac
  20868. - fi
  20869. - ;;
  20870. - os2*)
  20871. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20872. - hardcode_minus_L_GCJ=yes
  20873. - allow_undefined_flag_GCJ=unsupported
  20874. - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  20875. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  20876. - ;;
  20877. +fi
  20878. - osf3*)
  20879. - if test "$GCC" = yes; then
  20880. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  20881. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  20882. - else
  20883. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  20884. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  20885. - fi
  20886. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  20887. - hardcode_libdir_separator_GCJ=:
  20888. - ;;
  20889. + if test "$gnupg_cv_have_broken_mlock" = "yes"; then
  20890. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  20891. - if test "$GCC" = yes; then
  20892. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  20893. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  20894. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  20895. - else
  20896. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  20897. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  20898. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  20899. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  20900. +$as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
  20901. - # Both c and cxx compiler support -rpath directly
  20902. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  20903. - fi
  20904. - hardcode_libdir_separator_GCJ=:
  20905. - ;;
  20906. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20907. +$as_echo "yes" >&6; }
  20908. + else
  20909. + if test "$gnupg_cv_have_broken_mlock" = "no"; then
  20910. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20911. +$as_echo "no" >&6; }
  20912. + else
  20913. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
  20914. +$as_echo "assuming no" >&6; }
  20915. + fi
  20916. + fi
  20917. + fi
  20918. - sco3.2v5*)
  20919. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20920. - hardcode_shlibpath_var_GCJ=no
  20921. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  20922. - runpath_var=LD_RUN_PATH
  20923. - hardcode_runpath_var=yes
  20924. - ;;
  20925. - solaris*)
  20926. - no_undefined_flag_GCJ=' -z text'
  20927. - if test "$GCC" = yes; then
  20928. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20929. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  20930. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  20931. - else
  20932. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20933. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  20934. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  20935. - fi
  20936. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  20937. - hardcode_shlibpath_var_GCJ=no
  20938. - case $host_os in
  20939. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  20940. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  20941. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  20942. - esac
  20943. - link_all_deplibs_GCJ=yes
  20944. - ;;
  20945. - sunos4*)
  20946. - if test "x$host_vendor" = xsequent; then
  20947. - # Use $CC to link under sequent, because it throws in some extra .o
  20948. - # files that make .init and .fini sections work.
  20949. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  20950. - else
  20951. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  20952. - fi
  20953. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  20954. - hardcode_direct_GCJ=yes
  20955. - hardcode_minus_L_GCJ=yes
  20956. - hardcode_shlibpath_var_GCJ=no
  20957. - ;;
  20958. -
  20959. - sysv4)
  20960. - case $host_vendor in
  20961. - sni)
  20962. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20963. - hardcode_direct_GCJ=yes # is this really true???
  20964. - ;;
  20965. - siemens)
  20966. - ## LD is ld it makes a PLAMLIB
  20967. - ## CC just makes a GrossModule.
  20968. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  20969. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  20970. - hardcode_direct_GCJ=no
  20971. - ;;
  20972. - motorola)
  20973. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20974. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  20975. - ;;
  20976. - esac
  20977. - runpath_var='LD_RUN_PATH'
  20978. - hardcode_shlibpath_var_GCJ=no
  20979. - ;;
  20980. -
  20981. - sysv4.3*)
  20982. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20983. - hardcode_shlibpath_var_GCJ=no
  20984. - export_dynamic_flag_spec_GCJ='-Bexport'
  20985. - ;;
  20986. -
  20987. - sysv4*MP*)
  20988. - if test -d /usr/nec; then
  20989. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20990. - hardcode_shlibpath_var_GCJ=no
  20991. - runpath_var=LD_RUN_PATH
  20992. - hardcode_runpath_var=yes
  20993. - ld_shlibs_GCJ=yes
  20994. - fi
  20995. - ;;
  20996. -
  20997. - sysv4.2uw2*)
  20998. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  20999. - hardcode_direct_GCJ=yes
  21000. - hardcode_minus_L_GCJ=no
  21001. - hardcode_shlibpath_var_GCJ=no
  21002. - hardcode_runpath_var=yes
  21003. - runpath_var=LD_RUN_PATH
  21004. - ;;
  21005. +#
  21006. +# Check wether it is necessary to link against libdl.
  21007. +#
  21008. +DL_LIBS=""
  21009. +if test "$use_hmac_binary_check" = yes ; then
  21010. + _gcry_save_libs="$LIBS"
  21011. + LIBS=""
  21012. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  21013. +$as_echo_n "checking for library containing dlopen... " >&6; }
  21014. +if test "${ac_cv_search_dlopen+set}" = set; then :
  21015. + $as_echo_n "(cached) " >&6
  21016. +else
  21017. + ac_func_search_save_LIBS=$LIBS
  21018. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21019. +/* end confdefs.h. */
  21020. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  21021. - no_undefined_flag_GCJ='${wl}-z ${wl}text'
  21022. - if test "$GCC" = yes; then
  21023. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21024. - else
  21025. - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21026. - fi
  21027. - runpath_var='LD_RUN_PATH'
  21028. - hardcode_shlibpath_var_GCJ=no
  21029. - ;;
  21030. +/* Override any GCC internal prototype to avoid an error.
  21031. + Use char because int might match the return type of a GCC
  21032. + builtin and then its argument prototype would still apply. */
  21033. +#ifdef __cplusplus
  21034. +extern "C"
  21035. +#endif
  21036. +char dlopen ();
  21037. +int
  21038. +main ()
  21039. +{
  21040. +return dlopen ();
  21041. + ;
  21042. + return 0;
  21043. +}
  21044. +_ACEOF
  21045. +for ac_lib in '' c dl; do
  21046. + if test -z "$ac_lib"; then
  21047. + ac_res="none required"
  21048. + else
  21049. + ac_res=-l$ac_lib
  21050. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21051. + fi
  21052. + if ac_fn_c_try_link "$LINENO"; then :
  21053. + ac_cv_search_dlopen=$ac_res
  21054. +fi
  21055. +rm -f core conftest.err conftest.$ac_objext \
  21056. + conftest$ac_exeext
  21057. + if test "${ac_cv_search_dlopen+set}" = set; then :
  21058. + break
  21059. +fi
  21060. +done
  21061. +if test "${ac_cv_search_dlopen+set}" = set; then :
  21062. - sysv5*)
  21063. - no_undefined_flag_GCJ=' -z text'
  21064. - # $CC -shared without GNU ld will not create a library from C++
  21065. - # object files and a static libstdc++, better avoid it by now
  21066. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21067. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  21068. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  21069. - hardcode_libdir_flag_spec_GCJ=
  21070. - hardcode_shlibpath_var_GCJ=no
  21071. - runpath_var='LD_RUN_PATH'
  21072. - ;;
  21073. +else
  21074. + ac_cv_search_dlopen=no
  21075. +fi
  21076. +rm conftest.$ac_ext
  21077. +LIBS=$ac_func_search_save_LIBS
  21078. +fi
  21079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  21080. +$as_echo "$ac_cv_search_dlopen" >&6; }
  21081. +ac_res=$ac_cv_search_dlopen
  21082. +if test "$ac_res" != no; then :
  21083. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21084. - uts4*)
  21085. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21086. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  21087. - hardcode_shlibpath_var_GCJ=no
  21088. - ;;
  21089. +fi
  21090. - *)
  21091. - ld_shlibs_GCJ=no
  21092. - ;;
  21093. - esac
  21094. - fi
  21095. + DL_LIBS=$LIBS
  21096. + LIBS="$_gcry_save_libs"
  21097. + LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}"
  21098. +fi
  21099. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
  21100. -$as_echo "$ld_shlibs_GCJ" >&6; }
  21101. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  21102. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  21103. -if test "$GCC" = yes; then
  21104. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  21105. -fi
  21106. #
  21107. -# Do we need to explicitly link libc?
  21108. +# Check whether we can use Linux capabilities as requested.
  21109. #
  21110. -case "x$archive_cmds_need_lc_GCJ" in
  21111. -x|xyes)
  21112. - # Assume -lc should be added
  21113. - archive_cmds_need_lc_GCJ=yes
  21114. +if test "$use_capabilities" = "yes" ; then
  21115. +use_capabilities=no
  21116. +for ac_header in sys/capability.h
  21117. +do :
  21118. + ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  21119. +if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
  21120. + cat >>confdefs.h <<_ACEOF
  21121. +#define HAVE_SYS_CAPABILITY_H 1
  21122. +_ACEOF
  21123. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  21124. - case $archive_cmds_GCJ in
  21125. - *'~'*)
  21126. - # FIXME: we may have to deal with multi-command sequences.
  21127. - ;;
  21128. - '$CC '*)
  21129. - # Test whether the compiler implicitly links with -lc since on some
  21130. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  21131. - # to ld, don't add -lc before -lgcc.
  21132. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  21133. -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  21134. - $rm conftest*
  21135. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  21136. +fi
  21137. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  21138. - (eval $ac_compile) 2>&5
  21139. - ac_status=$?
  21140. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21141. - test $ac_status = 0; } 2>conftest.err; then
  21142. - soname=conftest
  21143. - lib=conftest
  21144. - libobjs=conftest.$ac_objext
  21145. - deplibs=
  21146. - wl=$lt_prog_compiler_wl_GCJ
  21147. - compiler_flags=-v
  21148. - linker_flags=-v
  21149. - verstring=
  21150. - output_objdir=.
  21151. - libname=conftest
  21152. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  21153. - allow_undefined_flag_GCJ=
  21154. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  21155. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  21156. - ac_status=$?
  21157. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21158. - test $ac_status = 0; }
  21159. - then
  21160. - archive_cmds_need_lc_GCJ=no
  21161. - else
  21162. - archive_cmds_need_lc_GCJ=yes
  21163. - fi
  21164. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  21165. - else
  21166. - cat conftest.err 1>&5
  21167. - fi
  21168. - $rm conftest*
  21169. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
  21170. -$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  21171. - ;;
  21172. - esac
  21173. - fi
  21174. - ;;
  21175. -esac
  21176. +done
  21177. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  21178. -$as_echo_n "checking dynamic linker characteristics... " >&6; }
  21179. -library_names_spec=
  21180. -libname_spec='lib$name'
  21181. -soname_spec=
  21182. -shrext_cmds=".so"
  21183. -postinstall_cmds=
  21184. -postuninstall_cmds=
  21185. -finish_cmds=
  21186. -finish_eval=
  21187. -shlibpath_var=
  21188. -shlibpath_overrides_runpath=unknown
  21189. -version_type=none
  21190. -dynamic_linker="$host_os ld.so"
  21191. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  21192. -if test "$GCC" = yes; then
  21193. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  21194. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  21195. - # if the path contains ";" then we assume it to be the separator
  21196. - # otherwise default to the standard path separator (i.e. ":") - it is
  21197. - # assumed that no part of a normal pathname contains ";" but that should
  21198. - # okay in the real world where ";" in dirpaths is itself problematic.
  21199. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  21200. - else
  21201. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  21202. - fi
  21203. +if test "$ac_cv_header_sys_capability_h" = "yes" ; then
  21204. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
  21205. +$as_echo_n "checking for cap_init in -lcap... " >&6; }
  21206. +if test "${ac_cv_lib_cap_cap_init+set}" = set; then :
  21207. + $as_echo_n "(cached) " >&6
  21208. else
  21209. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  21210. -fi
  21211. -need_lib_prefix=unknown
  21212. -hardcode_into_libs=no
  21213. + ac_check_lib_save_LIBS=$LIBS
  21214. +LIBS="-lcap $LIBS"
  21215. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21216. +/* end confdefs.h. */
  21217. -# when you set need_version to no, make sure it does not cause -set_version
  21218. -# flags to be left without arguments
  21219. -need_version=unknown
  21220. +/* Override any GCC internal prototype to avoid an error.
  21221. + Use char because int might match the return type of a GCC
  21222. + builtin and then its argument prototype would still apply. */
  21223. +#ifdef __cplusplus
  21224. +extern "C"
  21225. +#endif
  21226. +char cap_init ();
  21227. +int
  21228. +main ()
  21229. +{
  21230. +return cap_init ();
  21231. + ;
  21232. + return 0;
  21233. +}
  21234. +_ACEOF
  21235. +if ac_fn_c_try_link "$LINENO"; then :
  21236. + ac_cv_lib_cap_cap_init=yes
  21237. +else
  21238. + ac_cv_lib_cap_cap_init=no
  21239. +fi
  21240. +rm -f core conftest.err conftest.$ac_objext \
  21241. + conftest$ac_exeext conftest.$ac_ext
  21242. +LIBS=$ac_check_lib_save_LIBS
  21243. +fi
  21244. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
  21245. +$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
  21246. +if test "x$ac_cv_lib_cap_cap_init" = x""yes; then :
  21247. + ac_need_libcap=1
  21248. +fi
  21249. -case $host_os in
  21250. -aix3*)
  21251. - version_type=linux
  21252. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  21253. - shlibpath_var=LIBPATH
  21254. + if test "$ac_cv_lib_cap_cap_init" = "yes"; then
  21255. - # AIX 3 has no versioning support, so we append a major version to the name.
  21256. - soname_spec='${libname}${release}${shared_ext}$major'
  21257. - ;;
  21258. +$as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
  21259. -aix4* | aix5*)
  21260. - version_type=linux
  21261. - need_lib_prefix=no
  21262. - need_version=no
  21263. - hardcode_into_libs=yes
  21264. - if test "$host_cpu" = ia64; then
  21265. - # AIX 5 supports IA64
  21266. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  21267. - shlibpath_var=LD_LIBRARY_PATH
  21268. - else
  21269. - # With GCC up to 2.95.x, collect2 would create an import file
  21270. - # for dependence libraries. The import file would start with
  21271. - # the line `#! .'. This would cause the generated library to
  21272. - # depend on `.', always an invalid library. This was fixed in
  21273. - # development snapshots of GCC prior to 3.0.
  21274. - case $host_os in
  21275. - aix4 | aix4.[01] | aix4.[01].*)
  21276. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  21277. - echo ' yes '
  21278. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  21279. - :
  21280. - else
  21281. - can_build_shared=no
  21282. - fi
  21283. - ;;
  21284. - esac
  21285. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  21286. - # soname into executable. Probably we can add versioning support to
  21287. - # collect2, so additional links can be useful in future.
  21288. - if test "$aix_use_runtimelinking" = yes; then
  21289. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  21290. - # instead of lib<name>.a to let people know that these are not
  21291. - # typical AIX shared libraries.
  21292. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21293. - else
  21294. - # We preserve .a as extension for shared libraries through AIX4.2
  21295. - # and later when we are not doing run time linking.
  21296. - library_names_spec='${libname}${release}.a $libname.a'
  21297. - soname_spec='${libname}${release}${shared_ext}$major'
  21298. - fi
  21299. - shlibpath_var=LIBPATH
  21300. + LIBS="$LIBS -lcap"
  21301. + use_capabilities=yes
  21302. fi
  21303. - ;;
  21304. +fi
  21305. +if test "$use_capabilities" = "no" ; then
  21306. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  21307. +***
  21308. +*** The use of capabilities on this system is not possible.
  21309. +*** You need a recent Linux kernel and some patches:
  21310. +*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
  21311. +*** fcap-module-990613.tar.gz (kernel module)
  21312. +*** libcap-1.92.tar.gz (user mode library and utilities)
  21313. +*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
  21314. +*** set (filesystems menu). Be warned: This code is *really* ALPHA.
  21315. +***" >&5
  21316. +$as_echo "$as_me: WARNING:
  21317. +***
  21318. +*** The use of capabilities on this system is not possible.
  21319. +*** You need a recent Linux kernel and some patches:
  21320. +*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
  21321. +*** fcap-module-990613.tar.gz (kernel module)
  21322. +*** libcap-1.92.tar.gz (user mode library and utilities)
  21323. +*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
  21324. +*** set (filesystems menu). Be warned: This code is *really* ALPHA.
  21325. +***" >&2;}
  21326. +fi
  21327. +fi
  21328. -amigaos*)
  21329. - library_names_spec='$libname.ixlibrary $libname.a'
  21330. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  21331. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  21332. - ;;
  21333. +# Check whether a random device is available.
  21334. +if test "$try_dev_random" = yes ; then
  21335. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
  21336. +$as_echo_n "checking for random device... " >&6; }
  21337. +if test "${ac_cv_have_dev_random+set}" = set; then :
  21338. + $as_echo_n "(cached) " >&6
  21339. +else
  21340. + if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
  21341. + ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
  21342. +fi
  21343. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
  21344. +$as_echo "$ac_cv_have_dev_random" >&6; }
  21345. + if test "$ac_cv_have_dev_random" = yes; then
  21346. -beos*)
  21347. - library_names_spec='${libname}${shared_ext}'
  21348. - dynamic_linker="$host_os ld.so"
  21349. - shlibpath_var=LIBRARY_PATH
  21350. - ;;
  21351. +$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
  21352. -bsdi4*)
  21353. - version_type=linux
  21354. - need_version=no
  21355. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21356. - soname_spec='${libname}${release}${shared_ext}$major'
  21357. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  21358. - shlibpath_var=LD_LIBRARY_PATH
  21359. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  21360. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  21361. - # the default ld.so.conf also contains /usr/contrib/lib and
  21362. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  21363. - # libtool to hard-code these into programs
  21364. - ;;
  21365. + fi
  21366. +else
  21367. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
  21368. +$as_echo_n "checking for random device... " >&6; }
  21369. + ac_cv_have_dev_random=no
  21370. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
  21371. +$as_echo "has been disabled" >&6; }
  21372. +fi
  21373. -cygwin* | mingw* | pw32*)
  21374. - version_type=windows
  21375. - shrext_cmds=".dll"
  21376. - need_version=no
  21377. - need_lib_prefix=no
  21378. +# Figure out the random modules for this configuration.
  21379. +if test "$random" = "default"; then
  21380. - case $GCC,$host_os in
  21381. - yes,cygwin* | yes,mingw* | yes,pw32*)
  21382. - library_names_spec='$libname.dll.a'
  21383. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  21384. - postinstall_cmds='base_file=`basename \${file}`~
  21385. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  21386. - dldir=$destdir/`dirname \$dlpath`~
  21387. - test -d \$dldir || mkdir -p \$dldir~
  21388. - $install_prog $dir/$dlname \$dldir/$dlname'
  21389. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  21390. - dlpath=$dir/\$dldll~
  21391. - $rm \$dlpath'
  21392. - shlibpath_overrides_runpath=yes
  21393. + # Select default value.
  21394. + if test "$ac_cv_have_dev_random" = yes; then
  21395. + # Try Linuxish random device.
  21396. + random_modules="linux"
  21397. + else
  21398. + case "${host}" in
  21399. + *-*-mingw32*|*-*-cygwin*)
  21400. + # Windows random device.
  21401. + random_modules="w32"
  21402. + ;;
  21403. + *)
  21404. + # Build everything, allow to select at runtime.
  21405. + random_modules="$auto_random_modules"
  21406. + ;;
  21407. + esac
  21408. + fi
  21409. +else
  21410. + if test "$random" = "auto"; then
  21411. + # Build everything, allow to select at runtime.
  21412. + random_modules="$auto_random_modules"
  21413. + else
  21414. + random_modules="$random"
  21415. + fi
  21416. +fi
  21417. - case $host_os in
  21418. - cygwin*)
  21419. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  21420. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  21421. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  21422. - ;;
  21423. - mingw*)
  21424. - # MinGW DLLs use traditional 'lib' prefix
  21425. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  21426. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  21427. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  21428. - # It is most probably a Windows format PATH printed by
  21429. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  21430. - # path with ; separators, and with drive letters. We can handle the
  21431. - # drive letters (cygwin fileutils understands them), so leave them,
  21432. - # especially as we might pass files found there to a mingw objdump,
  21433. - # which wouldn't understand a cygwinified path. Ahh.
  21434. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  21435. +
  21436. +#
  21437. +# Setup assembler stuff.
  21438. +#
  21439. +
  21440. +tmp_do_check="no"
  21441. +case "${host}" in
  21442. + *-mingw32msvc*)
  21443. + ac_cv_sys_symbol_underscore=yes
  21444. + ;;
  21445. + i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
  21446. + ac_cv_sys_symbol_underscore=yes
  21447. + ;;
  21448. + *)
  21449. + if test "$cross_compiling" = yes; then
  21450. + if test "x$ac_cv_sys_symbol_underscore" = x ; then
  21451. + ac_cv_sys_symbol_underscore=yes
  21452. + fi
  21453. else
  21454. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  21455. + tmp_do_check="yes"
  21456. fi
  21457. - ;;
  21458. - pw32*)
  21459. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  21460. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  21461. - ;;
  21462. - esac
  21463. - ;;
  21464. + ;;
  21465. +esac
  21466. +if test "$tmp_do_check" = "yes"; then
  21467. - *)
  21468. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  21469. - ;;
  21470. - esac
  21471. - dynamic_linker='Win32 ld.exe'
  21472. - # FIXME: first we should search . and the directory the executable is in
  21473. - shlibpath_var=PATH
  21474. - ;;
  21475. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  21476. +$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  21477. + if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
  21478. + $as_echo_n "(cached) " >&6
  21479. +else
  21480. + ac_cv_sys_symbol_underscore=no
  21481. + cat > conftest.$ac_ext <<EOF
  21482. + void nm_test_func(){}
  21483. + int main(){nm_test_func;return 0;}
  21484. +EOF
  21485. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  21486. + (eval $ac_compile) 2>&5
  21487. + ac_status=$?
  21488. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21489. + test $ac_status = 0; }; then
  21490. + # Now try to grab the symbols.
  21491. + ac_nlist=conftest.nm
  21492. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist\""; } >&5
  21493. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) 2>&5
  21494. + ac_status=$?
  21495. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21496. + test $ac_status = 0; } && test -s "$ac_nlist"; then
  21497. + # See whether the symbols have a leading underscore.
  21498. + if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
  21499. + ac_cv_sys_symbol_underscore=yes
  21500. + else
  21501. + if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
  21502. + :
  21503. + else
  21504. + echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  21505. + fi
  21506. + fi
  21507. + else
  21508. + echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  21509. + fi
  21510. + else
  21511. + echo "configure: failed program was:" >&5
  21512. + cat conftest.c >&5
  21513. + fi
  21514. + rm -rf conftest*
  21515. +
  21516. +fi
  21517. -darwin* | rhapsody*)
  21518. - dynamic_linker="$host_os dyld"
  21519. - version_type=darwin
  21520. - need_lib_prefix=no
  21521. - need_version=no
  21522. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  21523. - soname_spec='${libname}${release}${major}$shared_ext'
  21524. - shlibpath_overrides_runpath=yes
  21525. - shlibpath_var=DYLD_LIBRARY_PATH
  21526. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  21527. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  21528. - if test "$GCC" = yes; then
  21529. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  21530. else
  21531. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  21532. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  21533. +$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  21534. fi
  21535. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  21536. - ;;
  21537. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
  21538. +$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
  21539. +if test x$ac_cv_sys_symbol_underscore = xyes; then
  21540. -dgux*)
  21541. - version_type=linux
  21542. - need_lib_prefix=no
  21543. - need_version=no
  21544. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  21545. - soname_spec='${libname}${release}${shared_ext}$major'
  21546. - shlibpath_var=LD_LIBRARY_PATH
  21547. - ;;
  21548. +$as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
  21549. -freebsd1*)
  21550. - dynamic_linker=no
  21551. - ;;
  21552. +fi
  21553. -kfreebsd*-gnu)
  21554. - version_type=linux
  21555. - need_lib_prefix=no
  21556. - need_version=no
  21557. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21558. - soname_spec='${libname}${release}${shared_ext}$major'
  21559. - shlibpath_var=LD_LIBRARY_PATH
  21560. - shlibpath_overrides_runpath=no
  21561. - hardcode_into_libs=yes
  21562. - dynamic_linker='GNU ld.so'
  21563. - ;;
  21564. -
  21565. -freebsd*)
  21566. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  21567. - version_type=freebsd-$objformat
  21568. - case $version_type in
  21569. - freebsd-elf*)
  21570. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  21571. - need_version=no
  21572. - need_lib_prefix=no
  21573. - ;;
  21574. - freebsd-*)
  21575. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  21576. - need_version=yes
  21577. - ;;
  21578. - esac
  21579. - shlibpath_var=LD_LIBRARY_PATH
  21580. - case $host_os in
  21581. - freebsd2*)
  21582. - shlibpath_overrides_runpath=yes
  21583. - ;;
  21584. - freebsd3.01* | freebsdelf3.01*)
  21585. - shlibpath_overrides_runpath=yes
  21586. - hardcode_into_libs=yes
  21587. - ;;
  21588. - *) # from 3.2 on
  21589. - shlibpath_overrides_runpath=no
  21590. - hardcode_into_libs=yes
  21591. - ;;
  21592. - esac
  21593. - ;;
  21594. +# Check whether --enable-mpi-path was given.
  21595. +if test "${enable_mpi_path+set}" = set; then :
  21596. + enableval=$enable_mpi_path; mpi_extra_path="$enableval"
  21597. +else
  21598. + mpi_extra_path=""
  21599. +fi
  21600. -gnu*)
  21601. - version_type=linux
  21602. - need_lib_prefix=no
  21603. - need_version=no
  21604. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  21605. - soname_spec='${libname}${release}${shared_ext}$major'
  21606. - shlibpath_var=LD_LIBRARY_PATH
  21607. - hardcode_into_libs=yes
  21608. - ;;
  21609. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi assembler functions" >&5
  21610. +$as_echo_n "checking for mpi assembler functions... " >&6; }
  21611. +if test -f $srcdir/mpi/config.links ; then
  21612. + . $srcdir/mpi/config.links
  21613. + ac_config_links="$ac_config_links "$mpi_ln_list""
  21614. -hpux9* | hpux10* | hpux11*)
  21615. - # Give a soname corresponding to the major version so that dld.sl refuses to
  21616. - # link against other versions.
  21617. - version_type=sunos
  21618. - need_lib_prefix=no
  21619. - need_version=no
  21620. - case "$host_cpu" in
  21621. - ia64*)
  21622. - shrext_cmds='.so'
  21623. - hardcode_into_libs=yes
  21624. - dynamic_linker="$host_os dld.so"
  21625. - shlibpath_var=LD_LIBRARY_PATH
  21626. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  21627. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21628. - soname_spec='${libname}${release}${shared_ext}$major'
  21629. - if test "X$HPUX_IA64_MODE" = X32; then
  21630. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  21631. - else
  21632. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  21633. - fi
  21634. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21635. - ;;
  21636. - hppa*64*)
  21637. - shrext_cmds='.sl'
  21638. - hardcode_into_libs=yes
  21639. - dynamic_linker="$host_os dld.sl"
  21640. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  21641. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  21642. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21643. - soname_spec='${libname}${release}${shared_ext}$major'
  21644. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  21645. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  21646. - ;;
  21647. - *)
  21648. - shrext_cmds='.sl'
  21649. - dynamic_linker="$host_os dld.sl"
  21650. - shlibpath_var=SHLIB_PATH
  21651. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  21652. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21653. - soname_spec='${libname}${release}${shared_ext}$major'
  21654. - ;;
  21655. - esac
  21656. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  21657. - postinstall_cmds='chmod 555 $lib'
  21658. - ;;
  21659. + ac_cv_mpi_sflags="$mpi_sflags"
  21660. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  21661. +$as_echo "done" >&6; }
  21662. +else
  21663. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  21664. +$as_echo "failed" >&6; }
  21665. + as_fn_error "mpi/config.links missing!" "$LINENO" 5
  21666. +fi
  21667. +MPI_SFLAGS="$ac_cv_mpi_sflags"
  21668. -irix5* | irix6* | nonstopux*)
  21669. - case $host_os in
  21670. - nonstopux*) version_type=nonstopux ;;
  21671. - *)
  21672. - if test "$lt_cv_prog_gnu_ld" = yes; then
  21673. - version_type=linux
  21674. - else
  21675. - version_type=irix
  21676. - fi ;;
  21677. - esac
  21678. - need_lib_prefix=no
  21679. - need_version=no
  21680. - soname_spec='${libname}${release}${shared_ext}$major'
  21681. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  21682. - case $host_os in
  21683. - irix5* | nonstopux*)
  21684. - libsuff= shlibsuff=
  21685. - ;;
  21686. - *)
  21687. - case $LD in # libtool.m4 will add one of these switches to LD
  21688. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  21689. - libsuff= shlibsuff= libmagic=32-bit;;
  21690. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  21691. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  21692. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  21693. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  21694. - *) libsuff= shlibsuff= libmagic=never-match;;
  21695. - esac
  21696. - ;;
  21697. - esac
  21698. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  21699. - shlibpath_overrides_runpath=no
  21700. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  21701. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  21702. - hardcode_into_libs=yes
  21703. - ;;
  21704. -# No shared lib support for Linux oldld, aout, or coff.
  21705. -linux*oldld* | linux*aout* | linux*coff*)
  21706. - dynamic_linker=no
  21707. - ;;
  21708. + if test "$mpi_mod_asm_mpih_add1" = yes; then
  21709. + MPI_MOD_ASM_MPIH_ADD1_TRUE=
  21710. + MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
  21711. +else
  21712. + MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
  21713. + MPI_MOD_ASM_MPIH_ADD1_FALSE=
  21714. +fi
  21715. -# This must be Linux ELF.
  21716. -linux*)
  21717. - version_type=linux
  21718. - need_lib_prefix=no
  21719. - need_version=no
  21720. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21721. - soname_spec='${libname}${release}${shared_ext}$major'
  21722. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  21723. - shlibpath_var=LD_LIBRARY_PATH
  21724. - shlibpath_overrides_runpath=no
  21725. - # This implies no fast_install, which is unacceptable.
  21726. - # Some rework will be needed to allow for fast_install
  21727. - # before this can be enabled.
  21728. - hardcode_into_libs=yes
  21729. + if test "$mpi_mod_asm_mpih_sub1" = yes; then
  21730. + MPI_MOD_ASM_MPIH_SUB1_TRUE=
  21731. + MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
  21732. +else
  21733. + MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
  21734. + MPI_MOD_ASM_MPIH_SUB1_FALSE=
  21735. +fi
  21736. - # Append ld.so.conf contents to the search path
  21737. - if test -f /etc/ld.so.conf; then
  21738. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  21739. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  21740. - fi
  21741. + if test "$mpi_mod_asm_mpih_mul1" = yes; then
  21742. + MPI_MOD_ASM_MPIH_MUL1_TRUE=
  21743. + MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
  21744. +else
  21745. + MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
  21746. + MPI_MOD_ASM_MPIH_MUL1_FALSE=
  21747. +fi
  21748. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  21749. - # powerpc, because MkLinux only supported shared libraries with the
  21750. - # GNU dynamic linker. Since this was broken with cross compilers,
  21751. - # most powerpc-linux boxes support dynamic linking these days and
  21752. - # people can always --disable-shared, the test was removed, and we
  21753. - # assume the GNU/Linux dynamic linker is in use.
  21754. - dynamic_linker='GNU/Linux ld.so'
  21755. - ;;
  21756. + if test "$mpi_mod_asm_mpih_mul2" = yes; then
  21757. + MPI_MOD_ASM_MPIH_MUL2_TRUE=
  21758. + MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
  21759. +else
  21760. + MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
  21761. + MPI_MOD_ASM_MPIH_MUL2_FALSE=
  21762. +fi
  21763. -knetbsd*-gnu)
  21764. - version_type=linux
  21765. - need_lib_prefix=no
  21766. - need_version=no
  21767. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21768. - soname_spec='${libname}${release}${shared_ext}$major'
  21769. - shlibpath_var=LD_LIBRARY_PATH
  21770. - shlibpath_overrides_runpath=no
  21771. - hardcode_into_libs=yes
  21772. - dynamic_linker='GNU ld.so'
  21773. - ;;
  21774. + if test "$mpi_mod_asm_mpih_mul3" = yes; then
  21775. + MPI_MOD_ASM_MPIH_MUL3_TRUE=
  21776. + MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
  21777. +else
  21778. + MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
  21779. + MPI_MOD_ASM_MPIH_MUL3_FALSE=
  21780. +fi
  21781. -netbsd*)
  21782. - version_type=sunos
  21783. - need_lib_prefix=no
  21784. - need_version=no
  21785. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  21786. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21787. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21788. - dynamic_linker='NetBSD (a.out) ld.so'
  21789. - else
  21790. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  21791. - soname_spec='${libname}${release}${shared_ext}$major'
  21792. - dynamic_linker='NetBSD ld.elf_so'
  21793. - fi
  21794. - shlibpath_var=LD_LIBRARY_PATH
  21795. - shlibpath_overrides_runpath=yes
  21796. - hardcode_into_libs=yes
  21797. - ;;
  21798. + if test "$mpi_mod_asm_mpih_lshift" = yes; then
  21799. + MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
  21800. + MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
  21801. +else
  21802. + MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
  21803. + MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
  21804. +fi
  21805. -newsos6)
  21806. - version_type=linux
  21807. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21808. - shlibpath_var=LD_LIBRARY_PATH
  21809. - shlibpath_overrides_runpath=yes
  21810. - ;;
  21811. + if test "$mpi_mod_asm_mpih_rshift" = yes; then
  21812. + MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
  21813. + MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
  21814. +else
  21815. + MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
  21816. + MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
  21817. +fi
  21818. -nto-qnx*)
  21819. - version_type=linux
  21820. - need_lib_prefix=no
  21821. - need_version=no
  21822. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21823. - soname_spec='${libname}${release}${shared_ext}$major'
  21824. - shlibpath_var=LD_LIBRARY_PATH
  21825. - shlibpath_overrides_runpath=yes
  21826. - ;;
  21827. + if test "$mpi_mod_asm_udiv" = yes; then
  21828. + MPI_MOD_ASM_UDIV_TRUE=
  21829. + MPI_MOD_ASM_UDIV_FALSE='#'
  21830. +else
  21831. + MPI_MOD_ASM_UDIV_TRUE='#'
  21832. + MPI_MOD_ASM_UDIV_FALSE=
  21833. +fi
  21834. -openbsd*)
  21835. - version_type=sunos
  21836. - need_lib_prefix=no
  21837. - need_version=yes
  21838. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21839. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  21840. - shlibpath_var=LD_LIBRARY_PATH
  21841. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21842. - case $host_os in
  21843. - openbsd2.[89] | openbsd2.[89].*)
  21844. - shlibpath_overrides_runpath=no
  21845. - ;;
  21846. - *)
  21847. - shlibpath_overrides_runpath=yes
  21848. - ;;
  21849. - esac
  21850. - else
  21851. - shlibpath_overrides_runpath=yes
  21852. - fi
  21853. - ;;
  21854. -
  21855. -os2*)
  21856. - libname_spec='$name'
  21857. - shrext_cmds=".dll"
  21858. - need_lib_prefix=no
  21859. - library_names_spec='$libname${shared_ext} $libname.a'
  21860. - dynamic_linker='OS/2 ld.exe'
  21861. - shlibpath_var=LIBPATH
  21862. - ;;
  21863. -
  21864. -osf3* | osf4* | osf5*)
  21865. - version_type=osf
  21866. - need_lib_prefix=no
  21867. - need_version=no
  21868. - soname_spec='${libname}${release}${shared_ext}$major'
  21869. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21870. - shlibpath_var=LD_LIBRARY_PATH
  21871. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  21872. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  21873. - ;;
  21874. -
  21875. -sco3.2v5*)
  21876. - version_type=osf
  21877. - soname_spec='${libname}${release}${shared_ext}$major'
  21878. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21879. - shlibpath_var=LD_LIBRARY_PATH
  21880. - ;;
  21881. -
  21882. -solaris*)
  21883. - version_type=linux
  21884. - need_lib_prefix=no
  21885. - need_version=no
  21886. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21887. - soname_spec='${libname}${release}${shared_ext}$major'
  21888. - shlibpath_var=LD_LIBRARY_PATH
  21889. - shlibpath_overrides_runpath=yes
  21890. - hardcode_into_libs=yes
  21891. - # ldd complains unless libraries are executable
  21892. - postinstall_cmds='chmod +x $lib'
  21893. - ;;
  21894. + if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
  21895. + MPI_MOD_ASM_UDIV_QRNND_TRUE=
  21896. + MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
  21897. +else
  21898. + MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
  21899. + MPI_MOD_ASM_UDIV_QRNND_FALSE=
  21900. +fi
  21901. -sunos4*)
  21902. - version_type=sunos
  21903. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  21904. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  21905. - shlibpath_var=LD_LIBRARY_PATH
  21906. - shlibpath_overrides_runpath=yes
  21907. - if test "$with_gnu_ld" = yes; then
  21908. - need_lib_prefix=no
  21909. - fi
  21910. - need_version=yes
  21911. - ;;
  21912. + if test "$mpi_mod_c_mpih_add1" = yes; then
  21913. + MPI_MOD_C_MPIH_ADD1_TRUE=
  21914. + MPI_MOD_C_MPIH_ADD1_FALSE='#'
  21915. +else
  21916. + MPI_MOD_C_MPIH_ADD1_TRUE='#'
  21917. + MPI_MOD_C_MPIH_ADD1_FALSE=
  21918. +fi
  21919. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  21920. - version_type=linux
  21921. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21922. - soname_spec='${libname}${release}${shared_ext}$major'
  21923. - shlibpath_var=LD_LIBRARY_PATH
  21924. - case $host_vendor in
  21925. - sni)
  21926. - shlibpath_overrides_runpath=no
  21927. - need_lib_prefix=no
  21928. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  21929. - runpath_var=LD_RUN_PATH
  21930. - ;;
  21931. - siemens)
  21932. - need_lib_prefix=no
  21933. - ;;
  21934. - motorola)
  21935. - need_lib_prefix=no
  21936. - need_version=no
  21937. - shlibpath_overrides_runpath=no
  21938. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  21939. - ;;
  21940. - esac
  21941. - ;;
  21942. + if test "$mpi_mod_c_mpih_sub1" = yes; then
  21943. + MPI_MOD_C_MPIH_SUB1_TRUE=
  21944. + MPI_MOD_C_MPIH_SUB1_FALSE='#'
  21945. +else
  21946. + MPI_MOD_C_MPIH_SUB1_TRUE='#'
  21947. + MPI_MOD_C_MPIH_SUB1_FALSE=
  21948. +fi
  21949. -sysv4*MP*)
  21950. - if test -d /usr/nec ;then
  21951. - version_type=linux
  21952. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  21953. - soname_spec='$libname${shared_ext}.$major'
  21954. - shlibpath_var=LD_LIBRARY_PATH
  21955. - fi
  21956. - ;;
  21957. + if test "$mpi_mod_c_mpih_mul1" = yes; then
  21958. + MPI_MOD_C_MPIH_MUL1_TRUE=
  21959. + MPI_MOD_C_MPIH_MUL1_FALSE='#'
  21960. +else
  21961. + MPI_MOD_C_MPIH_MUL1_TRUE='#'
  21962. + MPI_MOD_C_MPIH_MUL1_FALSE=
  21963. +fi
  21964. -uts4*)
  21965. - version_type=linux
  21966. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  21967. - soname_spec='${libname}${release}${shared_ext}$major'
  21968. - shlibpath_var=LD_LIBRARY_PATH
  21969. - ;;
  21970. + if test "$mpi_mod_c_mpih_mul2" = yes; then
  21971. + MPI_MOD_C_MPIH_MUL2_TRUE=
  21972. + MPI_MOD_C_MPIH_MUL2_FALSE='#'
  21973. +else
  21974. + MPI_MOD_C_MPIH_MUL2_TRUE='#'
  21975. + MPI_MOD_C_MPIH_MUL2_FALSE=
  21976. +fi
  21977. -*)
  21978. - dynamic_linker=no
  21979. - ;;
  21980. -esac
  21981. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  21982. -$as_echo "$dynamic_linker" >&6; }
  21983. -test "$dynamic_linker" = no && can_build_shared=no
  21984. + if test "$mpi_mod_c_mpih_mul3" = yes; then
  21985. + MPI_MOD_C_MPIH_MUL3_TRUE=
  21986. + MPI_MOD_C_MPIH_MUL3_FALSE='#'
  21987. +else
  21988. + MPI_MOD_C_MPIH_MUL3_TRUE='#'
  21989. + MPI_MOD_C_MPIH_MUL3_FALSE=
  21990. +fi
  21991. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  21992. -$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  21993. -hardcode_action_GCJ=
  21994. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  21995. - test -n "$runpath_var GCJ" || \
  21996. - test "X$hardcode_automatic_GCJ"="Xyes" ; then
  21997. + if test "$mpi_mod_c_mpih_lshift" = yes; then
  21998. + MPI_MOD_C_MPIH_LSHIFT_TRUE=
  21999. + MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
  22000. +else
  22001. + MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
  22002. + MPI_MOD_C_MPIH_LSHIFT_FALSE=
  22003. +fi
  22004. - # We can hardcode non-existant directories.
  22005. - if test "$hardcode_direct_GCJ" != no &&
  22006. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  22007. - # have to relink, otherwise we might link with an installed library
  22008. - # when we should be linking with a yet-to-be-installed one
  22009. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  22010. - test "$hardcode_minus_L_GCJ" != no; then
  22011. - # Linking always hardcodes the temporary library directory.
  22012. - hardcode_action_GCJ=relink
  22013. - else
  22014. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  22015. - hardcode_action_GCJ=immediate
  22016. - fi
  22017. + if test "$mpi_mod_c_mpih_rshift" = yes; then
  22018. + MPI_MOD_C_MPIH_RSHIFT_TRUE=
  22019. + MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
  22020. else
  22021. - # We cannot hardcode anything, or else we can only hardcode existing
  22022. - # directories.
  22023. - hardcode_action_GCJ=unsupported
  22024. + MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
  22025. + MPI_MOD_C_MPIH_RSHIFT_FALSE=
  22026. fi
  22027. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
  22028. -$as_echo "$hardcode_action_GCJ" >&6; }
  22029. -if test "$hardcode_action_GCJ" = relink; then
  22030. - # Fast installation is not supported
  22031. - enable_fast_install=no
  22032. -elif test "$shlibpath_overrides_runpath" = yes ||
  22033. - test "$enable_shared" = no; then
  22034. - # Fast installation is not necessary
  22035. - enable_fast_install=needless
  22036. + if test "$mpi_mod_c_udiv" = yes; then
  22037. + MPI_MOD_C_UDIV_TRUE=
  22038. + MPI_MOD_C_UDIV_FALSE='#'
  22039. +else
  22040. + MPI_MOD_C_UDIV_TRUE='#'
  22041. + MPI_MOD_C_UDIV_FALSE=
  22042. fi
  22043. -striplib=
  22044. -old_striplib=
  22045. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  22046. -$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  22047. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  22048. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  22049. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  22050. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22051. -$as_echo "yes" >&6; }
  22052. + if test "$mpi_mod_c_udiv_qrnnd" = yes; then
  22053. + MPI_MOD_C_UDIV_QRNND_TRUE=
  22054. + MPI_MOD_C_UDIV_QRNND_FALSE='#'
  22055. else
  22056. -# FIXME - insert some real tests, host_os isn't really good enough
  22057. - case $host_os in
  22058. - darwin*)
  22059. - if test -n "$STRIP" ; then
  22060. - striplib="$STRIP -x"
  22061. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22062. -$as_echo "yes" >&6; }
  22063. - else
  22064. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22065. -$as_echo "no" >&6; }
  22066. + MPI_MOD_C_UDIV_QRNND_TRUE='#'
  22067. + MPI_MOD_C_UDIV_QRNND_FALSE=
  22068. fi
  22069. - ;;
  22070. - *)
  22071. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22072. -$as_echo "no" >&6; }
  22073. - ;;
  22074. - esac
  22075. +
  22076. +
  22077. +if test "$is_development_version" = "yes"; then
  22078. +
  22079. +$as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
  22080. +
  22081. fi
  22082. -if test "x$enable_dlopen" != xyes; then
  22083. - enable_dlopen=unknown
  22084. - enable_dlopen_self=unknown
  22085. - enable_dlopen_self_static=unknown
  22086. +
  22087. + if test x$cross_compiling = xyes; then
  22088. + CROSS_COMPILING_TRUE=
  22089. + CROSS_COMPILING_FALSE='#'
  22090. else
  22091. - lt_cv_dlopen=no
  22092. - lt_cv_dlopen_libs=
  22093. + CROSS_COMPILING_TRUE='#'
  22094. + CROSS_COMPILING_FALSE=
  22095. +fi
  22096. - case $host_os in
  22097. - beos*)
  22098. - lt_cv_dlopen="load_add_on"
  22099. - lt_cv_dlopen_libs=
  22100. - lt_cv_dlopen_self=yes
  22101. - ;;
  22102. - mingw* | pw32*)
  22103. - lt_cv_dlopen="LoadLibrary"
  22104. - lt_cv_dlopen_libs=
  22105. - ;;
  22106. - cygwin*)
  22107. - lt_cv_dlopen="dlopen"
  22108. - lt_cv_dlopen_libs=
  22109. - ;;
  22110. +# This is handy for debugging so the compiler doesn't rearrange
  22111. +# things and eliminate variables.
  22112. +# Check whether --enable-optimization was given.
  22113. +if test "${enable_optimization+set}" = set; then :
  22114. + enableval=$enable_optimization; if test $enableval = no ; then
  22115. + CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
  22116. + fi
  22117. +fi
  22118. - darwin*)
  22119. - # if libdl is installed we need to link against it
  22120. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22121. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  22122. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  22123. - $as_echo_n "(cached) " >&6
  22124. -else
  22125. - ac_check_lib_save_LIBS=$LIBS
  22126. -LIBS="-ldl $LIBS"
  22127. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22128. -/* end confdefs.h. */
  22129. -/* Override any GCC internal prototype to avoid an error.
  22130. - Use char because int might match the return type of a GCC
  22131. - builtin and then its argument prototype would still apply. */
  22132. -#ifdef __cplusplus
  22133. -extern "C"
  22134. -#endif
  22135. -char dlopen ();
  22136. -int
  22137. -main ()
  22138. -{
  22139. -return dlopen ();
  22140. - ;
  22141. - return 0;
  22142. -}
  22143. -_ACEOF
  22144. -if ac_fn_c_try_link "$LINENO"; then :
  22145. - ac_cv_lib_dl_dlopen=yes
  22146. -else
  22147. - ac_cv_lib_dl_dlopen=no
  22148. -fi
  22149. -rm -f core conftest.err conftest.$ac_objext \
  22150. - conftest$ac_exeext conftest.$ac_ext
  22151. -LIBS=$ac_check_lib_save_LIBS
  22152. -fi
  22153. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22154. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  22155. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  22156. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  22157. -else
  22158. -
  22159. - lt_cv_dlopen="dyld"
  22160. - lt_cv_dlopen_libs=
  22161. - lt_cv_dlopen_self=yes
  22162. -
  22163. -fi
  22164. -
  22165. - ;;
  22166. +# CFLAGS mangling when using gcc.
  22167. +if test "$GCC" = yes; then
  22168. + CFLAGS="$CFLAGS -Wall"
  22169. + if test "$USE_MAINTAINER_MODE" = "yes"; then
  22170. + CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
  22171. + CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
  22172. - *)
  22173. - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  22174. -if test "x$ac_cv_func_shl_load" = x""yes; then :
  22175. - lt_cv_dlopen="shl_load"
  22176. -else
  22177. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  22178. -$as_echo_n "checking for shl_load in -ldld... " >&6; }
  22179. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  22180. - $as_echo_n "(cached) " >&6
  22181. -else
  22182. - ac_check_lib_save_LIBS=$LIBS
  22183. -LIBS="-ldld $LIBS"
  22184. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22185. + # If -Wno-missing-field-initializers is supported we can enable a
  22186. + # a bunch of really useful warnings.
  22187. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
  22188. +$as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
  22189. + _gcc_cflags_save=$CFLAGS
  22190. + CFLAGS="-Wno-missing-field-initializers"
  22191. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22192. /* end confdefs.h. */
  22193. -/* Override any GCC internal prototype to avoid an error.
  22194. - Use char because int might match the return type of a GCC
  22195. - builtin and then its argument prototype would still apply. */
  22196. -#ifdef __cplusplus
  22197. -extern "C"
  22198. -#endif
  22199. -char shl_load ();
  22200. int
  22201. main ()
  22202. {
  22203. -return shl_load ();
  22204. - ;
  22205. - return 0;
  22206. -}
  22207. -_ACEOF
  22208. -if ac_fn_c_try_link "$LINENO"; then :
  22209. - ac_cv_lib_dld_shl_load=yes
  22210. -else
  22211. - ac_cv_lib_dld_shl_load=no
  22212. -fi
  22213. -rm -f core conftest.err conftest.$ac_objext \
  22214. - conftest$ac_exeext conftest.$ac_ext
  22215. -LIBS=$ac_check_lib_save_LIBS
  22216. -fi
  22217. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  22218. -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  22219. -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  22220. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  22221. -else
  22222. - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  22223. -if test "x$ac_cv_func_dlopen" = x""yes; then :
  22224. - lt_cv_dlopen="dlopen"
  22225. -else
  22226. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22227. -$as_echo_n "checking for dlopen in -ldl... " >&6; }
  22228. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  22229. - $as_echo_n "(cached) " >&6
  22230. -else
  22231. - ac_check_lib_save_LIBS=$LIBS
  22232. -LIBS="-ldl $LIBS"
  22233. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22234. -/* end confdefs.h. */
  22235. -/* Override any GCC internal prototype to avoid an error.
  22236. - Use char because int might match the return type of a GCC
  22237. - builtin and then its argument prototype would still apply. */
  22238. -#ifdef __cplusplus
  22239. -extern "C"
  22240. -#endif
  22241. -char dlopen ();
  22242. -int
  22243. -main ()
  22244. -{
  22245. -return dlopen ();
  22246. ;
  22247. return 0;
  22248. }
  22249. _ACEOF
  22250. -if ac_fn_c_try_link "$LINENO"; then :
  22251. - ac_cv_lib_dl_dlopen=yes
  22252. +if ac_fn_c_try_compile "$LINENO"; then :
  22253. + _gcc_wopt=yes
  22254. else
  22255. - ac_cv_lib_dl_dlopen=no
  22256. -fi
  22257. -rm -f core conftest.err conftest.$ac_objext \
  22258. - conftest$ac_exeext conftest.$ac_ext
  22259. -LIBS=$ac_check_lib_save_LIBS
  22260. + _gcc_wopt=no
  22261. fi
  22262. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22263. -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  22264. -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  22265. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  22266. -else
  22267. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  22268. -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  22269. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  22270. - $as_echo_n "(cached) " >&6
  22271. -else
  22272. - ac_check_lib_save_LIBS=$LIBS
  22273. -LIBS="-lsvld $LIBS"
  22274. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22275. -/* end confdefs.h. */
  22276. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22277. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
  22278. +$as_echo "$_gcc_wopt" >&6; }
  22279. + CFLAGS=$_gcc_cflags_save;
  22280. + if test x"$_gcc_wopt" = xyes ; then
  22281. + CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
  22282. + CFLAGS="$CFLAGS -Wwrite-strings"
  22283. + CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  22284. + CFLAGS="$CFLAGS -Wno-missing-field-initializers"
  22285. + CFLAGS="$CFLAGS -Wno-sign-compare"
  22286. + fi
  22287. -/* Override any GCC internal prototype to avoid an error.
  22288. - Use char because int might match the return type of a GCC
  22289. - builtin and then its argument prototype would still apply. */
  22290. -#ifdef __cplusplus
  22291. -extern "C"
  22292. -#endif
  22293. -char dlopen ();
  22294. -int
  22295. -main ()
  22296. -{
  22297. -return dlopen ();
  22298. - ;
  22299. - return 0;
  22300. -}
  22301. -_ACEOF
  22302. -if ac_fn_c_try_link "$LINENO"; then :
  22303. - ac_cv_lib_svld_dlopen=yes
  22304. -else
  22305. - ac_cv_lib_svld_dlopen=no
  22306. -fi
  22307. -rm -f core conftest.err conftest.$ac_objext \
  22308. - conftest$ac_exeext conftest.$ac_ext
  22309. -LIBS=$ac_check_lib_save_LIBS
  22310. -fi
  22311. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  22312. -$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  22313. -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  22314. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  22315. -else
  22316. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  22317. -$as_echo_n "checking for dld_link in -ldld... " >&6; }
  22318. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  22319. - $as_echo_n "(cached) " >&6
  22320. -else
  22321. - ac_check_lib_save_LIBS=$LIBS
  22322. -LIBS="-ldld $LIBS"
  22323. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22324. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
  22325. +$as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
  22326. + _gcc_cflags_save=$CFLAGS
  22327. + CFLAGS="-Wpointer-arith"
  22328. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22329. /* end confdefs.h. */
  22330. -/* Override any GCC internal prototype to avoid an error.
  22331. - Use char because int might match the return type of a GCC
  22332. - builtin and then its argument prototype would still apply. */
  22333. -#ifdef __cplusplus
  22334. -extern "C"
  22335. -#endif
  22336. -char dld_link ();
  22337. int
  22338. main ()
  22339. {
  22340. -return dld_link ();
  22341. +
  22342. ;
  22343. return 0;
  22344. }
  22345. _ACEOF
  22346. -if ac_fn_c_try_link "$LINENO"; then :
  22347. - ac_cv_lib_dld_dld_link=yes
  22348. +if ac_fn_c_try_compile "$LINENO"; then :
  22349. + _gcc_wopt=yes
  22350. else
  22351. - ac_cv_lib_dld_dld_link=no
  22352. -fi
  22353. -rm -f core conftest.err conftest.$ac_objext \
  22354. - conftest$ac_exeext conftest.$ac_ext
  22355. -LIBS=$ac_check_lib_save_LIBS
  22356. -fi
  22357. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  22358. -$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  22359. -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  22360. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  22361. -fi
  22362. -
  22363. -
  22364. + _gcc_wopt=no
  22365. fi
  22366. -
  22367. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22368. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
  22369. +$as_echo "$_gcc_wopt" >&6; }
  22370. + CFLAGS=$_gcc_cflags_save;
  22371. + if test x"$_gcc_wopt" = xyes ; then
  22372. + CFLAGS="$CFLAGS -Wpointer-arith"
  22373. + fi
  22374. + fi
  22375. fi
  22376. -
  22377. -fi
  22378. +# Check whether as(1) supports a noeexecstack feature. This test
  22379. +# includes an override option.
  22380. -fi
  22381. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
  22382. +$as_echo_n "checking whether non excutable stack support is requested... " >&6; }
  22383. +# Check whether --enable-noexecstack was given.
  22384. +if test "${enable_noexecstack+set}" = set; then :
  22385. + enableval=$enable_noexecstack; noexecstack_support=$enableval
  22386. +else
  22387. + noexecstack_support=yes
  22388. fi
  22389. - ;;
  22390. - esac
  22391. -
  22392. - if test "x$lt_cv_dlopen" != xno; then
  22393. - enable_dlopen=yes
  22394. - else
  22395. - enable_dlopen=no
  22396. - fi
  22397. -
  22398. - case $lt_cv_dlopen in
  22399. - dlopen)
  22400. - save_CPPFLAGS="$CPPFLAGS"
  22401. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  22402. -
  22403. - save_LDFLAGS="$LDFLAGS"
  22404. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  22405. -
  22406. - save_LIBS="$LIBS"
  22407. - LIBS="$lt_cv_dlopen_libs $LIBS"
  22408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
  22409. +$as_echo "$noexecstack_support" >&6; }
  22410. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  22411. -$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  22412. -if test "${lt_cv_dlopen_self+set}" = set; then :
  22413. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
  22414. +$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
  22415. +if test "${cl_cv_as_noexecstack+set}" = set; then :
  22416. $as_echo_n "(cached) " >&6
  22417. else
  22418. - if test "$cross_compiling" = yes; then :
  22419. - lt_cv_dlopen_self=cross
  22420. -else
  22421. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22422. - lt_status=$lt_dlunknown
  22423. - cat > conftest.$ac_ext <<EOF
  22424. -#line 18536 "configure"
  22425. -#include "confdefs.h"
  22426. -
  22427. -#if HAVE_DLFCN_H
  22428. -#include <dlfcn.h>
  22429. -#endif
  22430. -
  22431. -#include <stdio.h>
  22432. -
  22433. -#ifdef RTLD_GLOBAL
  22434. -# define LT_DLGLOBAL RTLD_GLOBAL
  22435. -#else
  22436. -# ifdef DL_GLOBAL
  22437. -# define LT_DLGLOBAL DL_GLOBAL
  22438. -# else
  22439. -# define LT_DLGLOBAL 0
  22440. -# endif
  22441. -#endif
  22442. -
  22443. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  22444. - find out it does not work in some platform. */
  22445. -#ifndef LT_DLLAZY_OR_NOW
  22446. -# ifdef RTLD_LAZY
  22447. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  22448. -# else
  22449. -# ifdef DL_LAZY
  22450. -# define LT_DLLAZY_OR_NOW DL_LAZY
  22451. -# else
  22452. -# ifdef RTLD_NOW
  22453. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  22454. -# else
  22455. -# ifdef DL_NOW
  22456. -# define LT_DLLAZY_OR_NOW DL_NOW
  22457. -# else
  22458. -# define LT_DLLAZY_OR_NOW 0
  22459. -# endif
  22460. -# endif
  22461. -# endif
  22462. -# endif
  22463. -#endif
  22464. -
  22465. -#ifdef __cplusplus
  22466. -extern "C" void exit (int);
  22467. -#endif
  22468. -
  22469. -void fnord() { int i=42;}
  22470. -int main ()
  22471. -{
  22472. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  22473. - int status = $lt_dlunknown;
  22474. -
  22475. - if (self)
  22476. - {
  22477. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  22478. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  22479. - /* dlclose (self); */
  22480. - }
  22481. -
  22482. - exit (status);
  22483. -}
  22484. + cat > conftest.c <<EOF
  22485. +void foo() {}
  22486. EOF
  22487. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22488. - (eval $ac_link) 2>&5
  22489. + if { ac_try='${CC} $CFLAGS $CPPFLAGS
  22490. + -S -o conftest.s conftest.c >/dev/null'
  22491. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22492. + (eval $ac_try) 2>&5
  22493. ac_status=$?
  22494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22495. - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  22496. - (./conftest; exit; ) 2>/dev/null
  22497. - lt_status=$?
  22498. - case x$lt_status in
  22499. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  22500. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  22501. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  22502. - esac
  22503. - else :
  22504. - # compilation failed
  22505. - lt_cv_dlopen_self=no
  22506. + test $ac_status = 0; }; } \
  22507. + && grep .note.GNU-stack conftest.s >/dev/null \
  22508. + && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
  22509. + -c -o conftest.o conftest.s >/dev/null'
  22510. + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  22511. + (eval $ac_try) 2>&5
  22512. + ac_status=$?
  22513. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22514. + test $ac_status = 0; }; }
  22515. + then
  22516. + cl_cv_as_noexecstack=yes
  22517. + else
  22518. + cl_cv_as_noexecstack=no
  22519. fi
  22520. + rm -f conftest*
  22521. fi
  22522. -rm -fr conftest*
  22523. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
  22524. +$as_echo "$cl_cv_as_noexecstack" >&6; }
  22525. + if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
  22526. + NOEXECSTACK_FLAGS="-Wa,--noexecstack"
  22527. + else
  22528. + NOEXECSTACK_FLAGS=
  22529. + fi
  22530. -fi
  22531. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  22532. -$as_echo "$lt_cv_dlopen_self" >&6; }
  22533. - if test "x$lt_cv_dlopen_self" = xyes; then
  22534. - LDFLAGS="$LDFLAGS $link_static_flag"
  22535. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  22536. -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  22537. -if test "${lt_cv_dlopen_self_static+set}" = set; then :
  22538. - $as_echo_n "(cached) " >&6
  22539. -else
  22540. - if test "$cross_compiling" = yes; then :
  22541. - lt_cv_dlopen_self_static=cross
  22542. -else
  22543. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  22544. - lt_status=$lt_dlunknown
  22545. - cat > conftest.$ac_ext <<EOF
  22546. -#line 18634 "configure"
  22547. -#include "confdefs.h"
  22548. -#if HAVE_DLFCN_H
  22549. -#include <dlfcn.h>
  22550. -#endif
  22551. -#include <stdio.h>
  22552. -#ifdef RTLD_GLOBAL
  22553. -# define LT_DLGLOBAL RTLD_GLOBAL
  22554. -#else
  22555. -# ifdef DL_GLOBAL
  22556. -# define LT_DLGLOBAL DL_GLOBAL
  22557. -# else
  22558. -# define LT_DLGLOBAL 0
  22559. -# endif
  22560. -#endif
  22561. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  22562. - find out it does not work in some platform. */
  22563. -#ifndef LT_DLLAZY_OR_NOW
  22564. -# ifdef RTLD_LAZY
  22565. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  22566. -# else
  22567. -# ifdef DL_LAZY
  22568. -# define LT_DLLAZY_OR_NOW DL_LAZY
  22569. -# else
  22570. -# ifdef RTLD_NOW
  22571. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  22572. -# else
  22573. -# ifdef DL_NOW
  22574. -# define LT_DLLAZY_OR_NOW DL_NOW
  22575. -# else
  22576. -# define LT_DLLAZY_OR_NOW 0
  22577. -# endif
  22578. -# endif
  22579. -# endif
  22580. -# endif
  22581. -#endif
  22582. -#ifdef __cplusplus
  22583. -extern "C" void exit (int);
  22584. -#endif
  22585. -void fnord() { int i=42;}
  22586. -int main ()
  22587. -{
  22588. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  22589. - int status = $lt_dlunknown;
  22590. +ac_config_commands="$ac_config_commands gcrypt-conf"
  22591. - if (self)
  22592. - {
  22593. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  22594. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  22595. - /* dlclose (self); */
  22596. - }
  22597. - exit (status);
  22598. -}
  22599. -EOF
  22600. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22601. - (eval $ac_link) 2>&5
  22602. - ac_status=$?
  22603. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22604. - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  22605. - (./conftest; exit; ) 2>/dev/null
  22606. - lt_status=$?
  22607. - case x$lt_status in
  22608. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  22609. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  22610. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  22611. - esac
  22612. - else :
  22613. - # compilation failed
  22614. - lt_cv_dlopen_self_static=no
  22615. - fi
  22616. -fi
  22617. -rm -fr conftest*
  22618. +#####################
  22619. +#### Conclusion. ####
  22620. +#####################
  22621. +# Define conditional sources and config.h symbols depending on the
  22622. +# selected ciphers, pubkey-ciphers, digests and random modules.
  22623. -fi
  22624. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  22625. -$as_echo "$lt_cv_dlopen_self_static" >&6; }
  22626. - fi
  22627. - CPPFLAGS="$save_CPPFLAGS"
  22628. - LDFLAGS="$save_LDFLAGS"
  22629. - LIBS="$save_LIBS"
  22630. - ;;
  22631. - esac
  22632. +name=arcfour
  22633. +list=$enabled_ciphers
  22634. +found=0
  22635. - case $lt_cv_dlopen_self in
  22636. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  22637. - *) enable_dlopen_self=unknown ;;
  22638. - esac
  22639. +for n in $list; do
  22640. + if test "x$name" = "x$n"; then
  22641. + found=1
  22642. + fi
  22643. +done
  22644. - case $lt_cv_dlopen_self_static in
  22645. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  22646. - *) enable_dlopen_self_static=unknown ;;
  22647. - esac
  22648. -fi
  22649. +if test "$found" = "1"; then
  22650. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
  22651. +$as_echo "#define USE_ARCFOUR 1" >>confdefs.h
  22652. -# The else clause should only fire when bootstrapping the
  22653. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  22654. -# with your package, and you will get complaints that there are
  22655. -# no rules to generate ltmain.sh.
  22656. -if test -f "$ltmain"; then
  22657. - # See if we are running on zsh, and set the options which allow our commands through
  22658. - # without removal of \ escapes.
  22659. - if test -n "${ZSH_VERSION+set}" ; then
  22660. - setopt NO_GLOB_SUBST
  22661. - fi
  22662. - # Now quote all the things that may contain metacharacters while being
  22663. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  22664. - # variables and quote the copies for generation of the libtool script.
  22665. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  22666. - SED SHELL STRIP \
  22667. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  22668. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  22669. - deplibs_check_method reload_flag reload_cmds need_locks \
  22670. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  22671. - lt_cv_sys_global_symbol_to_c_name_address \
  22672. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  22673. - old_postinstall_cmds old_postuninstall_cmds \
  22674. - compiler_GCJ \
  22675. - CC_GCJ \
  22676. - LD_GCJ \
  22677. - lt_prog_compiler_wl_GCJ \
  22678. - lt_prog_compiler_pic_GCJ \
  22679. - lt_prog_compiler_static_GCJ \
  22680. - lt_prog_compiler_no_builtin_flag_GCJ \
  22681. - export_dynamic_flag_spec_GCJ \
  22682. - thread_safe_flag_spec_GCJ \
  22683. - whole_archive_flag_spec_GCJ \
  22684. - enable_shared_with_static_runtimes_GCJ \
  22685. - old_archive_cmds_GCJ \
  22686. - old_archive_from_new_cmds_GCJ \
  22687. - predep_objects_GCJ \
  22688. - postdep_objects_GCJ \
  22689. - predeps_GCJ \
  22690. - postdeps_GCJ \
  22691. - compiler_lib_search_path_GCJ \
  22692. - archive_cmds_GCJ \
  22693. - archive_expsym_cmds_GCJ \
  22694. - postinstall_cmds_GCJ \
  22695. - postuninstall_cmds_GCJ \
  22696. - old_archive_from_expsyms_cmds_GCJ \
  22697. - allow_undefined_flag_GCJ \
  22698. - no_undefined_flag_GCJ \
  22699. - export_symbols_cmds_GCJ \
  22700. - hardcode_libdir_flag_spec_GCJ \
  22701. - hardcode_libdir_flag_spec_ld_GCJ \
  22702. - hardcode_libdir_separator_GCJ \
  22703. - hardcode_automatic_GCJ \
  22704. - module_cmds_GCJ \
  22705. - module_expsym_cmds_GCJ \
  22706. - lt_cv_prog_compiler_c_o_GCJ \
  22707. - exclude_expsyms_GCJ \
  22708. - include_expsyms_GCJ; do
  22709. -
  22710. - case $var in
  22711. - old_archive_cmds_GCJ | \
  22712. - old_archive_from_new_cmds_GCJ | \
  22713. - archive_cmds_GCJ | \
  22714. - archive_expsym_cmds_GCJ | \
  22715. - module_cmds_GCJ | \
  22716. - module_expsym_cmds_GCJ | \
  22717. - old_archive_from_expsyms_cmds_GCJ | \
  22718. - export_symbols_cmds_GCJ | \
  22719. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  22720. - postinstall_cmds | postuninstall_cmds | \
  22721. - old_postinstall_cmds | old_postuninstall_cmds | \
  22722. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  22723. - # Double-quote double-evaled strings.
  22724. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  22725. - ;;
  22726. - *)
  22727. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  22728. - ;;
  22729. - esac
  22730. - done
  22731. +fi
  22732. - case $lt_echo in
  22733. - *'\$0 --fallback-echo"')
  22734. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  22735. - ;;
  22736. - esac
  22737. -cfgfile="$ofile"
  22738. +name=blowfish
  22739. +list=$enabled_ciphers
  22740. +found=0
  22741. - cat <<__EOF__ >> "$cfgfile"
  22742. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  22743. +for n in $list; do
  22744. + if test "x$name" = "x$n"; then
  22745. + found=1
  22746. + fi
  22747. +done
  22748. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22749. +if test "$found" = "1" ; then
  22750. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
  22751. -# Shell to use when invoking shell scripts.
  22752. -SHELL=$lt_SHELL
  22753. +$as_echo "#define USE_BLOWFISH 1" >>confdefs.h
  22754. -# Whether or not to build shared libraries.
  22755. -build_libtool_libs=$enable_shared
  22756. +fi
  22757. -# Whether or not to build static libraries.
  22758. -build_old_libs=$enable_static
  22759. -# Whether or not to add -lc for building shared libraries.
  22760. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  22761. +name=cast5
  22762. +list=$enabled_ciphers
  22763. +found=0
  22764. -# Whether or not to disallow shared libs when runtime libs are static
  22765. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  22766. +for n in $list; do
  22767. + if test "x$name" = "x$n"; then
  22768. + found=1
  22769. + fi
  22770. +done
  22771. -# Whether or not to optimize for fast installation.
  22772. -fast_install=$enable_fast_install
  22773. +if test "$found" = "1" ; then
  22774. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
  22775. -# The host system.
  22776. -host_alias=$host_alias
  22777. -host=$host
  22778. +$as_echo "#define USE_CAST5 1" >>confdefs.h
  22779. -# An echo program that does not interpret backslashes.
  22780. -echo=$lt_echo
  22781. +fi
  22782. -# The archiver.
  22783. -AR=$lt_AR
  22784. -AR_FLAGS=$lt_AR_FLAGS
  22785. -# A C compiler.
  22786. -LTCC=$lt_LTCC
  22787. +name=des
  22788. +list=$enabled_ciphers
  22789. +found=0
  22790. -# A language-specific compiler.
  22791. -CC=$lt_compiler_GCJ
  22792. +for n in $list; do
  22793. + if test "x$name" = "x$n"; then
  22794. + found=1
  22795. + fi
  22796. +done
  22797. -# Is the compiler the GNU C compiler?
  22798. -with_gcc=$GCC_GCJ
  22799. +if test "$found" = "1" ; then
  22800. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
  22801. -# An ERE matcher.
  22802. -EGREP=$lt_EGREP
  22803. +$as_echo "#define USE_DES 1" >>confdefs.h
  22804. -# The linker used to build libraries.
  22805. -LD=$lt_LD_GCJ
  22806. +fi
  22807. -# Whether we need hard or soft links.
  22808. -LN_S=$lt_LN_S
  22809. -# A BSD-compatible nm program.
  22810. -NM=$lt_NM
  22811. +name=aes
  22812. +list=$enabled_ciphers
  22813. +found=0
  22814. -# A symbol stripping program
  22815. -STRIP=$lt_STRIP
  22816. +for n in $list; do
  22817. + if test "x$name" = "x$n"; then
  22818. + found=1
  22819. + fi
  22820. +done
  22821. -# Used to examine libraries when file_magic_cmd begins "file"
  22822. -MAGIC_CMD=$MAGIC_CMD
  22823. +if test "$found" = "1" ; then
  22824. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
  22825. -# Used on cygwin: DLL creation program.
  22826. -DLLTOOL="$DLLTOOL"
  22827. +$as_echo "#define USE_AES 1" >>confdefs.h
  22828. -# Used on cygwin: object dumper.
  22829. -OBJDUMP="$OBJDUMP"
  22830. +fi
  22831. -# Used on cygwin: assembler.
  22832. -AS="$AS"
  22833. -# The name of the directory that contains temporary libtool files.
  22834. -objdir=$objdir
  22835. +name=twofish
  22836. +list=$enabled_ciphers
  22837. +found=0
  22838. -# How to create reloadable object files.
  22839. -reload_flag=$lt_reload_flag
  22840. -reload_cmds=$lt_reload_cmds
  22841. +for n in $list; do
  22842. + if test "x$name" = "x$n"; then
  22843. + found=1
  22844. + fi
  22845. +done
  22846. -# How to pass a linker flag through the compiler.
  22847. -wl=$lt_lt_prog_compiler_wl_GCJ
  22848. +if test "$found" = "1" ; then
  22849. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
  22850. -# Object file suffix (normally "o").
  22851. -objext="$ac_objext"
  22852. +$as_echo "#define USE_TWOFISH 1" >>confdefs.h
  22853. -# Old archive suffix (normally "a").
  22854. -libext="$libext"
  22855. +fi
  22856. -# Shared library suffix (normally ".so").
  22857. -shrext_cmds='$shrext_cmds'
  22858. -# Executable file suffix (normally "").
  22859. -exeext="$exeext"
  22860. +name=serpent
  22861. +list=$enabled_ciphers
  22862. +found=0
  22863. -# Additional compiler flags for building library objects.
  22864. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  22865. -pic_mode=$pic_mode
  22866. +for n in $list; do
  22867. + if test "x$name" = "x$n"; then
  22868. + found=1
  22869. + fi
  22870. +done
  22871. -# What is the maximum length of a command?
  22872. -max_cmd_len=$lt_cv_sys_max_cmd_len
  22873. +if test "$found" = "1" ; then
  22874. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
  22875. -# Does compiler simultaneously support -c and -o options?
  22876. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  22877. +$as_echo "#define USE_SERPENT 1" >>confdefs.h
  22878. -# Must we lock files when doing compilation ?
  22879. -need_locks=$lt_need_locks
  22880. +fi
  22881. -# Do we need the lib prefix for modules?
  22882. -need_lib_prefix=$need_lib_prefix
  22883. -# Do we need a version for libraries?
  22884. -need_version=$need_version
  22885. +name=rfc2268
  22886. +list=$enabled_ciphers
  22887. +found=0
  22888. -# Whether dlopen is supported.
  22889. -dlopen_support=$enable_dlopen
  22890. +for n in $list; do
  22891. + if test "x$name" = "x$n"; then
  22892. + found=1
  22893. + fi
  22894. +done
  22895. -# Whether dlopen of programs is supported.
  22896. -dlopen_self=$enable_dlopen_self
  22897. +if test "$found" = "1" ; then
  22898. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
  22899. -# Whether dlopen of statically linked programs is supported.
  22900. -dlopen_self_static=$enable_dlopen_self_static
  22901. +$as_echo "#define USE_RFC2268 1" >>confdefs.h
  22902. -# Compiler flag to prevent dynamic linking.
  22903. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  22904. +fi
  22905. -# Compiler flag to turn off builtin functions.
  22906. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  22907. -# Compiler flag to allow reflexive dlopens.
  22908. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  22909. +name=seed
  22910. +list=$enabled_ciphers
  22911. +found=0
  22912. -# Compiler flag to generate shared objects directly from archives.
  22913. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  22914. +for n in $list; do
  22915. + if test "x$name" = "x$n"; then
  22916. + found=1
  22917. + fi
  22918. +done
  22919. -# Compiler flag to generate thread-safe objects.
  22920. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  22921. +if test "$found" = "1" ; then
  22922. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
  22923. -# Library versioning type.
  22924. -version_type=$version_type
  22925. +$as_echo "#define USE_SEED 1" >>confdefs.h
  22926. -# Format of library name prefix.
  22927. -libname_spec=$lt_libname_spec
  22928. +fi
  22929. -# List of archive names. First name is the real one, the rest are links.
  22930. -# The last name is the one that the linker finds with -lNAME.
  22931. -library_names_spec=$lt_library_names_spec
  22932. -# The coded name of the library, if different from the real name.
  22933. -soname_spec=$lt_soname_spec
  22934. +name=camellia
  22935. +list=$enabled_ciphers
  22936. +found=0
  22937. -# Commands used to build and install an old-style archive.
  22938. -RANLIB=$lt_RANLIB
  22939. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  22940. -old_postinstall_cmds=$lt_old_postinstall_cmds
  22941. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22942. +for n in $list; do
  22943. + if test "x$name" = "x$n"; then
  22944. + found=1
  22945. + fi
  22946. +done
  22947. -# Create an old-style archive from a shared archive.
  22948. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  22949. +if test "$found" = "1" ; then
  22950. + GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
  22951. -# Create a temporary old-style archive to link instead of a shared archive.
  22952. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  22953. +$as_echo "#define USE_CAMELLIA 1" >>confdefs.h
  22954. -# Commands used to build and install a shared archive.
  22955. -archive_cmds=$lt_archive_cmds_GCJ
  22956. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  22957. -postinstall_cmds=$lt_postinstall_cmds
  22958. -postuninstall_cmds=$lt_postuninstall_cmds
  22959. +fi
  22960. -# Commands used to build a loadable module (assumed same as above if empty)
  22961. -module_cmds=$lt_module_cmds_GCJ
  22962. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  22963. -# Commands to strip libraries.
  22964. -old_striplib=$lt_old_striplib
  22965. -striplib=$lt_striplib
  22966. +name=dsa
  22967. +list=$enabled_pubkey_ciphers
  22968. +found=0
  22969. -# Dependencies to place before the objects being linked to create a
  22970. -# shared library.
  22971. -predep_objects=$lt_predep_objects_GCJ
  22972. -
  22973. -# Dependencies to place after the objects being linked to create a
  22974. -# shared library.
  22975. -postdep_objects=$lt_postdep_objects_GCJ
  22976. -
  22977. -# Dependencies to place before the objects being linked to create a
  22978. -# shared library.
  22979. -predeps=$lt_predeps_GCJ
  22980. -
  22981. -# Dependencies to place after the objects being linked to create a
  22982. -# shared library.
  22983. -postdeps=$lt_postdeps_GCJ
  22984. -
  22985. -# The library search path used internally by the compiler when linking
  22986. -# a shared library.
  22987. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  22988. +for n in $list; do
  22989. + if test "x$name" = "x$n"; then
  22990. + found=1
  22991. + fi
  22992. +done
  22993. -# Method to check whether dependent libraries are shared objects.
  22994. -deplibs_check_method=$lt_deplibs_check_method
  22995. +if test "$found" = "1" ; then
  22996. + GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
  22997. -# Command to use when deplibs_check_method == file_magic.
  22998. -file_magic_cmd=$lt_file_magic_cmd
  22999. +$as_echo "#define USE_DSA 1" >>confdefs.h
  23000. -# Flag that allows shared libraries with undefined symbols to be built.
  23001. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  23002. +fi
  23003. -# Flag that forces no undefined symbols.
  23004. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  23005. -# Commands used to finish a libtool library installation in a directory.
  23006. -finish_cmds=$lt_finish_cmds
  23007. +name=rsa
  23008. +list=$enabled_pubkey_ciphers
  23009. +found=0
  23010. -# Same as above, but a single script fragment to be evaled but not shown.
  23011. -finish_eval=$lt_finish_eval
  23012. +for n in $list; do
  23013. + if test "x$name" = "x$n"; then
  23014. + found=1
  23015. + fi
  23016. +done
  23017. -# Take the output of nm and produce a listing of raw symbols and C names.
  23018. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23019. +if test "$found" = "1" ; then
  23020. + GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
  23021. -# Transform the output of nm in a proper C declaration
  23022. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23023. +$as_echo "#define USE_RSA 1" >>confdefs.h
  23024. -# Transform the output of nm in a C name address pair
  23025. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23026. +fi
  23027. -# This is the shared library runtime path variable.
  23028. -runpath_var=$runpath_var
  23029. -# This is the shared library path variable.
  23030. -shlibpath_var=$shlibpath_var
  23031. +name=elgamal
  23032. +list=$enabled_pubkey_ciphers
  23033. +found=0
  23034. -# Is shlibpath searched before the hard-coded library search path?
  23035. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23036. +for n in $list; do
  23037. + if test "x$name" = "x$n"; then
  23038. + found=1
  23039. + fi
  23040. +done
  23041. -# How to hardcode a shared library path into an executable.
  23042. -hardcode_action=$hardcode_action_GCJ
  23043. +if test "$found" = "1" ; then
  23044. + GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
  23045. -# Whether we should hardcode library paths into libraries.
  23046. -hardcode_into_libs=$hardcode_into_libs
  23047. +$as_echo "#define USE_ELGAMAL 1" >>confdefs.h
  23048. -# Flag to hardcode \$libdir into a binary during linking.
  23049. -# This must work even if \$libdir does not exist.
  23050. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  23051. +fi
  23052. -# If ld is used when linking, flag to hardcode \$libdir into
  23053. -# a binary during linking. This must work even if \$libdir does
  23054. -# not exist.
  23055. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  23056. -
  23057. -# Whether we need a single -rpath flag with a separated argument.
  23058. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  23059. -
  23060. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  23061. -# resulting binary.
  23062. -hardcode_direct=$hardcode_direct_GCJ
  23063. -
  23064. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  23065. -# resulting binary.
  23066. -hardcode_minus_L=$hardcode_minus_L_GCJ
  23067. -
  23068. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  23069. -# the resulting binary.
  23070. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  23071. -
  23072. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  23073. -# and all subsequent libraries and executables linked against it.
  23074. -hardcode_automatic=$hardcode_automatic_GCJ
  23075. -# Variables whose values should be saved in libtool wrapper scripts and
  23076. -# restored at relink time.
  23077. -variables_saved_for_relink="$variables_saved_for_relink"
  23078. +name=ecc
  23079. +list=$enabled_pubkey_ciphers
  23080. +found=0
  23081. -# Whether libtool must link a program against all its dependency libraries.
  23082. -link_all_deplibs=$link_all_deplibs_GCJ
  23083. +for n in $list; do
  23084. + if test "x$name" = "x$n"; then
  23085. + found=1
  23086. + fi
  23087. +done
  23088. -# Compile-time system search path for libraries
  23089. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23090. +if test "$found" = "1" ; then
  23091. + GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS ecc.lo"
  23092. -# Run-time system search path for libraries
  23093. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23094. +$as_echo "#define USE_ECC 1" >>confdefs.h
  23095. -# Fix the shell variable \$srcfile for the compiler.
  23096. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  23097. +fi
  23098. -# Set to yes if exported symbols are required.
  23099. -always_export_symbols=$always_export_symbols_GCJ
  23100. -# The commands to list exported symbols.
  23101. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  23102. +name=crc
  23103. +list=$enabled_digests
  23104. +found=0
  23105. -# The commands to extract the exported symbol list from a shared archive.
  23106. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23107. +for n in $list; do
  23108. + if test "x$name" = "x$n"; then
  23109. + found=1
  23110. + fi
  23111. +done
  23112. -# Symbols that should not be listed in the preloaded symbols.
  23113. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  23114. +if test "$found" = "1" ; then
  23115. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
  23116. -# Symbols that must always be exported.
  23117. -include_expsyms=$lt_include_expsyms_GCJ
  23118. +$as_echo "#define USE_CRC 1" >>confdefs.h
  23119. -# ### END LIBTOOL TAG CONFIG: $tagname
  23120. +fi
  23121. -__EOF__
  23122. +name=md4
  23123. +list=$enabled_digests
  23124. +found=0
  23125. -else
  23126. - # If there is no Makefile yet, we rely on a make rule to execute
  23127. - # `config.status --recheck' to rerun these tests and create the
  23128. - # libtool script then.
  23129. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  23130. - if test -f "$ltmain_in"; then
  23131. - test -f Makefile && make "$ltmain"
  23132. +for n in $list; do
  23133. + if test "x$name" = "x$n"; then
  23134. + found=1
  23135. fi
  23136. +done
  23137. +
  23138. +if test "$found" = "1" ; then
  23139. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
  23140. +
  23141. +$as_echo "#define USE_MD4 1" >>confdefs.h
  23142. +
  23143. fi
  23144. -ac_ext=c
  23145. -ac_cpp='$CPP $CPPFLAGS'
  23146. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23147. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23148. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23149. +name=md5
  23150. +list=$enabled_digests
  23151. +found=0
  23152. -CC="$lt_save_CC"
  23153. +for n in $list; do
  23154. + if test "x$name" = "x$n"; then
  23155. + found=1
  23156. + fi
  23157. +done
  23158. - else
  23159. - tagname=""
  23160. - fi
  23161. - ;;
  23162. +if test "$found" = "1" ; then
  23163. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
  23164. - RC)
  23165. +$as_echo "#define USE_MD5 1" >>confdefs.h
  23166. +fi
  23167. -# Source file extension for RC test sources.
  23168. -ac_ext=rc
  23169. -# Object file extension for compiled RC test sources.
  23170. -objext=o
  23171. -objext_RC=$objext
  23172. +name=sha256
  23173. +list=$enabled_digests
  23174. +found=0
  23175. -# Code to be used in simple compile tests
  23176. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  23177. +for n in $list; do
  23178. + if test "x$name" = "x$n"; then
  23179. + found=1
  23180. + fi
  23181. +done
  23182. -# Code to be used in simple link tests
  23183. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  23184. +if test "$found" = "1" ; then
  23185. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
  23186. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  23187. +$as_echo "#define USE_SHA256 1" >>confdefs.h
  23188. -# If no C compiler was specified, use CC.
  23189. -LTCC=${LTCC-"$CC"}
  23190. +fi
  23191. -# Allow CC to be a program name with arguments.
  23192. -compiler=$CC
  23193. +name=sha512
  23194. +list=$enabled_digests
  23195. +found=0
  23196. -# Allow CC to be a program name with arguments.
  23197. -lt_save_CC="$CC"
  23198. -CC=${RC-"windres"}
  23199. -compiler=$CC
  23200. -compiler_RC=$CC
  23201. -lt_cv_prog_compiler_c_o_RC=yes
  23202. +for n in $list; do
  23203. + if test "x$name" = "x$n"; then
  23204. + found=1
  23205. + fi
  23206. +done
  23207. -# The else clause should only fire when bootstrapping the
  23208. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  23209. -# with your package, and you will get complaints that there are
  23210. -# no rules to generate ltmain.sh.
  23211. -if test -f "$ltmain"; then
  23212. - # See if we are running on zsh, and set the options which allow our commands through
  23213. - # without removal of \ escapes.
  23214. - if test -n "${ZSH_VERSION+set}" ; then
  23215. - setopt NO_GLOB_SUBST
  23216. - fi
  23217. - # Now quote all the things that may contain metacharacters while being
  23218. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  23219. - # variables and quote the copies for generation of the libtool script.
  23220. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  23221. - SED SHELL STRIP \
  23222. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  23223. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  23224. - deplibs_check_method reload_flag reload_cmds need_locks \
  23225. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  23226. - lt_cv_sys_global_symbol_to_c_name_address \
  23227. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  23228. - old_postinstall_cmds old_postuninstall_cmds \
  23229. - compiler_RC \
  23230. - CC_RC \
  23231. - LD_RC \
  23232. - lt_prog_compiler_wl_RC \
  23233. - lt_prog_compiler_pic_RC \
  23234. - lt_prog_compiler_static_RC \
  23235. - lt_prog_compiler_no_builtin_flag_RC \
  23236. - export_dynamic_flag_spec_RC \
  23237. - thread_safe_flag_spec_RC \
  23238. - whole_archive_flag_spec_RC \
  23239. - enable_shared_with_static_runtimes_RC \
  23240. - old_archive_cmds_RC \
  23241. - old_archive_from_new_cmds_RC \
  23242. - predep_objects_RC \
  23243. - postdep_objects_RC \
  23244. - predeps_RC \
  23245. - postdeps_RC \
  23246. - compiler_lib_search_path_RC \
  23247. - archive_cmds_RC \
  23248. - archive_expsym_cmds_RC \
  23249. - postinstall_cmds_RC \
  23250. - postuninstall_cmds_RC \
  23251. - old_archive_from_expsyms_cmds_RC \
  23252. - allow_undefined_flag_RC \
  23253. - no_undefined_flag_RC \
  23254. - export_symbols_cmds_RC \
  23255. - hardcode_libdir_flag_spec_RC \
  23256. - hardcode_libdir_flag_spec_ld_RC \
  23257. - hardcode_libdir_separator_RC \
  23258. - hardcode_automatic_RC \
  23259. - module_cmds_RC \
  23260. - module_expsym_cmds_RC \
  23261. - lt_cv_prog_compiler_c_o_RC \
  23262. - exclude_expsyms_RC \
  23263. - include_expsyms_RC; do
  23264. -
  23265. - case $var in
  23266. - old_archive_cmds_RC | \
  23267. - old_archive_from_new_cmds_RC | \
  23268. - archive_cmds_RC | \
  23269. - archive_expsym_cmds_RC | \
  23270. - module_cmds_RC | \
  23271. - module_expsym_cmds_RC | \
  23272. - old_archive_from_expsyms_cmds_RC | \
  23273. - export_symbols_cmds_RC | \
  23274. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  23275. - postinstall_cmds | postuninstall_cmds | \
  23276. - old_postinstall_cmds | old_postuninstall_cmds | \
  23277. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  23278. - # Double-quote double-evaled strings.
  23279. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  23280. - ;;
  23281. - *)
  23282. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  23283. - ;;
  23284. - esac
  23285. - done
  23286. +if test "$found" = "1" ; then
  23287. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
  23288. - case $lt_echo in
  23289. - *'\$0 --fallback-echo"')
  23290. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  23291. - ;;
  23292. - esac
  23293. +$as_echo "#define USE_SHA512 1" >>confdefs.h
  23294. -cfgfile="$ofile"
  23295. +fi
  23296. - cat <<__EOF__ >> "$cfgfile"
  23297. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  23298. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23299. +name=tiger
  23300. +list=$enabled_digests
  23301. +found=0
  23302. -# Shell to use when invoking shell scripts.
  23303. -SHELL=$lt_SHELL
  23304. +for n in $list; do
  23305. + if test "x$name" = "x$n"; then
  23306. + found=1
  23307. + fi
  23308. +done
  23309. -# Whether or not to build shared libraries.
  23310. -build_libtool_libs=$enable_shared
  23311. +if test "$found" = "1" ; then
  23312. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
  23313. -# Whether or not to build static libraries.
  23314. -build_old_libs=$enable_static
  23315. +$as_echo "#define USE_TIGER 1" >>confdefs.h
  23316. -# Whether or not to add -lc for building shared libraries.
  23317. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  23318. +fi
  23319. -# Whether or not to disallow shared libs when runtime libs are static
  23320. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  23321. -# Whether or not to optimize for fast installation.
  23322. -fast_install=$enable_fast_install
  23323. +name=whirlpool
  23324. +list=$enabled_digests
  23325. +found=0
  23326. -# The host system.
  23327. -host_alias=$host_alias
  23328. -host=$host
  23329. +for n in $list; do
  23330. + if test "x$name" = "x$n"; then
  23331. + found=1
  23332. + fi
  23333. +done
  23334. -# An echo program that does not interpret backslashes.
  23335. -echo=$lt_echo
  23336. +if test "$found" = "1" ; then
  23337. + GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
  23338. -# The archiver.
  23339. -AR=$lt_AR
  23340. -AR_FLAGS=$lt_AR_FLAGS
  23341. +$as_echo "#define USE_WHIRLPOOL 1" >>confdefs.h
  23342. -# A C compiler.
  23343. -LTCC=$lt_LTCC
  23344. +fi
  23345. -# A language-specific compiler.
  23346. -CC=$lt_compiler_RC
  23347. +# rmd160 and sha1 should be included always.
  23348. +GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo sha1.lo"
  23349. -# Is the compiler the GNU C compiler?
  23350. -with_gcc=$GCC_RC
  23351. +$as_echo "#define USE_RMD160 1" >>confdefs.h
  23352. -# An ERE matcher.
  23353. -EGREP=$lt_EGREP
  23354. -# The linker used to build libraries.
  23355. -LD=$lt_LD_RC
  23356. +$as_echo "#define USE_SHA1 1" >>confdefs.h
  23357. -# Whether we need hard or soft links.
  23358. -LN_S=$lt_LN_S
  23359. -# A BSD-compatible nm program.
  23360. -NM=$lt_NM
  23361. -# A symbol stripping program
  23362. -STRIP=$lt_STRIP
  23363. +name=linux
  23364. +list=$random_modules
  23365. +found=0
  23366. -# Used to examine libraries when file_magic_cmd begins "file"
  23367. -MAGIC_CMD=$MAGIC_CMD
  23368. +for n in $list; do
  23369. + if test "x$name" = "x$n"; then
  23370. + found=1
  23371. + fi
  23372. +done
  23373. -# Used on cygwin: DLL creation program.
  23374. -DLLTOOL="$DLLTOOL"
  23375. +if test "$found" = "1" ; then
  23376. + GCRYPT_RANDOM="$GCRYPT_RANDOM rndlinux.lo"
  23377. -# Used on cygwin: object dumper.
  23378. -OBJDUMP="$OBJDUMP"
  23379. +$as_echo "#define USE_RNDLINUX 1" >>confdefs.h
  23380. -# Used on cygwin: assembler.
  23381. -AS="$AS"
  23382. +fi
  23383. -# The name of the directory that contains temporary libtool files.
  23384. -objdir=$objdir
  23385. -# How to create reloadable object files.
  23386. -reload_flag=$lt_reload_flag
  23387. -reload_cmds=$lt_reload_cmds
  23388. +name=unix
  23389. +list=$random_modules
  23390. +found=0
  23391. -# How to pass a linker flag through the compiler.
  23392. -wl=$lt_lt_prog_compiler_wl_RC
  23393. +for n in $list; do
  23394. + if test "x$name" = "x$n"; then
  23395. + found=1
  23396. + fi
  23397. +done
  23398. -# Object file suffix (normally "o").
  23399. -objext="$ac_objext"
  23400. +if test "$found" = "1" ; then
  23401. + GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
  23402. -# Old archive suffix (normally "a").
  23403. -libext="$libext"
  23404. +$as_echo "#define USE_RNDUNIX 1" >>confdefs.h
  23405. -# Shared library suffix (normally ".so").
  23406. -shrext_cmds='$shrext_cmds'
  23407. + print_egd_notice=yes
  23408. +fi
  23409. -# Executable file suffix (normally "").
  23410. -exeext="$exeext"
  23411. -# Additional compiler flags for building library objects.
  23412. -pic_flag=$lt_lt_prog_compiler_pic_RC
  23413. -pic_mode=$pic_mode
  23414. +name=egd
  23415. +list=$random_modules
  23416. +found=0
  23417. -# What is the maximum length of a command?
  23418. -max_cmd_len=$lt_cv_sys_max_cmd_len
  23419. +for n in $list; do
  23420. + if test "x$name" = "x$n"; then
  23421. + found=1
  23422. + fi
  23423. +done
  23424. -# Does compiler simultaneously support -c and -o options?
  23425. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  23426. +if test "$found" = "1" ; then
  23427. + GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
  23428. -# Must we lock files when doing compilation ?
  23429. -need_locks=$lt_need_locks
  23430. +$as_echo "#define USE_RNDEGD 1" >>confdefs.h
  23431. -# Do we need the lib prefix for modules?
  23432. -need_lib_prefix=$need_lib_prefix
  23433. +fi
  23434. -# Do we need a version for libraries?
  23435. -need_version=$need_version
  23436. -# Whether dlopen is supported.
  23437. -dlopen_support=$enable_dlopen
  23438. +name=w32
  23439. +list=$random_modules
  23440. +found=0
  23441. -# Whether dlopen of programs is supported.
  23442. -dlopen_self=$enable_dlopen_self
  23443. +for n in $list; do
  23444. + if test "x$name" = "x$n"; then
  23445. + found=1
  23446. + fi
  23447. +done
  23448. -# Whether dlopen of statically linked programs is supported.
  23449. -dlopen_self_static=$enable_dlopen_self_static
  23450. +if test "$found" = "1" ; then
  23451. + GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
  23452. -# Compiler flag to prevent dynamic linking.
  23453. -link_static_flag=$lt_lt_prog_compiler_static_RC
  23454. +$as_echo "#define USE_RNDW32 1" >>confdefs.h
  23455. -# Compiler flag to turn off builtin functions.
  23456. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  23457. +fi
  23458. -# Compiler flag to allow reflexive dlopens.
  23459. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  23460. -# Compiler flag to generate shared objects directly from archives.
  23461. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  23462. -# Compiler flag to generate thread-safe objects.
  23463. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  23464. -# Library versioning type.
  23465. -version_type=$version_type
  23466. -# Format of library name prefix.
  23467. -libname_spec=$lt_libname_spec
  23468. -# List of archive names. First name is the real one, the rest are links.
  23469. -# The last name is the one that the linker finds with -lNAME.
  23470. -library_names_spec=$lt_library_names_spec
  23471. +LIBGCRYPT_CIPHERS=$enabled_ciphers
  23472. -# The coded name of the library, if different from the real name.
  23473. -soname_spec=$lt_soname_spec
  23474. +LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
  23475. -# Commands used to build and install an old-style archive.
  23476. -RANLIB=$lt_RANLIB
  23477. -old_archive_cmds=$lt_old_archive_cmds_RC
  23478. -old_postinstall_cmds=$lt_old_postinstall_cmds
  23479. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23480. +LIBGCRYPT_DIGESTS=$enabled_digests
  23481. -# Create an old-style archive from a shared archive.
  23482. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  23483. -# Create a temporary old-style archive to link instead of a shared archive.
  23484. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  23485. +# For printing the configuration we need a colon separated list of
  23486. +# algorithm names.
  23487. +tmp=`echo "$enabled_ciphers" | tr ' ' : `
  23488. -# Commands used to build and install a shared archive.
  23489. -archive_cmds=$lt_archive_cmds_RC
  23490. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  23491. -postinstall_cmds=$lt_postinstall_cmds
  23492. -postuninstall_cmds=$lt_postuninstall_cmds
  23493. +cat >>confdefs.h <<_ACEOF
  23494. +#define LIBGCRYPT_CIPHERS "$tmp"
  23495. +_ACEOF
  23496. -# Commands used to build a loadable module (assumed same as above if empty)
  23497. -module_cmds=$lt_module_cmds_RC
  23498. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  23499. +tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
  23500. -# Commands to strip libraries.
  23501. -old_striplib=$lt_old_striplib
  23502. -striplib=$lt_striplib
  23503. +cat >>confdefs.h <<_ACEOF
  23504. +#define LIBGCRYPT_PUBKEY_CIPHERS "$tmp"
  23505. +_ACEOF
  23506. -# Dependencies to place before the objects being linked to create a
  23507. -# shared library.
  23508. -predep_objects=$lt_predep_objects_RC
  23509. -
  23510. -# Dependencies to place after the objects being linked to create a
  23511. -# shared library.
  23512. -postdep_objects=$lt_postdep_objects_RC
  23513. -
  23514. -# Dependencies to place before the objects being linked to create a
  23515. -# shared library.
  23516. -predeps=$lt_predeps_RC
  23517. -
  23518. -# Dependencies to place after the objects being linked to create a
  23519. -# shared library.
  23520. -postdeps=$lt_postdeps_RC
  23521. -
  23522. -# The library search path used internally by the compiler when linking
  23523. -# a shared library.
  23524. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  23525. +tmp=`echo "$enabled_digests" | tr ' ' : `
  23526. -# Method to check whether dependent libraries are shared objects.
  23527. -deplibs_check_method=$lt_deplibs_check_method
  23528. +cat >>confdefs.h <<_ACEOF
  23529. +#define LIBGCRYPT_DIGESTS "$tmp"
  23530. +_ACEOF
  23531. -# Command to use when deplibs_check_method == file_magic.
  23532. -file_magic_cmd=$lt_file_magic_cmd
  23533. -# Flag that allows shared libraries with undefined symbols to be built.
  23534. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  23535. -# Flag that forces no undefined symbols.
  23536. -no_undefined_flag=$lt_no_undefined_flag_RC
  23537. -# Commands used to finish a libtool library installation in a directory.
  23538. -finish_cmds=$lt_finish_cmds
  23539. +# Generate extended version information for W32.
  23540. +if test "$have_w32_system" = yes; then
  23541. + BUILD_TIMESTAMP=`date --iso-8601=minutes`
  23542. + BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
  23543. + BUILD_FILEVERSION="${BUILD_FILEVERSION}${BUILD_REVISION}"
  23544. +fi
  23545. -# Same as above, but a single script fragment to be evaled but not shown.
  23546. -finish_eval=$lt_finish_eval
  23547. -# Take the output of nm and produce a listing of raw symbols and C names.
  23548. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23549. -# Transform the output of nm in a proper C declaration
  23550. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23551. -# Transform the output of nm in a C name address pair
  23552. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23553. +cat >>confdefs.h <<_ACEOF
  23554. +#define BUILD_REVISION "$BUILD_REVISION"
  23555. +_ACEOF
  23556. -# This is the shared library runtime path variable.
  23557. -runpath_var=$runpath_var
  23558. -# This is the shared library path variable.
  23559. -shlibpath_var=$shlibpath_var
  23560. -# Is shlibpath searched before the hard-coded library search path?
  23561. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23562. -# How to hardcode a shared library path into an executable.
  23563. -hardcode_action=$hardcode_action_RC
  23564. +# And create the files.
  23565. +ac_config_files="$ac_config_files Makefile m4/Makefile mpi/Makefile cipher/Makefile random/Makefile doc/Makefile src/Makefile src/gcrypt.h src/libgcrypt-config src/versioninfo.rc tests/Makefile"
  23566. -# Whether we should hardcode library paths into libraries.
  23567. -hardcode_into_libs=$hardcode_into_libs
  23568. -
  23569. -# Flag to hardcode \$libdir into a binary during linking.
  23570. -# This must work even if \$libdir does not exist.
  23571. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  23572. +cat >confcache <<\_ACEOF
  23573. +# This file is a shell script that caches the results of configure
  23574. +# tests run on this system so they can be shared between configure
  23575. +# scripts and configure runs, see configure's option --config-cache.
  23576. +# It is not useful on other systems. If it contains results you don't
  23577. +# want to keep, you may remove or edit it.
  23578. +#
  23579. +# config.status only pays attention to the cache file if you give it
  23580. +# the --recheck option to rerun configure.
  23581. +#
  23582. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  23583. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  23584. +# following values.
  23585. -# If ld is used when linking, flag to hardcode \$libdir into
  23586. -# a binary during linking. This must work even if \$libdir does
  23587. -# not exist.
  23588. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  23589. -
  23590. -# Whether we need a single -rpath flag with a separated argument.
  23591. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  23592. -
  23593. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  23594. -# resulting binary.
  23595. -hardcode_direct=$hardcode_direct_RC
  23596. -
  23597. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  23598. -# resulting binary.
  23599. -hardcode_minus_L=$hardcode_minus_L_RC
  23600. -
  23601. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  23602. -# the resulting binary.
  23603. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  23604. -
  23605. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  23606. -# and all subsequent libraries and executables linked against it.
  23607. -hardcode_automatic=$hardcode_automatic_RC
  23608. +_ACEOF
  23609. -# Variables whose values should be saved in libtool wrapper scripts and
  23610. -# restored at relink time.
  23611. -variables_saved_for_relink="$variables_saved_for_relink"
  23612. +# The following way of writing the cache mishandles newlines in values,
  23613. +# but we know of no workaround that is simple, portable, and efficient.
  23614. +# So, we kill variables containing newlines.
  23615. +# Ultrix sh set writes to stderr and can't be redirected directly,
  23616. +# and sets the high bit in the cache file unless we assign to the vars.
  23617. +(
  23618. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  23619. + eval ac_val=\$$ac_var
  23620. + case $ac_val in #(
  23621. + *${as_nl}*)
  23622. + case $ac_var in #(
  23623. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  23624. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  23625. + esac
  23626. + case $ac_var in #(
  23627. + _ | IFS | as_nl) ;; #(
  23628. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  23629. + *) { eval $ac_var=; unset $ac_var;} ;;
  23630. + esac ;;
  23631. + esac
  23632. + done
  23633. -# Whether libtool must link a program against all its dependency libraries.
  23634. -link_all_deplibs=$link_all_deplibs_RC
  23635. + (set) 2>&1 |
  23636. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  23637. + *${as_nl}ac_space=\ *)
  23638. + # `set' does not quote correctly, so add quotes: double-quote
  23639. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  23640. + sed -n \
  23641. + "s/'/'\\\\''/g;
  23642. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  23643. + ;; #(
  23644. + *)
  23645. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  23646. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  23647. + ;;
  23648. + esac |
  23649. + sort
  23650. +) |
  23651. + sed '
  23652. + /^ac_cv_env_/b end
  23653. + t clear
  23654. + :clear
  23655. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  23656. + t end
  23657. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  23658. + :end' >>confcache
  23659. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  23660. + if test -w "$cache_file"; then
  23661. + test "x$cache_file" != "x/dev/null" &&
  23662. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  23663. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  23664. + cat confcache >$cache_file
  23665. + else
  23666. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  23667. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  23668. + fi
  23669. +fi
  23670. +rm -f confcache
  23671. -# Compile-time system search path for libraries
  23672. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23673. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  23674. +# Let make expand exec_prefix.
  23675. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  23676. -# Run-time system search path for libraries
  23677. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23678. +DEFS=-DHAVE_CONFIG_H
  23679. -# Fix the shell variable \$srcfile for the compiler.
  23680. -fix_srcfile_path="$fix_srcfile_path_RC"
  23681. +ac_libobjs=
  23682. +ac_ltlibobjs=
  23683. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  23684. + # 1. Remove the extension, and $U if already installed.
  23685. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  23686. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  23687. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  23688. + # will be set to the directory where LIBOBJS objects are built.
  23689. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  23690. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  23691. +done
  23692. +LIBOBJS=$ac_libobjs
  23693. -# Set to yes if exported symbols are required.
  23694. -always_export_symbols=$always_export_symbols_RC
  23695. +LTLIBOBJS=$ac_ltlibobjs
  23696. -# The commands to list exported symbols.
  23697. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  23698. -# The commands to extract the exported symbol list from a shared archive.
  23699. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23700. + if test -n "$EXEEXT"; then
  23701. + am__EXEEXT_TRUE=
  23702. + am__EXEEXT_FALSE='#'
  23703. +else
  23704. + am__EXEEXT_TRUE='#'
  23705. + am__EXEEXT_FALSE=
  23706. +fi
  23707. -# Symbols that should not be listed in the preloaded symbols.
  23708. -exclude_expsyms=$lt_exclude_expsyms_RC
  23709. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  23710. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  23711. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23712. +fi
  23713. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  23714. + as_fn_error "conditional \"AMDEP\" was never defined.
  23715. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23716. +fi
  23717. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  23718. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  23719. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23720. +fi
  23721. +if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  23722. + as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  23723. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23724. +fi
  23725. +if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
  23726. + as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
  23727. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23728. +fi
  23729. -# Symbols that must always be exported.
  23730. -include_expsyms=$lt_include_expsyms_RC
  23731. +if test -z "${USE_RANDOM_DAEMON_TRUE}" && test -z "${USE_RANDOM_DAEMON_FALSE}"; then
  23732. + as_fn_error "conditional \"USE_RANDOM_DAEMON\" was never defined.
  23733. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23734. +fi
  23735. +if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
  23736. + as_fn_error "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
  23737. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23738. +fi
  23739. +if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  23740. + as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  23741. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23742. +fi
  23743. +if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
  23744. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
  23745. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23746. +fi
  23747. +if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
  23748. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
  23749. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23750. +fi
  23751. +if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
  23752. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
  23753. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23754. +fi
  23755. +if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
  23756. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
  23757. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23758. +fi
  23759. +if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
  23760. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
  23761. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23762. +fi
  23763. +if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
  23764. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
  23765. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23766. +fi
  23767. +if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
  23768. + as_fn_error "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
  23769. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23770. +fi
  23771. +if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
  23772. + as_fn_error "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
  23773. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23774. +fi
  23775. +if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
  23776. + as_fn_error "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
  23777. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23778. +fi
  23779. +if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
  23780. + as_fn_error "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
  23781. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23782. +fi
  23783. +if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
  23784. + as_fn_error "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
  23785. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23786. +fi
  23787. +if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
  23788. + as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
  23789. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23790. +fi
  23791. +if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
  23792. + as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
  23793. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23794. +fi
  23795. +if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
  23796. + as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
  23797. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23798. +fi
  23799. +if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
  23800. + as_fn_error "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
  23801. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23802. +fi
  23803. +if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
  23804. + as_fn_error "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
  23805. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23806. +fi
  23807. +if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
  23808. + as_fn_error "conditional \"MPI_MOD_C_UDIV\" was never defined.
  23809. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23810. +fi
  23811. +if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
  23812. + as_fn_error "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
  23813. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23814. +fi
  23815. +if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  23816. + as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
  23817. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  23818. +fi
  23819. -# ### END LIBTOOL TAG CONFIG: $tagname
  23820. +: ${CONFIG_STATUS=./config.status}
  23821. +ac_write_fail=0
  23822. +ac_clean_files_save=$ac_clean_files
  23823. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  23824. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  23825. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  23826. +as_write_fail=0
  23827. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  23828. +#! $SHELL
  23829. +# Generated by $as_me.
  23830. +# Run this file to recreate the current configuration.
  23831. +# Compiler output produced by configure, useful for debugging
  23832. +# configure, is in config.log if it exists.
  23833. -__EOF__
  23834. +debug=false
  23835. +ac_cs_recheck=false
  23836. +ac_cs_silent=false
  23837. +SHELL=\${CONFIG_SHELL-$SHELL}
  23838. +export SHELL
  23839. +_ASEOF
  23840. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  23841. +## -------------------- ##
  23842. +## M4sh Initialization. ##
  23843. +## -------------------- ##
  23844. +# Be more Bourne compatible
  23845. +DUALCASE=1; export DUALCASE # for MKS sh
  23846. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  23847. + emulate sh
  23848. + NULLCMD=:
  23849. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23850. + # is contrary to our usage. Disable this feature.
  23851. + alias -g '${1+"$@"}'='"$@"'
  23852. + setopt NO_GLOB_SUBST
  23853. else
  23854. - # If there is no Makefile yet, we rely on a make rule to execute
  23855. - # `config.status --recheck' to rerun these tests and create the
  23856. - # libtool script then.
  23857. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  23858. - if test -f "$ltmain_in"; then
  23859. - test -f Makefile && make "$ltmain"
  23860. - fi
  23861. + case `(set -o) 2>/dev/null` in #(
  23862. + *posix*) :
  23863. + set -o posix ;; #(
  23864. + *) :
  23865. + ;;
  23866. +esac
  23867. fi
  23868. -ac_ext=c
  23869. -ac_cpp='$CPP $CPPFLAGS'
  23870. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23871. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23872. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23873. -
  23874. -CC="$lt_save_CC"
  23875. -
  23876. - ;;
  23877. -
  23878. - *)
  23879. - as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
  23880. - ;;
  23881. - esac
  23882. -
  23883. - # Append the new tag name to the list of available tags.
  23884. - if test -n "$tagname" ; then
  23885. - available_tags="$available_tags $tagname"
  23886. - fi
  23887. - fi
  23888. - done
  23889. - IFS="$lt_save_ifs"
  23890. -
  23891. - # Now substitute the updated list of available tags.
  23892. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  23893. - mv "${ofile}T" "$ofile"
  23894. - chmod +x "$ofile"
  23895. +as_nl='
  23896. +'
  23897. +export as_nl
  23898. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  23899. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  23900. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  23901. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  23902. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  23903. +# but without wasting forks for bash or zsh.
  23904. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  23905. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  23906. + as_echo='print -r --'
  23907. + as_echo_n='print -rn --'
  23908. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  23909. + as_echo='printf %s\n'
  23910. + as_echo_n='printf %s'
  23911. +else
  23912. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  23913. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  23914. + as_echo_n='/usr/ucb/echo -n'
  23915. else
  23916. - rm -f "${ofile}T"
  23917. - as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
  23918. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  23919. + as_echo_n_body='eval
  23920. + arg=$1;
  23921. + case $arg in #(
  23922. + *"$as_nl"*)
  23923. + expr "X$arg" : "X\\(.*\\)$as_nl";
  23924. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  23925. + esac;
  23926. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  23927. + '
  23928. + export as_echo_n_body
  23929. + as_echo_n='sh -c $as_echo_n_body as_echo'
  23930. fi
  23931. + export as_echo_body
  23932. + as_echo='sh -c $as_echo_body as_echo'
  23933. fi
  23934. +# The user is always right.
  23935. +if test "${PATH_SEPARATOR+set}" != set; then
  23936. + PATH_SEPARATOR=:
  23937. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  23938. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  23939. + PATH_SEPARATOR=';'
  23940. + }
  23941. +fi
  23942. -# This can be used to rebuild libtool when needed
  23943. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  23944. -
  23945. -# Always use our own libtool.
  23946. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  23947. -
  23948. -# Prevent multiple expansion
  23949. +# IFS
  23950. +# We need space, tab and new line, in precisely that order. Quoting is
  23951. +# there to prevent editors from complaining about space-tab.
  23952. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  23953. +# splitting by setting IFS to empty value.)
  23954. +IFS=" "" $as_nl"
  23955. +# Find who we are. Look in the path if we contain no directory separator.
  23956. +case $0 in #((
  23957. + *[\\/]* ) as_myself=$0 ;;
  23958. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23959. +for as_dir in $PATH
  23960. +do
  23961. + IFS=$as_save_IFS
  23962. + test -z "$as_dir" && as_dir=.
  23963. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  23964. + done
  23965. +IFS=$as_save_IFS
  23966. + ;;
  23967. +esac
  23968. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  23969. +# in which case we are not to be found in the path.
  23970. +if test "x$as_myself" = x; then
  23971. + as_myself=$0
  23972. +fi
  23973. +if test ! -f "$as_myself"; then
  23974. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  23975. + exit 1
  23976. +fi
  23977. +# Unset variables that we do not need and which cause bugs (e.g. in
  23978. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  23979. +# suppresses any "Segmentation fault" message there. '((' could
  23980. +# trigger a bug in pdksh 5.2.14.
  23981. +for as_var in BASH_ENV ENV MAIL MAILPATH
  23982. +do eval test x\${$as_var+set} = xset \
  23983. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  23984. +done
  23985. +PS1='$ '
  23986. +PS2='> '
  23987. +PS4='+ '
  23988. +# NLS nuisances.
  23989. +LC_ALL=C
  23990. +export LC_ALL
  23991. +LANGUAGE=C
  23992. +export LANGUAGE
  23993. +# CDPATH.
  23994. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  23995. +# as_fn_error ERROR [LINENO LOG_FD]
  23996. +# ---------------------------------
  23997. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  23998. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  23999. +# script with status $?, using 1 if that was 0.
  24000. +as_fn_error ()
  24001. +{
  24002. + as_status=$?; test $as_status -eq 0 && as_status=1
  24003. + if test "$3"; then
  24004. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  24005. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  24006. + fi
  24007. + $as_echo "$as_me: error: $1" >&2
  24008. + as_fn_exit $as_status
  24009. +} # as_fn_error
  24010. +# as_fn_set_status STATUS
  24011. +# -----------------------
  24012. +# Set $? to STATUS, without forking.
  24013. +as_fn_set_status ()
  24014. +{
  24015. + return $1
  24016. +} # as_fn_set_status
  24017. +# as_fn_exit STATUS
  24018. +# -----------------
  24019. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  24020. +as_fn_exit ()
  24021. +{
  24022. + set +e
  24023. + as_fn_set_status $1
  24024. + exit $1
  24025. +} # as_fn_exit
  24026. +# as_fn_unset VAR
  24027. +# ---------------
  24028. +# Portably unset VAR.
  24029. +as_fn_unset ()
  24030. +{
  24031. + { eval $1=; unset $1;}
  24032. +}
  24033. +as_unset=as_fn_unset
  24034. +# as_fn_append VAR VALUE
  24035. +# ----------------------
  24036. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  24037. +# advantage of any shell optimizations that allow amortized linear growth over
  24038. +# repeated appends, instead of the typical quadratic growth present in naive
  24039. +# implementations.
  24040. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  24041. + eval 'as_fn_append ()
  24042. + {
  24043. + eval $1+=\$2
  24044. + }'
  24045. +else
  24046. + as_fn_append ()
  24047. + {
  24048. + eval $1=\$$1\$2
  24049. + }
  24050. +fi # as_fn_append
  24051. +# as_fn_arith ARG...
  24052. +# ------------------
  24053. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  24054. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  24055. +# must be portable across $(()) and expr.
  24056. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  24057. + eval 'as_fn_arith ()
  24058. + {
  24059. + as_val=$(( $* ))
  24060. + }'
  24061. +else
  24062. + as_fn_arith ()
  24063. + {
  24064. + as_val=`expr "$@" || test $? -eq 1`
  24065. + }
  24066. +fi # as_fn_arith
  24067. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  24068. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  24069. + as_expr=expr
  24070. +else
  24071. + as_expr=false
  24072. +fi
  24073. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  24074. + as_basename=basename
  24075. +else
  24076. + as_basename=false
  24077. +fi
  24078. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  24079. + as_dirname=dirname
  24080. +else
  24081. + as_dirname=false
  24082. +fi
  24083. +as_me=`$as_basename -- "$0" ||
  24084. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  24085. + X"$0" : 'X\(//\)$' \| \
  24086. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  24087. +$as_echo X/"$0" |
  24088. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  24089. + s//\1/
  24090. + q
  24091. + }
  24092. + /^X\/\(\/\/\)$/{
  24093. + s//\1/
  24094. + q
  24095. + }
  24096. + /^X\/\(\/\).*/{
  24097. + s//\1/
  24098. + q
  24099. + }
  24100. + s/.*/./; q'`
  24101. +# Avoid depending upon Character Ranges.
  24102. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  24103. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  24104. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  24105. +as_cr_digits='0123456789'
  24106. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  24107. +ECHO_C= ECHO_N= ECHO_T=
  24108. +case `echo -n x` in #(((((
  24109. +-n*)
  24110. + case `echo 'xy\c'` in
  24111. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  24112. + xy) ECHO_C='\c';;
  24113. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  24114. + ECHO_T=' ';;
  24115. + esac;;
  24116. +*)
  24117. + ECHO_N='-n';;
  24118. +esac
  24119. +rm -f conf$$ conf$$.exe conf$$.file
  24120. +if test -d conf$$.dir; then
  24121. + rm -f conf$$.dir/conf$$.file
  24122. +else
  24123. + rm -f conf$$.dir
  24124. + mkdir conf$$.dir 2>/dev/null
  24125. +fi
  24126. +if (echo >conf$$.file) 2>/dev/null; then
  24127. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  24128. + as_ln_s='ln -s'
  24129. + # ... but there are two gotchas:
  24130. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  24131. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  24132. + # In both cases, we have to default to `cp -p'.
  24133. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  24134. + as_ln_s='cp -p'
  24135. + elif ln conf$$.file conf$$ 2>/dev/null; then
  24136. + as_ln_s=ln
  24137. + else
  24138. + as_ln_s='cp -p'
  24139. + fi
  24140. +else
  24141. + as_ln_s='cp -p'
  24142. +fi
  24143. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  24144. +rmdir conf$$.dir 2>/dev/null
  24145. -##########################
  24146. -## General definitions. ##
  24147. -##########################
  24148. -
  24149. -# Used by libgcrypt-config
  24150. -LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
  24151. -LIBGCRYPT_CONFIG_CFLAGS=""
  24152. -
  24153. -# Definitions for symmetric ciphers.
  24154. -available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
  24155. -available_ciphers="$available_ciphers camellia"
  24156. -enabled_ciphers=""
  24157. +# as_fn_mkdir_p
  24158. +# -------------
  24159. +# Create "$as_dir" as a directory, including parents if necessary.
  24160. +as_fn_mkdir_p ()
  24161. +{
  24162. -# Definitions for public-key ciphers.
  24163. -available_pubkey_ciphers="dsa elgamal rsa ecc"
  24164. -enabled_pubkey_ciphers=""
  24165. + case $as_dir in #(
  24166. + -*) as_dir=./$as_dir;;
  24167. + esac
  24168. + test -d "$as_dir" || eval $as_mkdir_p || {
  24169. + as_dirs=
  24170. + while :; do
  24171. + case $as_dir in #(
  24172. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  24173. + *) as_qdir=$as_dir;;
  24174. + esac
  24175. + as_dirs="'$as_qdir' $as_dirs"
  24176. + as_dir=`$as_dirname -- "$as_dir" ||
  24177. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  24178. + X"$as_dir" : 'X\(//\)[^/]' \| \
  24179. + X"$as_dir" : 'X\(//\)$' \| \
  24180. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  24181. +$as_echo X"$as_dir" |
  24182. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  24183. + s//\1/
  24184. + q
  24185. + }
  24186. + /^X\(\/\/\)[^/].*/{
  24187. + s//\1/
  24188. + q
  24189. + }
  24190. + /^X\(\/\/\)$/{
  24191. + s//\1/
  24192. + q
  24193. + }
  24194. + /^X\(\/\).*/{
  24195. + s//\1/
  24196. + q
  24197. + }
  24198. + s/.*/./; q'`
  24199. + test -d "$as_dir" && break
  24200. + done
  24201. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  24202. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  24203. -# Definitions for message digests.
  24204. -available_digests="crc md4 md5 rmd160 sha1 sha256"
  24205. -available_digests_64="sha512 tiger whirlpool"
  24206. -enabled_digests=""
  24207. -# Definitions for random modules.
  24208. -available_random_modules="linux egd unix"
  24209. -auto_random_modules="$available_random_modules"
  24210. +} # as_fn_mkdir_p
  24211. +if mkdir -p . 2>/dev/null; then
  24212. + as_mkdir_p='mkdir -p "$as_dir"'
  24213. +else
  24214. + test -d ./-p && rmdir ./-p
  24215. + as_mkdir_p=false
  24216. +fi
  24217. -# Supported thread backends.
  24218. -LIBGCRYPT_THREAD_MODULES=""
  24219. +if test -x / >/dev/null 2>&1; then
  24220. + as_test_x='test -x'
  24221. +else
  24222. + if ls -dL / >/dev/null 2>&1; then
  24223. + as_ls_L_option=L
  24224. + else
  24225. + as_ls_L_option=
  24226. + fi
  24227. + as_test_x='
  24228. + eval sh -c '\''
  24229. + if test -d "$1"; then
  24230. + test -d "$1/.";
  24231. + else
  24232. + case $1 in #(
  24233. + -*)set "./$1";;
  24234. + esac;
  24235. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  24236. + ???[sx]*):;;*)false;;esac;fi
  24237. + '\'' sh
  24238. + '
  24239. +fi
  24240. +as_executable_p=$as_test_x
  24241. -# Other definitions.
  24242. -print_egd_notice=no
  24243. -have_w32_system=no
  24244. +# Sed expression to map a string onto a valid CPP name.
  24245. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  24246. -# Setup some stuff depending on host.
  24247. -case "${host}" in
  24248. - *-*-mingw32*)
  24249. - available_random_modules="w32"
  24250. - ac_cv_have_dev_random=no
  24251. - have_w32_system=yes
  24252. +# Sed expression to map a string onto a valid variable name.
  24253. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  24254. -$as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
  24255. +exec 6>&1
  24256. +## ----------------------------------- ##
  24257. +## Main body of $CONFIG_STATUS script. ##
  24258. +## ----------------------------------- ##
  24259. +_ASEOF
  24260. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  24261. -$as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
  24262. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24263. +# Save the log message, to keep $0 and so on meaningful, and to
  24264. +# report actual input values of CONFIG_FILES etc. instead of their
  24265. +# values after options handling.
  24266. +ac_log="
  24267. +This file was extended by libgcrypt $as_me 1.4.5, which was
  24268. +generated by GNU Autoconf 2.65. Invocation command line was
  24269. + CONFIG_FILES = $CONFIG_FILES
  24270. + CONFIG_HEADERS = $CONFIG_HEADERS
  24271. + CONFIG_LINKS = $CONFIG_LINKS
  24272. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  24273. + $ $0 $@
  24274. -$as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
  24275. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  24276. +"
  24277. - ;;
  24278. +_ACEOF
  24279. - i?86-emx-os2 | i?86-*-os2*emx)
  24280. - # OS/2 with the EMX environment
  24281. - ac_cv_have_dev_random=no
  24282. - $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
  24283. +case $ac_config_files in *"
  24284. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  24285. +esac
  24286. - $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
  24287. +case $ac_config_headers in *"
  24288. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  24289. +esac
  24290. - ;;
  24291. - i?86-*-msdosdjgpp*)
  24292. - # DOS with the DJGPP environment
  24293. - ac_cv_have_dev_random=no
  24294. - $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
  24295. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24296. +# Files that config.status was made for.
  24297. +config_files="$ac_config_files"
  24298. +config_headers="$ac_config_headers"
  24299. +config_links="$ac_config_links"
  24300. +config_commands="$ac_config_commands"
  24301. - $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
  24302. +_ACEOF
  24303. - ;;
  24304. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24305. +ac_cs_usage="\
  24306. +\`$as_me' instantiates files and other configuration actions
  24307. +from templates according to the current configuration. Unless the files
  24308. +and actions are specified as TAGs, all are instantiated by default.
  24309. - *-*-freebsd*)
  24310. - # FreeBSD
  24311. - CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  24312. - LDFLAGS="$LDFLAGS -L/usr/local/lib"
  24313. - ;;
  24314. +Usage: $0 [OPTION]... [TAG]...
  24315. - *-*-hpux*)
  24316. - if test -z "$GCC" ; then
  24317. - CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
  24318. - fi
  24319. - ;;
  24320. - *-dec-osf4*)
  24321. - if test -z "$GCC" ; then
  24322. - # Suppress all warnings
  24323. - # to get rid of the unsigned/signed char mismatch warnings.
  24324. - CFLAGS="$CFLAGS -w"
  24325. - fi
  24326. - ;;
  24327. - m68k-atari-mint)
  24328. - ;;
  24329. - *)
  24330. - ;;
  24331. -esac
  24332. + -h, --help print this help, then exit
  24333. + -V, --version print version number and configuration settings, then exit
  24334. + --config print configuration, then exit
  24335. + -q, --quiet, --silent
  24336. + do not print progress messages
  24337. + -d, --debug don't remove temporary files
  24338. + --recheck update $as_me by reconfiguring in the same conditions
  24339. + --file=FILE[:TEMPLATE]
  24340. + instantiate the configuration file FILE
  24341. + --header=FILE[:TEMPLATE]
  24342. + instantiate the configuration header FILE
  24343. -if test "$have_w32_system" = yes; then
  24344. +Configuration files:
  24345. +$config_files
  24346. -$as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
  24347. +Configuration headers:
  24348. +$config_headers
  24349. -fi
  24350. - if test "$have_w32_system" = yes; then
  24351. - HAVE_W32_SYSTEM_TRUE=
  24352. - HAVE_W32_SYSTEM_FALSE='#'
  24353. -else
  24354. - HAVE_W32_SYSTEM_TRUE='#'
  24355. - HAVE_W32_SYSTEM_FALSE=
  24356. -fi
  24357. +Configuration links:
  24358. +$config_links
  24359. +Configuration commands:
  24360. +$config_commands
  24361. +Report bugs to <bug-libgcrypt@gnupg.org>."
  24362. +_ACEOF
  24363. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24364. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  24365. +ac_cs_version="\\
  24366. +libgcrypt config.status 1.4.5
  24367. +configured by $0, generated by GNU Autoconf 2.65,
  24368. + with options \\"\$ac_cs_config\\"
  24369. -# A printable OS Name is sometimes useful.
  24370. -case "${host}" in
  24371. - *-*-mingw32*)
  24372. - PRINTABLE_OS_NAME="MingW32"
  24373. - ;;
  24374. +Copyright (C) 2009 Free Software Foundation, Inc.
  24375. +This config.status script is free software; the Free Software Foundation
  24376. +gives unlimited permission to copy, distribute and modify it."
  24377. - i?86-emx-os2 | i?86-*-os2*emx )
  24378. - PRINTABLE_OS_NAME="OS/2"
  24379. - ;;
  24380. +ac_pwd='$ac_pwd'
  24381. +srcdir='$srcdir'
  24382. +INSTALL='$INSTALL'
  24383. +MKDIR_P='$MKDIR_P'
  24384. +AWK='$AWK'
  24385. +test -n "\$AWK" || AWK=awk
  24386. +_ACEOF
  24387. - i?86-*-msdosdjgpp*)
  24388. - PRINTABLE_OS_NAME="MSDOS/DJGPP"
  24389. - ;;
  24390. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24391. +# The default lists apply if the user does not specify any file.
  24392. +ac_need_defaults=:
  24393. +while test $# != 0
  24394. +do
  24395. + case $1 in
  24396. + --*=*)
  24397. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  24398. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  24399. + ac_shift=:
  24400. + ;;
  24401. + *)
  24402. + ac_option=$1
  24403. + ac_optarg=$2
  24404. + ac_shift=shift
  24405. + ;;
  24406. + esac
  24407. - *-linux*)
  24408. - PRINTABLE_OS_NAME="GNU/Linux"
  24409. - ;;
  24410. + case $ac_option in
  24411. + # Handling of the options.
  24412. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  24413. + ac_cs_recheck=: ;;
  24414. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  24415. + $as_echo "$ac_cs_version"; exit ;;
  24416. + --config | --confi | --conf | --con | --co | --c )
  24417. + $as_echo "$ac_cs_config"; exit ;;
  24418. + --debug | --debu | --deb | --de | --d | -d )
  24419. + debug=: ;;
  24420. + --file | --fil | --fi | --f )
  24421. + $ac_shift
  24422. + case $ac_optarg in
  24423. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24424. + esac
  24425. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  24426. + ac_need_defaults=false;;
  24427. + --header | --heade | --head | --hea )
  24428. + $ac_shift
  24429. + case $ac_optarg in
  24430. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  24431. + esac
  24432. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  24433. + ac_need_defaults=false;;
  24434. + --he | --h)
  24435. + # Conflict between --help and --header
  24436. + as_fn_error "ambiguous option: \`$1'
  24437. +Try \`$0 --help' for more information.";;
  24438. + --help | --hel | -h )
  24439. + $as_echo "$ac_cs_usage"; exit ;;
  24440. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  24441. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  24442. + ac_cs_silent=: ;;
  24443. - *)
  24444. - PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
  24445. - ;;
  24446. -esac
  24447. + # This is an error.
  24448. + -*) as_fn_error "unrecognized option: \`$1'
  24449. +Try \`$0 --help' for more information." ;;
  24450. +
  24451. + *) as_fn_append ac_config_targets " $1"
  24452. + ac_need_defaults=false ;;
  24453. +
  24454. + esac
  24455. + shift
  24456. +done
  24457. +
  24458. +ac_configure_extra_args=
  24459. +
  24460. +if $ac_cs_silent; then
  24461. + exec 6>/dev/null
  24462. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  24463. +fi
  24464. +
  24465. +_ACEOF
  24466. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24467. +if \$ac_cs_recheck; then
  24468. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  24469. + shift
  24470. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  24471. + CONFIG_SHELL='$SHELL'
  24472. + export CONFIG_SHELL
  24473. + exec "\$@"
  24474. +fi
  24475. +
  24476. +_ACEOF
  24477. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24478. +exec 5>>config.log
  24479. +{
  24480. + echo
  24481. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  24482. +## Running $as_me. ##
  24483. +_ASBOX
  24484. + $as_echo "$ac_log"
  24485. +} >&5
  24486. +_ACEOF
  24487. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  24488. #
  24489. -# Figure out the name of the random device
  24490. +# INIT-COMMANDS
  24491. #
  24492. -case "${host}" in
  24493. - *-openbsd*)
  24494. - NAME_OF_DEV_RANDOM="/dev/srandom"
  24495. - NAME_OF_DEV_URANDOM="/dev/urandom"
  24496. - ;;
  24497. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  24498. +
  24499. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  24500. +# if CDPATH is set.
  24501. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  24502. +
  24503. +sed_quote_subst='$sed_quote_subst'
  24504. +double_quote_subst='$double_quote_subst'
  24505. +delay_variable_subst='$delay_variable_subst'
  24506. +AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  24507. +DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  24508. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  24509. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  24510. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  24511. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  24512. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  24513. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  24514. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  24515. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  24516. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  24517. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  24518. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  24519. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  24520. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  24521. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  24522. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  24523. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  24524. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  24525. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  24526. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  24527. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  24528. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  24529. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  24530. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  24531. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  24532. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  24533. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  24534. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  24535. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  24536. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24537. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  24538. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  24539. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  24540. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  24541. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  24542. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  24543. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24544. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24545. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24546. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  24547. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  24548. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  24549. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  24550. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  24551. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  24552. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  24553. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  24554. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  24555. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  24556. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  24557. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  24558. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  24559. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  24560. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  24561. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  24562. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  24563. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  24564. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  24565. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  24566. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  24567. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  24568. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  24569. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  24570. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24571. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24572. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  24573. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  24574. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24575. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24576. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  24577. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24578. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24579. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24580. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24581. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24582. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24583. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  24584. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  24585. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  24586. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24587. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  24588. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  24589. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  24590. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  24591. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  24592. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  24593. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  24594. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  24595. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  24596. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  24597. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  24598. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24599. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  24600. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  24601. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24602. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24603. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  24604. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  24605. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  24606. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  24607. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  24608. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  24609. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  24610. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24611. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24612. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24613. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24614. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24615. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  24616. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  24617. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  24618. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24619. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  24620. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  24621. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  24622. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  24623. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  24624. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  24625. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  24626. +
  24627. +LTCC='$LTCC'
  24628. +LTCFLAGS='$LTCFLAGS'
  24629. +compiler='$compiler_DEFAULT'
  24630. +
  24631. +# Quote evaled strings.
  24632. +for var in SED \
  24633. +GREP \
  24634. +EGREP \
  24635. +FGREP \
  24636. +LD \
  24637. +NM \
  24638. +LN_S \
  24639. +lt_SP2NL \
  24640. +lt_NL2SP \
  24641. +reload_flag \
  24642. +deplibs_check_method \
  24643. +file_magic_cmd \
  24644. +AR \
  24645. +AR_FLAGS \
  24646. +STRIP \
  24647. +RANLIB \
  24648. +CC \
  24649. +CFLAGS \
  24650. +compiler \
  24651. +lt_cv_sys_global_symbol_pipe \
  24652. +lt_cv_sys_global_symbol_to_cdecl \
  24653. +lt_cv_sys_global_symbol_to_c_name_address \
  24654. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  24655. +SHELL \
  24656. +ECHO \
  24657. +lt_prog_compiler_no_builtin_flag \
  24658. +lt_prog_compiler_wl \
  24659. +lt_prog_compiler_pic \
  24660. +lt_prog_compiler_static \
  24661. +lt_cv_prog_compiler_c_o \
  24662. +need_locks \
  24663. +DSYMUTIL \
  24664. +NMEDIT \
  24665. +LIPO \
  24666. +OTOOL \
  24667. +OTOOL64 \
  24668. +shrext_cmds \
  24669. +export_dynamic_flag_spec \
  24670. +whole_archive_flag_spec \
  24671. +compiler_needs_object \
  24672. +with_gnu_ld \
  24673. +allow_undefined_flag \
  24674. +no_undefined_flag \
  24675. +hardcode_libdir_flag_spec \
  24676. +hardcode_libdir_flag_spec_ld \
  24677. +hardcode_libdir_separator \
  24678. +fix_srcfile_path \
  24679. +exclude_expsyms \
  24680. +include_expsyms \
  24681. +file_list_spec \
  24682. +variables_saved_for_relink \
  24683. +libname_spec \
  24684. +library_names_spec \
  24685. +soname_spec \
  24686. +finish_eval \
  24687. +old_striplib \
  24688. +striplib; do
  24689. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  24690. + *[\\\\\\\`\\"\\\$]*)
  24691. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  24692. + ;;
  24693. *)
  24694. - NAME_OF_DEV_RANDOM="/dev/random"
  24695. - NAME_OF_DEV_URANDOM="/dev/urandom"
  24696. - ;;
  24697. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24698. + ;;
  24699. + esac
  24700. +done
  24701. +
  24702. +# Double-quote double-evaled strings.
  24703. +for var in reload_cmds \
  24704. +old_postinstall_cmds \
  24705. +old_postuninstall_cmds \
  24706. +old_archive_cmds \
  24707. +extract_expsyms_cmds \
  24708. +old_archive_from_new_cmds \
  24709. +old_archive_from_expsyms_cmds \
  24710. +archive_cmds \
  24711. +archive_expsym_cmds \
  24712. +module_cmds \
  24713. +module_expsym_cmds \
  24714. +export_symbols_cmds \
  24715. +prelink_cmds \
  24716. +postinstall_cmds \
  24717. +postuninstall_cmds \
  24718. +finish_cmds \
  24719. +sys_lib_search_path_spec \
  24720. +sys_lib_dlsearch_path_spec; do
  24721. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  24722. + *[\\\\\\\`\\"\\\$]*)
  24723. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  24724. + ;;
  24725. + *)
  24726. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  24727. + ;;
  24728. + esac
  24729. +done
  24730. +
  24731. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  24732. +case \$lt_ECHO in
  24733. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  24734. + ;;
  24735. esac
  24736. +ac_aux_dir='$ac_aux_dir'
  24737. +xsi_shell='$xsi_shell'
  24738. +lt_shell_append='$lt_shell_append'
  24739. -# Check whether --enable-endian-check was given.
  24740. -if test "${enable_endian_check+set}" = set; then :
  24741. - enableval=$enable_endian_check; endiancheck=$enableval
  24742. -else
  24743. - endiancheck=yes
  24744. +# See if we are running on zsh, and set the options which allow our
  24745. +# commands through without removal of \ escapes INIT.
  24746. +if test -n "\${ZSH_VERSION+set}" ; then
  24747. + setopt NO_GLOB_SUBST
  24748. fi
  24749. -if test x"$endiancheck" = xyes ; then
  24750. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  24751. -$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  24752. -if test "${ac_cv_c_bigendian+set}" = set; then :
  24753. - $as_echo_n "(cached) " >&6
  24754. -else
  24755. - ac_cv_c_bigendian=unknown
  24756. - # See if we're dealing with a universal compiler.
  24757. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24758. -/* end confdefs.h. */
  24759. -#ifndef __APPLE_CC__
  24760. - not a universal capable compiler
  24761. - #endif
  24762. - typedef int dummy;
  24763. -_ACEOF
  24764. -if ac_fn_c_try_compile "$LINENO"; then :
  24765. + PACKAGE='$PACKAGE'
  24766. + VERSION='$VERSION'
  24767. + TIMESTAMP='$TIMESTAMP'
  24768. + RM='$RM'
  24769. + ofile='$ofile'
  24770. - # Check for potential -arch flags. It is not universal unless
  24771. - # there are at least two -arch flags with different values.
  24772. - ac_arch=
  24773. - ac_prev=
  24774. - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  24775. - if test -n "$ac_prev"; then
  24776. - case $ac_word in
  24777. - i?86 | x86_64 | ppc | ppc64)
  24778. - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  24779. - ac_arch=$ac_word
  24780. - else
  24781. - ac_cv_c_bigendian=universal
  24782. - break
  24783. - fi
  24784. - ;;
  24785. - esac
  24786. - ac_prev=
  24787. - elif test "x$ac_word" = "x-arch"; then
  24788. - ac_prev=arch
  24789. - fi
  24790. - done
  24791. -fi
  24792. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24793. - if test $ac_cv_c_bigendian = unknown; then
  24794. - # See if sys/param.h defines the BYTE_ORDER macro.
  24795. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24796. -/* end confdefs.h. */
  24797. -#include <sys/types.h>
  24798. - #include <sys/param.h>
  24799. -int
  24800. -main ()
  24801. -{
  24802. -#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  24803. - && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  24804. - && LITTLE_ENDIAN)
  24805. - bogus endian macros
  24806. - #endif
  24807. - ;
  24808. - return 0;
  24809. -}
  24810. -_ACEOF
  24811. -if ac_fn_c_try_compile "$LINENO"; then :
  24812. - # It does; now see whether it defined to BIG_ENDIAN or not.
  24813. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24814. -/* end confdefs.h. */
  24815. -#include <sys/types.h>
  24816. - #include <sys/param.h>
  24817. -int
  24818. -main ()
  24819. -{
  24820. -#if BYTE_ORDER != BIG_ENDIAN
  24821. - not big endian
  24822. - #endif
  24823. +prefix=$prefix
  24824. +exec_prefix=$exec_prefix
  24825. +libdir=$libdir
  24826. +datadir=$datadir
  24827. +DATADIRNAME=$DATADIRNAME
  24828. +
  24829. - ;
  24830. - return 0;
  24831. -}
  24832. _ACEOF
  24833. -if ac_fn_c_try_compile "$LINENO"; then :
  24834. - ac_cv_c_bigendian=yes
  24835. -else
  24836. - ac_cv_c_bigendian=no
  24837. -fi
  24838. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24839. -fi
  24840. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24841. - fi
  24842. - if test $ac_cv_c_bigendian = unknown; then
  24843. - # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  24844. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24845. -/* end confdefs.h. */
  24846. -#include <limits.h>
  24847. -int
  24848. -main ()
  24849. -{
  24850. -#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  24851. - bogus endian macros
  24852. - #endif
  24853. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  24854. - ;
  24855. - return 0;
  24856. -}
  24857. -_ACEOF
  24858. -if ac_fn_c_try_compile "$LINENO"; then :
  24859. - # It does; now see whether it defined to _BIG_ENDIAN or not.
  24860. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24861. -/* end confdefs.h. */
  24862. -#include <limits.h>
  24863. +# Handling of arguments.
  24864. +for ac_config_target in $ac_config_targets
  24865. +do
  24866. + case $ac_config_target in
  24867. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  24868. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  24869. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  24870. + ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
  24871. + "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
  24872. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  24873. + "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  24874. + "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
  24875. + "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
  24876. + "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
  24877. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  24878. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  24879. + "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
  24880. + "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
  24881. + "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
  24882. + "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  24883. -int
  24884. -main ()
  24885. -{
  24886. -#ifndef _BIG_ENDIAN
  24887. - not big endian
  24888. - #endif
  24889. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  24890. + esac
  24891. +done
  24892. - ;
  24893. - return 0;
  24894. -}
  24895. -_ACEOF
  24896. -if ac_fn_c_try_compile "$LINENO"; then :
  24897. - ac_cv_c_bigendian=yes
  24898. -else
  24899. - ac_cv_c_bigendian=no
  24900. -fi
  24901. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24902. +
  24903. +# If the user did not use the arguments to specify the items to instantiate,
  24904. +# then the envvar interface is used. Set only those that are not.
  24905. +# We use the long form for the default assignment because of an extremely
  24906. +# bizarre bug on SunOS 4.1.3.
  24907. +if $ac_need_defaults; then
  24908. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  24909. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  24910. + test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  24911. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  24912. fi
  24913. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24914. - fi
  24915. - if test $ac_cv_c_bigendian = unknown; then
  24916. - # Compile a test program.
  24917. - if test "$cross_compiling" = yes; then :
  24918. - # Try to guess by grepping values from an object file.
  24919. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24920. -/* end confdefs.h. */
  24921. -short int ascii_mm[] =
  24922. - { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  24923. - short int ascii_ii[] =
  24924. - { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  24925. - int use_ascii (int i) {
  24926. - return ascii_mm[i] + ascii_ii[i];
  24927. - }
  24928. - short int ebcdic_ii[] =
  24929. - { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  24930. - short int ebcdic_mm[] =
  24931. - { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  24932. - int use_ebcdic (int i) {
  24933. - return ebcdic_mm[i] + ebcdic_ii[i];
  24934. - }
  24935. - extern int foo;
  24936. -int
  24937. -main ()
  24938. +# Have a temporary directory for convenience. Make it in the build tree
  24939. +# simply because there is no reason against having it here, and in addition,
  24940. +# creating and moving files from /tmp can sometimes cause problems.
  24941. +# Hook for its removal unless debugging.
  24942. +# Note that there is a small window in which the directory will not be cleaned:
  24943. +# after its creation but before its name has been assigned to `$tmp'.
  24944. +$debug ||
  24945. {
  24946. -return use_ascii (foo) == use_ebcdic (foo);
  24947. - ;
  24948. - return 0;
  24949. + tmp=
  24950. + trap 'exit_status=$?
  24951. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  24952. +' 0
  24953. + trap 'as_fn_exit 1' 1 2 13 15
  24954. }
  24955. -_ACEOF
  24956. -if ac_fn_c_try_compile "$LINENO"; then :
  24957. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  24958. - ac_cv_c_bigendian=yes
  24959. - fi
  24960. - if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  24961. - if test "$ac_cv_c_bigendian" = unknown; then
  24962. - ac_cv_c_bigendian=no
  24963. - else
  24964. - # finding both strings is unlikely to happen, but who knows?
  24965. - ac_cv_c_bigendian=unknown
  24966. - fi
  24967. - fi
  24968. -fi
  24969. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24970. -else
  24971. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24972. -/* end confdefs.h. */
  24973. -$ac_includes_default
  24974. -int
  24975. -main ()
  24976. +# Create a (secure) tmp directory for tmp files.
  24977. +
  24978. +{
  24979. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  24980. + test -n "$tmp" && test -d "$tmp"
  24981. +} ||
  24982. {
  24983. + tmp=./conf$$-$RANDOM
  24984. + (umask 077 && mkdir "$tmp")
  24985. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  24986. - /* Are we little or big endian? From Harbison&Steele. */
  24987. - union
  24988. - {
  24989. - long int l;
  24990. - char c[sizeof (long int)];
  24991. - } u;
  24992. - u.l = 1;
  24993. - return u.c[sizeof (long int) - 1] == 1;
  24994. +# Set up the scripts for CONFIG_FILES section.
  24995. +# No need to generate them if there are no CONFIG_FILES.
  24996. +# This happens for instance with `./config.status config.h'.
  24997. +if test -n "$CONFIG_FILES"; then
  24998. - ;
  24999. - return 0;
  25000. -}
  25001. -_ACEOF
  25002. -if ac_fn_c_try_run "$LINENO"; then :
  25003. - ac_cv_c_bigendian=no
  25004. -else
  25005. - ac_cv_c_bigendian=yes
  25006. -fi
  25007. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25008. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  25009. -fi
  25010. - fi
  25011. +ac_cr=`echo X | tr X '\015'`
  25012. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  25013. +# But we know of no other shell where ac_cr would be empty at this
  25014. +# point, so we can use a bashism as a fallback.
  25015. +if test "x$ac_cr" = x; then
  25016. + eval ac_cr=\$\'\\r\'
  25017. fi
  25018. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  25019. -$as_echo "$ac_cv_c_bigendian" >&6; }
  25020. - case $ac_cv_c_bigendian in #(
  25021. - yes)
  25022. - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  25023. -;; #(
  25024. - no)
  25025. - ;; #(
  25026. - universal)
  25027. -
  25028. -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  25029. -
  25030. - ;; #(
  25031. - *)
  25032. - as_fn_error "unknown endianness
  25033. - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  25034. - esac
  25035. -
  25036. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25037. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25038. + ac_cs_awk_cr='\r'
  25039. else
  25040. -
  25041. -$as_echo "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
  25042. -
  25043. + ac_cs_awk_cr=$ac_cr
  25044. fi
  25045. -# The cast to long int works around a bug in the HP C Compiler
  25046. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25047. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25048. -# This bug is HP SR number 8606223364.
  25049. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
  25050. -$as_echo_n "checking size of unsigned short... " >&6; }
  25051. -if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
  25052. - $as_echo_n "(cached) " >&6
  25053. -else
  25054. - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
  25055. -
  25056. -else
  25057. - if test "$ac_cv_type_unsigned_short" = yes; then
  25058. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25059. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25060. -{ as_fn_set_status 77
  25061. -as_fn_error "cannot compute sizeof (unsigned short)
  25062. -See \`config.log' for more details." "$LINENO" 5; }; }
  25063. - else
  25064. - ac_cv_sizeof_unsigned_short=0
  25065. - fi
  25066. -fi
  25067. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  25068. +_ACEOF
  25069. -fi
  25070. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
  25071. -$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
  25072. +{
  25073. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  25074. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25075. + echo "_ACEOF"
  25076. +} >conf$$subs.sh ||
  25077. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  25078. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  25079. +ac_delim='%!_!# '
  25080. +for ac_last_try in false false false false false :; do
  25081. + . ./conf$$subs.sh ||
  25082. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  25083. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25084. + if test $ac_delim_n = $ac_delim_num; then
  25085. + break
  25086. + elif $ac_last_try; then
  25087. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  25088. + else
  25089. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25090. + fi
  25091. +done
  25092. +rm -f conf$$subs.sh
  25093. -cat >>confdefs.h <<_ACEOF
  25094. -#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
  25095. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25096. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  25097. _ACEOF
  25098. +sed -n '
  25099. +h
  25100. +s/^/S["/; s/!.*/"]=/
  25101. +p
  25102. +g
  25103. +s/^[^!]*!//
  25104. +:repl
  25105. +t repl
  25106. +s/'"$ac_delim"'$//
  25107. +t delim
  25108. +:nl
  25109. +h
  25110. +s/\(.\{148\}\)..*/\1/
  25111. +t more1
  25112. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25113. +p
  25114. +n
  25115. +b repl
  25116. +:more1
  25117. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25118. +p
  25119. +g
  25120. +s/.\{148\}//
  25121. +t nl
  25122. +:delim
  25123. +h
  25124. +s/\(.\{148\}\)..*/\1/
  25125. +t more2
  25126. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  25127. +p
  25128. +b
  25129. +:more2
  25130. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25131. +p
  25132. +g
  25133. +s/.\{148\}//
  25134. +t delim
  25135. +' <conf$$subs.awk | sed '
  25136. +/^[^""]/{
  25137. + N
  25138. + s/\n//
  25139. +}
  25140. +' >>$CONFIG_STATUS || ac_write_fail=1
  25141. +rm -f conf$$subs.awk
  25142. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25143. +_ACAWK
  25144. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  25145. + for (key in S) S_is_set[key] = 1
  25146. + FS = ""
  25147. +}
  25148. +{
  25149. + line = $ 0
  25150. + nfields = split(line, field, "@")
  25151. + substed = 0
  25152. + len = length(field[1])
  25153. + for (i = 2; i < nfields; i++) {
  25154. + key = field[i]
  25155. + keylen = length(key)
  25156. + if (S_is_set[key]) {
  25157. + value = S[key]
  25158. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  25159. + len += length(value) + length(field[++i])
  25160. + substed = 1
  25161. + } else
  25162. + len += 1 + keylen
  25163. + }
  25164. -# The cast to long int works around a bug in the HP C Compiler
  25165. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25166. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25167. -# This bug is HP SR number 8606223364.
  25168. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
  25169. -$as_echo_n "checking size of unsigned int... " >&6; }
  25170. -if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
  25171. - $as_echo_n "(cached) " >&6
  25172. -else
  25173. - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
  25174. -
  25175. -else
  25176. - if test "$ac_cv_type_unsigned_int" = yes; then
  25177. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25178. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25179. -{ as_fn_set_status 77
  25180. -as_fn_error "cannot compute sizeof (unsigned int)
  25181. -See \`config.log' for more details." "$LINENO" 5; }; }
  25182. - else
  25183. - ac_cv_sizeof_unsigned_int=0
  25184. - fi
  25185. -fi
  25186. -
  25187. -fi
  25188. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
  25189. -$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
  25190. -
  25191. -
  25192. + print line
  25193. +}
  25194. -cat >>confdefs.h <<_ACEOF
  25195. -#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
  25196. +_ACAWK
  25197. _ACEOF
  25198. -
  25199. -
  25200. -# The cast to long int works around a bug in the HP C Compiler
  25201. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25202. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25203. -# This bug is HP SR number 8606223364.
  25204. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  25205. -$as_echo_n "checking size of unsigned long... " >&6; }
  25206. -if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  25207. - $as_echo_n "(cached) " >&6
  25208. -else
  25209. - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
  25210. -
  25211. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25212. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  25213. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  25214. else
  25215. - if test "$ac_cv_type_unsigned_long" = yes; then
  25216. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25217. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25218. -{ as_fn_set_status 77
  25219. -as_fn_error "cannot compute sizeof (unsigned long)
  25220. -See \`config.log' for more details." "$LINENO" 5; }; }
  25221. - else
  25222. - ac_cv_sizeof_unsigned_long=0
  25223. - fi
  25224. -fi
  25225. -
  25226. -fi
  25227. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  25228. -$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
  25229. -
  25230. -
  25231. -
  25232. -cat >>confdefs.h <<_ACEOF
  25233. -#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  25234. + cat
  25235. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  25236. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  25237. _ACEOF
  25238. -
  25239. -# The cast to long int works around a bug in the HP C Compiler
  25240. -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  25241. -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  25242. -# This bug is HP SR number 8606223364.
  25243. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  25244. -$as_echo_n "checking size of unsigned long long... " >&6; }
  25245. -if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
  25246. - $as_echo_n "(cached) " >&6
  25247. -else
  25248. - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
  25249. -
  25250. -else
  25251. - if test "$ac_cv_type_unsigned_long_long" = yes; then
  25252. - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25253. -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25254. -{ as_fn_set_status 77
  25255. -as_fn_error "cannot compute sizeof (unsigned long long)
  25256. -See \`config.log' for more details." "$LINENO" 5; }; }
  25257. - else
  25258. - ac_cv_sizeof_unsigned_long_long=0
  25259. - fi
  25260. -fi
  25261. -
  25262. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  25263. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  25264. +# trailing colons and then remove the whole line if VPATH becomes empty
  25265. +# (actually we leave an empty line to preserve line numbers).
  25266. +if test "x$srcdir" = x.; then
  25267. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  25268. +s/:*\$(srcdir):*/:/
  25269. +s/:*\${srcdir}:*/:/
  25270. +s/:*@srcdir@:*/:/
  25271. +s/^\([^=]*=[ ]*\):*/\1/
  25272. +s/:*$//
  25273. +s/^[^=]*=[ ]*$//
  25274. +}'
  25275. fi
  25276. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  25277. -$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
  25278. -
  25279. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25280. +fi # test -n "$CONFIG_FILES"
  25281. -cat >>confdefs.h <<_ACEOF
  25282. -#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  25283. +# Set up the scripts for CONFIG_HEADERS section.
  25284. +# No need to generate them if there are no CONFIG_HEADERS.
  25285. +# This happens for instance with `./config.status Makefile'.
  25286. +if test -n "$CONFIG_HEADERS"; then
  25287. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  25288. +BEGIN {
  25289. _ACEOF
  25290. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  25291. +# here-document in config.status, that substitutes the proper values into
  25292. +# config.h.in to produce config.h.
  25293. +# Create a delimiter string that does not exist in confdefs.h, to ease
  25294. +# handling of long lines.
  25295. +ac_delim='%!_!# '
  25296. +for ac_last_try in false false :; do
  25297. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  25298. + if test -z "$ac_t"; then
  25299. + break
  25300. + elif $ac_last_try; then
  25301. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  25302. + else
  25303. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25304. + fi
  25305. +done
  25306. +# For the awk script, D is an array of macro values keyed by name,
  25307. +# likewise P contains macro parameters if any. Preserve backslash
  25308. +# newline sequences.
  25309. - ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  25310. -if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  25311. -
  25312. -$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  25313. -
  25314. -else
  25315. - for ac_type in 'unsigned int' 'unsigned long int' \
  25316. - 'unsigned long long int'; do
  25317. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25318. -/* end confdefs.h. */
  25319. -$ac_includes_default
  25320. -int
  25321. -main ()
  25322. -{
  25323. -static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  25324. -test_array [0] = 0
  25325. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  25326. +sed -n '
  25327. +s/.\{148\}/&'"$ac_delim"'/g
  25328. +t rset
  25329. +:rset
  25330. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  25331. +t def
  25332. +d
  25333. +:def
  25334. +s/\\$//
  25335. +t bsnl
  25336. +s/["\\]/\\&/g
  25337. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25338. +D["\1"]=" \3"/p
  25339. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  25340. +d
  25341. +:bsnl
  25342. +s/["\\]/\\&/g
  25343. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  25344. +D["\1"]=" \3\\\\\\n"\\/p
  25345. +t cont
  25346. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  25347. +t cont
  25348. +d
  25349. +:cont
  25350. +n
  25351. +s/.\{148\}/&'"$ac_delim"'/g
  25352. +t clear
  25353. +:clear
  25354. +s/\\$//
  25355. +t bsnlc
  25356. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  25357. +d
  25358. +:bsnlc
  25359. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  25360. +b cont
  25361. +' <confdefs.h | sed '
  25362. +s/'"$ac_delim"'/"\\\
  25363. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  25364. - ;
  25365. - return 0;
  25366. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25367. + for (key in D) D_is_set[key] = 1
  25368. + FS = ""
  25369. }
  25370. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  25371. + line = \$ 0
  25372. + split(line, arg, " ")
  25373. + if (arg[1] == "#") {
  25374. + defundef = arg[2]
  25375. + mac1 = arg[3]
  25376. + } else {
  25377. + defundef = substr(arg[1], 2)
  25378. + mac1 = arg[2]
  25379. + }
  25380. + split(mac1, mac2, "(") #)
  25381. + macro = mac2[1]
  25382. + prefix = substr(line, 1, index(line, defundef) - 1)
  25383. + if (D_is_set[macro]) {
  25384. + # Preserve the white space surrounding the "#".
  25385. + print prefix "define", macro P[macro] D[macro]
  25386. + next
  25387. + } else {
  25388. + # Replace #undef with comments. This is necessary, for example,
  25389. + # in the case of _POSIX_SOURCE, which is predefined and required
  25390. + # on some systems where configure will not decide to define it.
  25391. + if (defundef == "undef") {
  25392. + print "/*", prefix defundef, macro, "*/"
  25393. + next
  25394. + }
  25395. + }
  25396. +}
  25397. +{ print }
  25398. +_ACAWK
  25399. _ACEOF
  25400. -if ac_fn_c_try_compile "$LINENO"; then :
  25401. -
  25402. -cat >>confdefs.h <<_ACEOF
  25403. -#define uintptr_t $ac_type
  25404. -_ACEOF
  25405. -
  25406. - ac_type=
  25407. -fi
  25408. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25409. - test -z "$ac_type" && break
  25410. - done
  25411. -fi
  25412. -
  25413. -
  25414. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25415. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  25416. +fi # test -n "$CONFIG_HEADERS"
  25417. -if test "$ac_cv_sizeof_unsigned_short" = "0" \
  25418. - || test "$ac_cv_sizeof_unsigned_int" = "0" \
  25419. - || test "$ac_cv_sizeof_unsigned_long" = "0"; then
  25420. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
  25421. -$as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
  25422. -fi
  25423. -# Do we have any 64-bit data types?
  25424. -if test "$ac_cv_sizeof_unsigned_int" != "8" \
  25425. - && test "$ac_cv_sizeof_unsigned_long" != "8" \
  25426. - && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
  25427. - && test "$ac_cv_sizeof_uint64_t" != "8"; then
  25428. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64-bit types. Disabling TIGER/192, SHA-384, and SHA-512" >&5
  25429. -$as_echo "$as_me: WARNING: No 64-bit types. Disabling TIGER/192, SHA-384, and SHA-512" >&2;}
  25430. -else
  25431. - available_digests="$available_digests $available_digests_64"
  25432. -fi
  25433. -
  25434. -# If not specified otherwise, all available algorithms will be
  25435. -# included.
  25436. -default_ciphers="$available_ciphers"
  25437. -default_pubkey_ciphers="$available_pubkey_ciphers"
  25438. -default_digests="$available_digests"
  25439. -
  25440. -############################
  25441. -## Command line switches. ##
  25442. -############################
  25443. -
  25444. -# Implementation of the --enable-ciphers switch.
  25445. -# Check whether --enable-ciphers was given.
  25446. -if test "${enable_ciphers+set}" = set; then :
  25447. - enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
  25448. -else
  25449. - enabled_ciphers=""
  25450. -fi
  25451. -
  25452. -if test "x$enabled_ciphers" = "x" \
  25453. - -o "$enabled_ciphers" = "yes" \
  25454. - -o "$enabled_ciphers" = "no"; then
  25455. - enabled_ciphers=$default_ciphers
  25456. -fi
  25457. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
  25458. -$as_echo_n "checking which symmetric ciphers to include... " >&6; }
  25459. -for cipher in $enabled_ciphers; do
  25460. -
  25461. -name=$cipher
  25462. -list=$available_ciphers
  25463. -found=0
  25464. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  25465. +shift
  25466. +for ac_tag
  25467. +do
  25468. + case $ac_tag in
  25469. + :[FHLC]) ac_mode=$ac_tag; continue;;
  25470. + esac
  25471. + case $ac_mode$ac_tag in
  25472. + :[FHL]*:*);;
  25473. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  25474. + :[FH]-) ac_tag=-:-;;
  25475. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  25476. + esac
  25477. + ac_save_IFS=$IFS
  25478. + IFS=:
  25479. + set x $ac_tag
  25480. + IFS=$ac_save_IFS
  25481. + shift
  25482. + ac_file=$1
  25483. + shift
  25484. -for n in $list; do
  25485. - if test "x$name" = "x$n"; then
  25486. - found=1
  25487. - fi
  25488. -done
  25489. + case $ac_mode in
  25490. + :L) ac_source=$1;;
  25491. + :[FH])
  25492. + ac_file_inputs=
  25493. + for ac_f
  25494. + do
  25495. + case $ac_f in
  25496. + -) ac_f="$tmp/stdin";;
  25497. + *) # Look for the file first in the build tree, then in the source tree
  25498. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  25499. + # because $ac_f cannot contain `:'.
  25500. + test -f "$ac_f" ||
  25501. + case $ac_f in
  25502. + [\\/$]*) false;;
  25503. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  25504. + esac ||
  25505. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  25506. + esac
  25507. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  25508. + as_fn_append ac_file_inputs " '$ac_f'"
  25509. + done
  25510. - if test "$found" = "0"; then
  25511. - as_fn_error "unsupported cipher \"$cipher\" specified" "$LINENO" 5
  25512. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  25513. + # use $as_me), people would be surprised to read:
  25514. + # /* config.h. Generated by config.status. */
  25515. + configure_input='Generated from '`
  25516. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  25517. + `' by configure.'
  25518. + if test x"$ac_file" != x-; then
  25519. + configure_input="$ac_file. $configure_input"
  25520. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  25521. +$as_echo "$as_me: creating $ac_file" >&6;}
  25522. fi
  25523. -done
  25524. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
  25525. -$as_echo "$enabled_ciphers" >&6; }
  25526. + # Neutralize special characters interpreted by sed in replacement strings.
  25527. + case $configure_input in #(
  25528. + *\&* | *\|* | *\\* )
  25529. + ac_sed_conf_input=`$as_echo "$configure_input" |
  25530. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  25531. + *) ac_sed_conf_input=$configure_input;;
  25532. + esac
  25533. -# Implementation of the --enable-pubkey-ciphers switch.
  25534. -# Check whether --enable-pubkey-ciphers was given.
  25535. -if test "${enable_pubkey_ciphers+set}" = set; then :
  25536. - enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
  25537. -else
  25538. - enabled_pubkey_ciphers=""
  25539. -fi
  25540. + case $ac_tag in
  25541. + *:-:* | *:-) cat >"$tmp/stdin" \
  25542. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  25543. + esac
  25544. + ;;
  25545. + esac
  25546. -if test "x$enabled_pubkey_ciphers" = "x" \
  25547. - -o "$enabled_pubkey_ciphers" = "yes" \
  25548. - -o "$enabled_pubkey_ciphers" = "no"; then
  25549. - enabled_pubkey_ciphers=$default_pubkey_ciphers
  25550. -fi
  25551. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
  25552. -$as_echo_n "checking which public-key ciphers to include... " >&6; }
  25553. -for cipher in $enabled_pubkey_ciphers; do
  25554. + ac_dir=`$as_dirname -- "$ac_file" ||
  25555. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25556. + X"$ac_file" : 'X\(//\)[^/]' \| \
  25557. + X"$ac_file" : 'X\(//\)$' \| \
  25558. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  25559. +$as_echo X"$ac_file" |
  25560. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25561. + s//\1/
  25562. + q
  25563. + }
  25564. + /^X\(\/\/\)[^/].*/{
  25565. + s//\1/
  25566. + q
  25567. + }
  25568. + /^X\(\/\/\)$/{
  25569. + s//\1/
  25570. + q
  25571. + }
  25572. + /^X\(\/\).*/{
  25573. + s//\1/
  25574. + q
  25575. + }
  25576. + s/.*/./; q'`
  25577. + as_dir="$ac_dir"; as_fn_mkdir_p
  25578. + ac_builddir=.
  25579. -name=$cipher
  25580. -list=$available_pubkey_ciphers
  25581. -found=0
  25582. +case "$ac_dir" in
  25583. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25584. +*)
  25585. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  25586. + # A ".." for each directory in $ac_dir_suffix.
  25587. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  25588. + case $ac_top_builddir_sub in
  25589. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  25590. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  25591. + esac ;;
  25592. +esac
  25593. +ac_abs_top_builddir=$ac_pwd
  25594. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  25595. +# for backward compatibility:
  25596. +ac_top_builddir=$ac_top_build_prefix
  25597. -for n in $list; do
  25598. - if test "x$name" = "x$n"; then
  25599. - found=1
  25600. - fi
  25601. -done
  25602. +case $srcdir in
  25603. + .) # We are building in place.
  25604. + ac_srcdir=.
  25605. + ac_top_srcdir=$ac_top_builddir_sub
  25606. + ac_abs_top_srcdir=$ac_pwd ;;
  25607. + [\\/]* | ?:[\\/]* ) # Absolute name.
  25608. + ac_srcdir=$srcdir$ac_dir_suffix;
  25609. + ac_top_srcdir=$srcdir
  25610. + ac_abs_top_srcdir=$srcdir ;;
  25611. + *) # Relative name.
  25612. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  25613. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  25614. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  25615. +esac
  25616. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  25617. - if test "$found" = "0"; then
  25618. - as_fn_error "unsupported public-key cipher specified" "$LINENO" 5
  25619. - fi
  25620. -done
  25621. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
  25622. -$as_echo "$enabled_pubkey_ciphers" >&6; }
  25623. -# Implementation of the --enable-digests switch.
  25624. -# Check whether --enable-digests was given.
  25625. -if test "${enable_digests+set}" = set; then :
  25626. - enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
  25627. -else
  25628. - enabled_digests=""
  25629. -fi
  25630. + case $ac_mode in
  25631. + :F)
  25632. + #
  25633. + # CONFIG_FILE
  25634. + #
  25635. -if test "x$enabled_digests" = "x" \
  25636. - -o "$enabled_digests" = "yes" \
  25637. - -o "$enabled_digests" = "no"; then
  25638. - enabled_digests=$default_digests
  25639. -fi
  25640. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
  25641. -$as_echo_n "checking which message digests to include... " >&6; }
  25642. -for digest in $enabled_digests; do
  25643. + case $INSTALL in
  25644. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  25645. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  25646. + esac
  25647. + ac_MKDIR_P=$MKDIR_P
  25648. + case $MKDIR_P in
  25649. + [\\/$]* | ?:[\\/]* ) ;;
  25650. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  25651. + esac
  25652. +_ACEOF
  25653. -name=$digest
  25654. -list=$available_digests
  25655. -found=0
  25656. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25657. +# If the template does not know about datarootdir, expand it.
  25658. +# FIXME: This hack should be removed a few years after 2.60.
  25659. +ac_datarootdir_hack=; ac_datarootdir_seen=
  25660. +ac_sed_dataroot='
  25661. +/datarootdir/ {
  25662. + p
  25663. + q
  25664. +}
  25665. +/@datadir@/p
  25666. +/@docdir@/p
  25667. +/@infodir@/p
  25668. +/@localedir@/p
  25669. +/@mandir@/p'
  25670. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  25671. +*datarootdir*) ac_datarootdir_seen=yes;;
  25672. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  25673. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  25674. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  25675. +_ACEOF
  25676. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25677. + ac_datarootdir_hack='
  25678. + s&@datadir@&$datadir&g
  25679. + s&@docdir@&$docdir&g
  25680. + s&@infodir@&$infodir&g
  25681. + s&@localedir@&$localedir&g
  25682. + s&@mandir@&$mandir&g
  25683. + s&\\\${datarootdir}&$datarootdir&g' ;;
  25684. +esac
  25685. +_ACEOF
  25686. -for n in $list; do
  25687. - if test "x$name" = "x$n"; then
  25688. - found=1
  25689. - fi
  25690. -done
  25691. -
  25692. - if test "$found" = "0"; then
  25693. - as_fn_error "unsupported message digest specified" "$LINENO" 5
  25694. - fi
  25695. -done
  25696. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
  25697. -$as_echo "$enabled_digests" >&6; }
  25698. -
  25699. -# Implementation of the --enable-random switch.
  25700. -# Check whether --enable-random was given.
  25701. -if test "${enable_random+set}" = set; then :
  25702. - enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
  25703. -fi
  25704. -
  25705. -if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
  25706. - random=default
  25707. -fi
  25708. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
  25709. -$as_echo_n "checking which random module to use... " >&6; }
  25710. -if test "$random" != "default" -a "$random" != "auto"; then
  25711. -
  25712. -name=$random
  25713. -list=$available_random_modules
  25714. -found=0
  25715. -
  25716. -for n in $list; do
  25717. - if test "x$name" = "x$n"; then
  25718. - found=1
  25719. - fi
  25720. -done
  25721. -
  25722. - if test "$found" = "0"; then
  25723. - as_fn_error "unsupported random module specified" "$LINENO" 5
  25724. - fi
  25725. -fi
  25726. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $random" >&5
  25727. -$as_echo "$random" >&6; }
  25728. -
  25729. -# Implementation of the --disable-dev-random switch.
  25730. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
  25731. -$as_echo_n "checking whether use of /dev/random is requested... " >&6; }
  25732. -# Check whether --enable-dev-random was given.
  25733. -if test "${enable_dev_random+set}" = set; then :
  25734. - enableval=$enable_dev_random; try_dev_random=$enableval
  25735. -else
  25736. - try_dev_random=yes
  25737. -fi
  25738. -
  25739. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
  25740. -$as_echo "$try_dev_random" >&6; }
  25741. -
  25742. -# Implementation of the --with-egd-socket switch.
  25743. -
  25744. -# Check whether --with-egd-socket was given.
  25745. -if test "${with_egd_socket+set}" = set; then :
  25746. - withval=$with_egd_socket; egd_socket_name="$withval"
  25747. -else
  25748. - egd_socket_name=""
  25749. -fi
  25750. -
  25751. -
  25752. -cat >>confdefs.h <<_ACEOF
  25753. -#define EGD_SOCKET_NAME "$egd_socket_name"
  25754. -_ACEOF
  25755. -
  25756. -
  25757. -# Implementation of the --enable-random-daemon
  25758. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the experimental random daemon is requested" >&5
  25759. -$as_echo_n "checking whether the experimental random daemon is requested... " >&6; }
  25760. -# Check whether --enable-random-daemon was given.
  25761. -if test "${enable_random_daemon+set}" = set; then :
  25762. - enableval=$enable_random_daemon; use_random_daemon=$enableval
  25763. -else
  25764. - use_random_daemon=no
  25765. -fi
  25766. -
  25767. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_random_daemon" >&5
  25768. -$as_echo "$use_random_daemon" >&6; }
  25769. -if test x$use_random_daemon = xyes ; then
  25770. -
  25771. -$as_echo "#define USE_RANDOM_DAEMON 1" >>confdefs.h
  25772. -
  25773. -fi
  25774. - if test x$use_random_daemon = xyes; then
  25775. - USE_RANDOM_DAEMON_TRUE=
  25776. - USE_RANDOM_DAEMON_FALSE='#'
  25777. -else
  25778. - USE_RANDOM_DAEMON_TRUE='#'
  25779. - USE_RANDOM_DAEMON_FALSE=
  25780. -fi
  25781. -
  25782. -
  25783. -
  25784. -# Implementation of --disable-asm.
  25785. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI assembler modules are requested" >&5
  25786. -$as_echo_n "checking whether MPI assembler modules are requested... " >&6; }
  25787. -# Check whether --enable-asm was given.
  25788. -if test "${enable_asm+set}" = set; then :
  25789. - enableval=$enable_asm; try_asm_modules=$enableval
  25790. -else
  25791. - try_asm_modules=yes
  25792. -fi
  25793. -
  25794. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
  25795. -$as_echo "$try_asm_modules" >&6; }
  25796. -
  25797. -# Implementation of the --enable-m-guard switch.
  25798. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory guard is requested" >&5
  25799. -$as_echo_n "checking whether memory guard is requested... " >&6; }
  25800. -# Check whether --enable-m-guard was given.
  25801. -if test "${enable_m_guard+set}" = set; then :
  25802. - enableval=$enable_m_guard; use_m_guard=$enableval
  25803. -else
  25804. - use_m_guard=no
  25805. -fi
  25806. -
  25807. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_m_guard" >&5
  25808. -$as_echo "$use_m_guard" >&6; }
  25809. -if test "$use_m_guard" = yes ; then
  25810. -
  25811. -$as_echo "#define M_GUARD 1" >>confdefs.h
  25812. -
  25813. -fi
  25814. -
  25815. -# Implementation of the --with-capabilities switch.
  25816. -# Check whether we want to use Linux capabilities
  25817. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
  25818. -$as_echo_n "checking whether use of capabilities is requested... " >&6; }
  25819. -
  25820. -# Check whether --with-capabilities was given.
  25821. -if test "${with_capabilities+set}" = set; then :
  25822. - withval=$with_capabilities; use_capabilities="$withval"
  25823. -else
  25824. - use_capabilities=no
  25825. -fi
  25826. -
  25827. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
  25828. -$as_echo "$use_capabilities" >&6; }
  25829. -
  25830. -# Implementation of the --enable-hmac-binary-check.
  25831. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
  25832. -$as_echo_n "checking whether a HMAC binary check is requested... " >&6; }
  25833. -# Check whether --enable-hmac-binary-check was given.
  25834. -if test "${enable_hmac_binary_check+set}" = set; then :
  25835. - enableval=$enable_hmac_binary_check; use_hmac_binary_check=$enableval
  25836. -else
  25837. - use_hmac_binary_check=no
  25838. -fi
  25839. -
  25840. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
  25841. -$as_echo "$use_hmac_binary_check" >&6; }
  25842. -if test "$use_hmac_binary_check" = yes ; then
  25843. -
  25844. -$as_echo "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
  25845. -
  25846. -fi
  25847. -
  25848. -
  25849. -# Implementation of the --disable-padlock-support switch.
  25850. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
  25851. -$as_echo_n "checking whether padlock support is requested... " >&6; }
  25852. -# Check whether --enable-padlock-support was given.
  25853. -if test "${enable_padlock_support+set}" = set; then :
  25854. - enableval=$enable_padlock_support; padlocksupport=$enableval
  25855. -else
  25856. - padlocksupport=yes
  25857. -fi
  25858. -
  25859. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
  25860. -$as_echo "$padlocksupport" >&6; }
  25861. -if test x"$padlocksupport" = xyes ; then
  25862. -
  25863. -$as_echo "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
  25864. -
  25865. -fi
  25866. -
  25867. -# Implementation of the --disable-O-flag-munging switch.
  25868. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
  25869. -$as_echo_n "checking whether a -O flag munging is requested... " >&6; }
  25870. -# Check whether --enable-O-flag-munging was given.
  25871. -if test "${enable_O_flag_munging+set}" = set; then :
  25872. - enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
  25873. -else
  25874. - enable_o_flag_munging=yes
  25875. -fi
  25876. -
  25877. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
  25878. -$as_echo "$enable_o_flag_munging" >&6; }
  25879. - if test "$enable_o_flag_munging" = "yes"; then
  25880. - ENABLE_O_FLAG_MUNGING_TRUE=
  25881. - ENABLE_O_FLAG_MUNGING_FALSE='#'
  25882. -else
  25883. - ENABLE_O_FLAG_MUNGING_TRUE='#'
  25884. - ENABLE_O_FLAG_MUNGING_FALSE=
  25885. -fi
  25886. -
  25887. -
  25888. -
  25889. -
  25890. -cat >>confdefs.h <<_ACEOF
  25891. -#define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
  25892. +# Neutralize VPATH when `$srcdir' = `.'.
  25893. +# Shell code in configure.ac might set extrasub.
  25894. +# FIXME: do we really want to maintain this feature?
  25895. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25896. +ac_sed_extra="$ac_vpsub
  25897. +$extrasub
  25898. _ACEOF
  25899. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25900. +:t
  25901. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  25902. +s|@configure_input@|$ac_sed_conf_input|;t t
  25903. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  25904. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  25905. +s&@srcdir@&$ac_srcdir&;t t
  25906. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  25907. +s&@top_srcdir@&$ac_top_srcdir&;t t
  25908. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  25909. +s&@builddir@&$ac_builddir&;t t
  25910. +s&@abs_builddir@&$ac_abs_builddir&;t t
  25911. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  25912. +s&@INSTALL@&$ac_INSTALL&;t t
  25913. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  25914. +$ac_datarootdir_hack
  25915. +"
  25916. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  25917. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  25918. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  25919. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  25920. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  25921. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25922. +which seems to be undefined. Please make sure it is defined." >&5
  25923. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  25924. +which seems to be undefined. Please make sure it is defined." >&2;}
  25925. -# For some systems we know that we have ld_version scripts.
  25926. -# Use it then as default.
  25927. -have_ld_version_script=no
  25928. -case "${host}" in
  25929. - *-*-linux*)
  25930. - have_ld_version_script=yes
  25931. - ;;
  25932. - *-*-gnu*)
  25933. - have_ld_version_script=yes
  25934. - ;;
  25935. -esac
  25936. -# Check whether --enable-ld-version-script was given.
  25937. -if test "${enable_ld_version_script+set}" = set; then :
  25938. - enableval=$enable_ld_version_script; have_ld_version_script=$enableval
  25939. -else
  25940. - :
  25941. -fi
  25942. -
  25943. - if test "$have_ld_version_script" = "yes"; then
  25944. - HAVE_LD_VERSION_SCRIPT_TRUE=
  25945. - HAVE_LD_VERSION_SCRIPT_FALSE='#'
  25946. -else
  25947. - HAVE_LD_VERSION_SCRIPT_TRUE='#'
  25948. - HAVE_LD_VERSION_SCRIPT_FALSE=
  25949. -fi
  25950. -
  25951. -
  25952. -
  25953. -cat >>confdefs.h <<_ACEOF
  25954. -#define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
  25955. -_ACEOF
  25956. -
  25957. -
  25958. -cat >>confdefs.h <<_ACEOF
  25959. -#define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
  25960. -_ACEOF
  25961. -
  25962. -
  25963. -###############################
  25964. -#### Checks for libraries. ####
  25965. -###############################
  25966. -
  25967. -#
  25968. -# gpg-error is required.
  25969. -#
  25970. -
  25971. -# Check whether --with-gpg-error-prefix was given.
  25972. -if test "${with_gpg_error_prefix+set}" = set; then :
  25973. - withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
  25974. -else
  25975. - gpg_error_config_prefix=""
  25976. -fi
  25977. -
  25978. - if test x$gpg_error_config_prefix != x ; then
  25979. - if test x${GPG_ERROR_CONFIG+set} != xset ; then
  25980. - GPG_ERROR_CONFIG=$gpg_error_config_prefix/bin/gpg-error-config
  25981. - fi
  25982. - fi
  25983. -
  25984. - # Extract the first word of "gpg-error-config", so it can be a program name with args.
  25985. -set dummy gpg-error-config; ac_word=$2
  25986. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25987. -$as_echo_n "checking for $ac_word... " >&6; }
  25988. -if test "${ac_cv_path_GPG_ERROR_CONFIG+set}" = set; then :
  25989. - $as_echo_n "(cached) " >&6
  25990. -else
  25991. - case $GPG_ERROR_CONFIG in
  25992. - [\\/]* | ?:[\\/]*)
  25993. - ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
  25994. - ;;
  25995. - *)
  25996. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25997. -for as_dir in $PATH
  25998. -do
  25999. - IFS=$as_save_IFS
  26000. - test -z "$as_dir" && as_dir=.
  26001. - for ac_exec_ext in '' $ac_executable_extensions; do
  26002. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26003. - ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  26004. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26005. - break 2
  26006. - fi
  26007. -done
  26008. - done
  26009. -IFS=$as_save_IFS
  26010. -
  26011. - test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
  26012. - ;;
  26013. -esac
  26014. -fi
  26015. -GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
  26016. -if test -n "$GPG_ERROR_CONFIG"; then
  26017. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
  26018. -$as_echo "$GPG_ERROR_CONFIG" >&6; }
  26019. -else
  26020. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26021. -$as_echo "no" >&6; }
  26022. -fi
  26023. -
  26024. -
  26025. - min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
  26026. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
  26027. -$as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
  26028. - ok=no
  26029. - if test "$GPG_ERROR_CONFIG" != "no" ; then
  26030. - req_major=`echo $min_gpg_error_version | \
  26031. - sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
  26032. - req_minor=`echo $min_gpg_error_version | \
  26033. - sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
  26034. - gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
  26035. - if test "$gpg_error_config_version"; then
  26036. - major=`echo $gpg_error_config_version | \
  26037. - sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
  26038. - minor=`echo $gpg_error_config_version | \
  26039. - sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
  26040. - if test "$major" -gt "$req_major"; then
  26041. - ok=yes
  26042. - else
  26043. - if test "$major" -eq "$req_major"; then
  26044. - if test "$minor" -ge "$req_minor"; then
  26045. - ok=yes
  26046. - fi
  26047. - fi
  26048. - fi
  26049. - fi
  26050. - fi
  26051. - if test $ok = yes; then
  26052. - GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
  26053. - GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
  26054. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26055. -$as_echo "yes" >&6; }
  26056. - :
  26057. - else
  26058. - GPG_ERROR_CFLAGS=""
  26059. - GPG_ERROR_LIBS=""
  26060. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26061. -$as_echo "no" >&6; }
  26062. - :
  26063. - fi
  26064. -
  26065. -
  26066. -
  26067. -if test "x$GPG_ERROR_LIBS" = "x"; then
  26068. - as_fn_error "libgpg-error is needed.
  26069. - See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
  26070. -fi
  26071. -
  26072. -
  26073. -$as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
  26074. -
  26075. -
  26076. -#
  26077. -# Check whether the GNU Pth library is available. We require this
  26078. -# to build the optional gcryptrnd program.
  26079. -#
  26080. -
  26081. -# Check whether --with-pth-prefix was given.
  26082. -if test "${with_pth_prefix+set}" = set; then :
  26083. - withval=$with_pth_prefix; pth_config_prefix="$withval"
  26084. -else
  26085. - pth_config_prefix=""
  26086. -fi
  26087. -
  26088. -if test x$pth_config_prefix != x ; then
  26089. - PTH_CONFIG="$pth_config_prefix/bin/pth-config"
  26090. -fi
  26091. -if test "$use_random_daemon" = "yes"; then
  26092. - # Extract the first word of "pth-config", so it can be a program name with args.
  26093. -set dummy pth-config; ac_word=$2
  26094. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26095. -$as_echo_n "checking for $ac_word... " >&6; }
  26096. -if test "${ac_cv_path_PTH_CONFIG+set}" = set; then :
  26097. - $as_echo_n "(cached) " >&6
  26098. -else
  26099. - case $PTH_CONFIG in
  26100. - [\\/]* | ?:[\\/]*)
  26101. - ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
  26102. - ;;
  26103. - *)
  26104. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26105. -for as_dir in $PATH
  26106. -do
  26107. - IFS=$as_save_IFS
  26108. - test -z "$as_dir" && as_dir=.
  26109. - for ac_exec_ext in '' $ac_executable_extensions; do
  26110. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  26111. - ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  26112. - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26113. - break 2
  26114. - fi
  26115. -done
  26116. - done
  26117. -IFS=$as_save_IFS
  26118. -
  26119. - test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
  26120. - ;;
  26121. -esac
  26122. -fi
  26123. -PTH_CONFIG=$ac_cv_path_PTH_CONFIG
  26124. -if test -n "$PTH_CONFIG"; then
  26125. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
  26126. -$as_echo "$PTH_CONFIG" >&6; }
  26127. -else
  26128. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26129. -$as_echo "no" >&6; }
  26130. -fi
  26131. -
  26132. -
  26133. - if test "$PTH_CONFIG" = "no"; then
  26134. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  26135. -***
  26136. -*** To build the Libgcrypt's random number daemon
  26137. -*** we need the support of the GNU Portable Threads Library.
  26138. -*** Download it from ftp://ftp.gnu.org/gnu/pth/
  26139. -*** On a Debian GNU/Linux system you might want to try
  26140. -*** apt-get install libpth-dev
  26141. -***" >&5
  26142. -$as_echo "$as_me: WARNING:
  26143. -***
  26144. -*** To build the Libgcrypt's random number daemon
  26145. -*** we need the support of the GNU Portable Threads Library.
  26146. -*** Download it from ftp://ftp.gnu.org/gnu/pth/
  26147. -*** On a Debian GNU/Linux system you might want to try
  26148. -*** apt-get install libpth-dev
  26149. -***" >&2;}
  26150. - else
  26151. -
  26152. - _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
  26153. - _req_version="1.3.7"
  26154. -
  26155. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
  26156. -$as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
  26157. - for _var in _pth_version _req_version; do
  26158. - eval "_val=\"\$${_var}\""
  26159. - _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
  26160. - _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
  26161. - _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
  26162. - _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
  26163. - case $_rtype in
  26164. - "a" ) _rtype=0 ;;
  26165. - "b" ) _rtype=1 ;;
  26166. - "." ) _rtype=2 ;;
  26167. - esac
  26168. - _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
  26169. - "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
  26170. - eval "${_var}_hex=\"\$_hex\""
  26171. - done
  26172. - have_pth=no
  26173. - if test ".$_pth_version_hex" != .; then
  26174. - if test ".$_req_version_hex" != .; then
  26175. - if test $_pth_version_hex -ge $_req_version_hex; then
  26176. - have_pth=yes
  26177. - fi
  26178. - fi
  26179. - fi
  26180. - if test $have_pth = yes; then
  26181. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26182. -$as_echo "yes" >&6; }
  26183. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
  26184. -$as_echo_n "checking whether PTH installation is sane... " >&6; }
  26185. - if test "${gnupg_cv_pth_is_sane+set}" = set; then :
  26186. - $as_echo_n "(cached) " >&6
  26187. -else
  26188. -
  26189. - _gnupg_pth_save_cflags=$CFLAGS
  26190. - _gnupg_pth_save_ldflags=$LDFLAGS
  26191. - _gnupg_pth_save_libs=$LIBS
  26192. - CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
  26193. - LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
  26194. - LIBS="$LIBS `$PTH_CONFIG --libs`"
  26195. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26196. -/* end confdefs.h. */
  26197. -#include <pth.h>
  26198. -
  26199. -int
  26200. -main ()
  26201. -{
  26202. - pth_init ();
  26203. - ;
  26204. - return 0;
  26205. -}
  26206. -_ACEOF
  26207. -if ac_fn_c_try_link "$LINENO"; then :
  26208. - gnupg_cv_pth_is_sane=yes
  26209. -else
  26210. - gnupg_cv_pth_is_sane=no
  26211. -fi
  26212. -rm -f core conftest.err conftest.$ac_objext \
  26213. - conftest$ac_exeext conftest.$ac_ext
  26214. - CFLAGS=$_gnupg_pth_save_cflags
  26215. - LDFLAGS=$_gnupg_pth_save_ldflags
  26216. - LIBS=$_gnupg_pth_save_libs
  26217. -
  26218. -fi
  26219. -
  26220. - if test $gnupg_cv_pth_is_sane != yes; then
  26221. - have_pth=no
  26222. - fi
  26223. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
  26224. -$as_echo "$gnupg_cv_pth_is_sane" >&6; }
  26225. - else
  26226. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26227. -$as_echo "no" >&6; }
  26228. - fi
  26229. -
  26230. - if test $have_pth = yes; then
  26231. - PTH_CFLAGS=`$PTH_CONFIG --cflags`
  26232. - PTH_LIBS=`$PTH_CONFIG --ldflags`
  26233. - PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
  26234. -
  26235. -$as_echo "#define USE_GNU_PTH 1" >>confdefs.h
  26236. -
  26237. -
  26238. -$as_echo "#define HAVE_PTH 1" >>confdefs.h
  26239. -
  26240. - fi
  26241. - fi
  26242. -fi
  26243. -
  26244. -
  26245. -
  26246. -
  26247. -# Solaris needs -lsocket and -lnsl. Unisys system includes
  26248. -# gethostbyname in libsocket but needs libnsl for socket.
  26249. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  26250. -$as_echo_n "checking for library containing setsockopt... " >&6; }
  26251. -if test "${ac_cv_search_setsockopt+set}" = set; then :
  26252. - $as_echo_n "(cached) " >&6
  26253. -else
  26254. - ac_func_search_save_LIBS=$LIBS
  26255. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26256. -/* end confdefs.h. */
  26257. -
  26258. -/* Override any GCC internal prototype to avoid an error.
  26259. - Use char because int might match the return type of a GCC
  26260. - builtin and then its argument prototype would still apply. */
  26261. -#ifdef __cplusplus
  26262. -extern "C"
  26263. -#endif
  26264. -char setsockopt ();
  26265. -int
  26266. -main ()
  26267. -{
  26268. -return setsockopt ();
  26269. - ;
  26270. - return 0;
  26271. -}
  26272. -_ACEOF
  26273. -for ac_lib in '' socket; do
  26274. - if test -z "$ac_lib"; then
  26275. - ac_res="none required"
  26276. - else
  26277. - ac_res=-l$ac_lib
  26278. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26279. - fi
  26280. - if ac_fn_c_try_link "$LINENO"; then :
  26281. - ac_cv_search_setsockopt=$ac_res
  26282. -fi
  26283. -rm -f core conftest.err conftest.$ac_objext \
  26284. - conftest$ac_exeext
  26285. - if test "${ac_cv_search_setsockopt+set}" = set; then :
  26286. - break
  26287. -fi
  26288. -done
  26289. -if test "${ac_cv_search_setsockopt+set}" = set; then :
  26290. -
  26291. -else
  26292. - ac_cv_search_setsockopt=no
  26293. -fi
  26294. -rm conftest.$ac_ext
  26295. -LIBS=$ac_func_search_save_LIBS
  26296. -fi
  26297. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  26298. -$as_echo "$ac_cv_search_setsockopt" >&6; }
  26299. -ac_res=$ac_cv_search_setsockopt
  26300. -if test "$ac_res" != no; then :
  26301. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  26302. -
  26303. -else
  26304. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  26305. -$as_echo_n "checking for library containing setsockopt... " >&6; }
  26306. -if test "${ac_cv_search_setsockopt+set}" = set; then :
  26307. - $as_echo_n "(cached) " >&6
  26308. -else
  26309. - ac_func_search_save_LIBS=$LIBS
  26310. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26311. -/* end confdefs.h. */
  26312. -
  26313. -/* Override any GCC internal prototype to avoid an error.
  26314. - Use char because int might match the return type of a GCC
  26315. - builtin and then its argument prototype would still apply. */
  26316. -#ifdef __cplusplus
  26317. -extern "C"
  26318. -#endif
  26319. -char setsockopt ();
  26320. -int
  26321. -main ()
  26322. -{
  26323. -return setsockopt ();
  26324. - ;
  26325. - return 0;
  26326. -}
  26327. -_ACEOF
  26328. -for ac_lib in '' socket; do
  26329. - if test -z "$ac_lib"; then
  26330. - ac_res="none required"
  26331. - else
  26332. - ac_res=-l$ac_lib
  26333. - LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
  26334. - fi
  26335. - if ac_fn_c_try_link "$LINENO"; then :
  26336. - ac_cv_search_setsockopt=$ac_res
  26337. -fi
  26338. -rm -f core conftest.err conftest.$ac_objext \
  26339. - conftest$ac_exeext
  26340. - if test "${ac_cv_search_setsockopt+set}" = set; then :
  26341. - break
  26342. -fi
  26343. -done
  26344. -if test "${ac_cv_search_setsockopt+set}" = set; then :
  26345. -
  26346. -else
  26347. - ac_cv_search_setsockopt=no
  26348. -fi
  26349. -rm conftest.$ac_ext
  26350. -LIBS=$ac_func_search_save_LIBS
  26351. -fi
  26352. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  26353. -$as_echo "$ac_cv_search_setsockopt" >&6; }
  26354. -ac_res=$ac_cv_search_setsockopt
  26355. -if test "$ac_res" != no; then :
  26356. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  26357. -
  26358. -fi
  26359. -
  26360. -fi
  26361. -
  26362. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  26363. -$as_echo_n "checking for library containing setsockopt... " >&6; }
  26364. -if test "${ac_cv_search_setsockopt+set}" = set; then :
  26365. - $as_echo_n "(cached) " >&6
  26366. -else
  26367. - ac_func_search_save_LIBS=$LIBS
  26368. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26369. -/* end confdefs.h. */
  26370. -
  26371. -/* Override any GCC internal prototype to avoid an error.
  26372. - Use char because int might match the return type of a GCC
  26373. - builtin and then its argument prototype would still apply. */
  26374. -#ifdef __cplusplus
  26375. -extern "C"
  26376. -#endif
  26377. -char setsockopt ();
  26378. -int
  26379. -main ()
  26380. -{
  26381. -return setsockopt ();
  26382. - ;
  26383. - return 0;
  26384. -}
  26385. -_ACEOF
  26386. -for ac_lib in '' nsl; do
  26387. - if test -z "$ac_lib"; then
  26388. - ac_res="none required"
  26389. - else
  26390. - ac_res=-l$ac_lib
  26391. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  26392. - fi
  26393. - if ac_fn_c_try_link "$LINENO"; then :
  26394. - ac_cv_search_setsockopt=$ac_res
  26395. -fi
  26396. -rm -f core conftest.err conftest.$ac_objext \
  26397. - conftest$ac_exeext
  26398. - if test "${ac_cv_search_setsockopt+set}" = set; then :
  26399. - break
  26400. -fi
  26401. -done
  26402. -if test "${ac_cv_search_setsockopt+set}" = set; then :
  26403. -
  26404. -else
  26405. - ac_cv_search_setsockopt=no
  26406. -fi
  26407. -rm conftest.$ac_ext
  26408. -LIBS=$ac_func_search_save_LIBS
  26409. -fi
  26410. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  26411. -$as_echo "$ac_cv_search_setsockopt" >&6; }
  26412. -ac_res=$ac_cv_search_setsockopt
  26413. -if test "$ac_res" != no; then :
  26414. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  26415. -
  26416. -fi
  26417. -
  26418. -
  26419. -##################################
  26420. -#### Checks for header files. ####
  26421. -##################################
  26422. -
  26423. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  26424. -$as_echo_n "checking for ANSI C header files... " >&6; }
  26425. -if test "${ac_cv_header_stdc+set}" = set; then :
  26426. - $as_echo_n "(cached) " >&6
  26427. -else
  26428. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26429. -/* end confdefs.h. */
  26430. -#include <stdlib.h>
  26431. -#include <stdarg.h>
  26432. -#include <string.h>
  26433. -#include <float.h>
  26434. -
  26435. -int
  26436. -main ()
  26437. -{
  26438. -
  26439. - ;
  26440. - return 0;
  26441. -}
  26442. -_ACEOF
  26443. -if ac_fn_c_try_compile "$LINENO"; then :
  26444. - ac_cv_header_stdc=yes
  26445. -else
  26446. - ac_cv_header_stdc=no
  26447. -fi
  26448. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26449. -
  26450. -if test $ac_cv_header_stdc = yes; then
  26451. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  26452. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26453. -/* end confdefs.h. */
  26454. -#include <string.h>
  26455. -
  26456. -_ACEOF
  26457. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26458. - $EGREP "memchr" >/dev/null 2>&1; then :
  26459. -
  26460. -else
  26461. - ac_cv_header_stdc=no
  26462. -fi
  26463. -rm -f conftest*
  26464. -
  26465. -fi
  26466. -
  26467. -if test $ac_cv_header_stdc = yes; then
  26468. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  26469. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26470. -/* end confdefs.h. */
  26471. -#include <stdlib.h>
  26472. -
  26473. -_ACEOF
  26474. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26475. - $EGREP "free" >/dev/null 2>&1; then :
  26476. -
  26477. -else
  26478. - ac_cv_header_stdc=no
  26479. -fi
  26480. -rm -f conftest*
  26481. -
  26482. -fi
  26483. -
  26484. -if test $ac_cv_header_stdc = yes; then
  26485. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  26486. - if test "$cross_compiling" = yes; then :
  26487. - :
  26488. -else
  26489. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26490. -/* end confdefs.h. */
  26491. -#include <ctype.h>
  26492. -#include <stdlib.h>
  26493. -#if ((' ' & 0x0FF) == 0x020)
  26494. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  26495. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  26496. -#else
  26497. -# define ISLOWER(c) \
  26498. - (('a' <= (c) && (c) <= 'i') \
  26499. - || ('j' <= (c) && (c) <= 'r') \
  26500. - || ('s' <= (c) && (c) <= 'z'))
  26501. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  26502. -#endif
  26503. -
  26504. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  26505. -int
  26506. -main ()
  26507. -{
  26508. - int i;
  26509. - for (i = 0; i < 256; i++)
  26510. - if (XOR (islower (i), ISLOWER (i))
  26511. - || toupper (i) != TOUPPER (i))
  26512. - return 2;
  26513. - return 0;
  26514. -}
  26515. -_ACEOF
  26516. -if ac_fn_c_try_run "$LINENO"; then :
  26517. -
  26518. -else
  26519. - ac_cv_header_stdc=no
  26520. -fi
  26521. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26522. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  26523. -fi
  26524. -
  26525. -fi
  26526. -fi
  26527. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  26528. -$as_echo "$ac_cv_header_stdc" >&6; }
  26529. -if test $ac_cv_header_stdc = yes; then
  26530. -
  26531. -$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  26532. -
  26533. -fi
  26534. -
  26535. -for ac_header in unistd.h sys/select.h
  26536. -do :
  26537. - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26538. -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  26539. -eval as_val=\$$as_ac_Header
  26540. - if test "x$as_val" = x""yes; then :
  26541. - cat >>confdefs.h <<_ACEOF
  26542. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26543. -_ACEOF
  26544. -
  26545. -fi
  26546. -
  26547. -done
  26548. -
  26549. -
  26550. -##########################################
  26551. -#### Checks for typedefs, structures, ####
  26552. -#### and compiler characteristics. ####
  26553. -##########################################
  26554. -
  26555. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  26556. -$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  26557. -if test "${ac_cv_c_const+set}" = set; then :
  26558. - $as_echo_n "(cached) " >&6
  26559. -else
  26560. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26561. -/* end confdefs.h. */
  26562. -
  26563. -int
  26564. -main ()
  26565. -{
  26566. -/* FIXME: Include the comments suggested by Paul. */
  26567. -#ifndef __cplusplus
  26568. - /* Ultrix mips cc rejects this. */
  26569. - typedef int charset[2];
  26570. - const charset cs;
  26571. - /* SunOS 4.1.1 cc rejects this. */
  26572. - char const *const *pcpcc;
  26573. - char **ppc;
  26574. - /* NEC SVR4.0.2 mips cc rejects this. */
  26575. - struct point {int x, y;};
  26576. - static struct point const zero = {0,0};
  26577. - /* AIX XL C 1.02.0.0 rejects this.
  26578. - It does not let you subtract one const X* pointer from another in
  26579. - an arm of an if-expression whose if-part is not a constant
  26580. - expression */
  26581. - const char *g = "string";
  26582. - pcpcc = &g + (g ? g-g : 0);
  26583. - /* HPUX 7.0 cc rejects these. */
  26584. - ++pcpcc;
  26585. - ppc = (char**) pcpcc;
  26586. - pcpcc = (char const *const *) ppc;
  26587. - { /* SCO 3.2v4 cc rejects this. */
  26588. - char *t;
  26589. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  26590. -
  26591. - *t++ = 0;
  26592. - if (s) return 0;
  26593. - }
  26594. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  26595. - int x[] = {25, 17};
  26596. - const int *foo = &x[0];
  26597. - ++foo;
  26598. - }
  26599. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  26600. - typedef const int *iptr;
  26601. - iptr p = 0;
  26602. - ++p;
  26603. - }
  26604. - { /* AIX XL C 1.02.0.0 rejects this saying
  26605. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  26606. - struct s { int j; const int *ap[3]; };
  26607. - struct s *b; b->j = 5;
  26608. - }
  26609. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  26610. - const int foo = 10;
  26611. - if (!foo) return 0;
  26612. - }
  26613. - return !cs[0] && !zero.x;
  26614. -#endif
  26615. -
  26616. - ;
  26617. - return 0;
  26618. -}
  26619. -_ACEOF
  26620. -if ac_fn_c_try_compile "$LINENO"; then :
  26621. - ac_cv_c_const=yes
  26622. -else
  26623. - ac_cv_c_const=no
  26624. -fi
  26625. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26626. -fi
  26627. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  26628. -$as_echo "$ac_cv_c_const" >&6; }
  26629. -if test $ac_cv_c_const = no; then
  26630. -
  26631. -$as_echo "#define const /**/" >>confdefs.h
  26632. -
  26633. -fi
  26634. -
  26635. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  26636. -$as_echo_n "checking for inline... " >&6; }
  26637. -if test "${ac_cv_c_inline+set}" = set; then :
  26638. - $as_echo_n "(cached) " >&6
  26639. -else
  26640. - ac_cv_c_inline=no
  26641. -for ac_kw in inline __inline__ __inline; do
  26642. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26643. -/* end confdefs.h. */
  26644. -#ifndef __cplusplus
  26645. -typedef int foo_t;
  26646. -static $ac_kw foo_t static_foo () {return 0; }
  26647. -$ac_kw foo_t foo () {return 0; }
  26648. -#endif
  26649. -
  26650. -_ACEOF
  26651. -if ac_fn_c_try_compile "$LINENO"; then :
  26652. - ac_cv_c_inline=$ac_kw
  26653. -fi
  26654. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26655. - test "$ac_cv_c_inline" != no && break
  26656. -done
  26657. -
  26658. -fi
  26659. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  26660. -$as_echo "$ac_cv_c_inline" >&6; }
  26661. -
  26662. -case $ac_cv_c_inline in
  26663. - inline | yes) ;;
  26664. - *)
  26665. - case $ac_cv_c_inline in
  26666. - no) ac_val=;;
  26667. - *) ac_val=$ac_cv_c_inline;;
  26668. - esac
  26669. - cat >>confdefs.h <<_ACEOF
  26670. -#ifndef __cplusplus
  26671. -#define inline $ac_val
  26672. -#endif
  26673. -_ACEOF
  26674. - ;;
  26675. -esac
  26676. -
  26677. -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  26678. -if test "x$ac_cv_type_size_t" = x""yes; then :
  26679. -
  26680. -else
  26681. -
  26682. -cat >>confdefs.h <<_ACEOF
  26683. -#define size_t unsigned int
  26684. -_ACEOF
  26685. -
  26686. -fi
  26687. -
  26688. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  26689. -$as_echo_n "checking return type of signal handlers... " >&6; }
  26690. -if test "${ac_cv_type_signal+set}" = set; then :
  26691. - $as_echo_n "(cached) " >&6
  26692. -else
  26693. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26694. -/* end confdefs.h. */
  26695. -#include <sys/types.h>
  26696. -#include <signal.h>
  26697. -
  26698. -int
  26699. -main ()
  26700. -{
  26701. -return *(signal (0, 0)) (0) == 1;
  26702. - ;
  26703. - return 0;
  26704. -}
  26705. -_ACEOF
  26706. -if ac_fn_c_try_compile "$LINENO"; then :
  26707. - ac_cv_type_signal=int
  26708. -else
  26709. - ac_cv_type_signal=void
  26710. -fi
  26711. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26712. -fi
  26713. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  26714. -$as_echo "$ac_cv_type_signal" >&6; }
  26715. -
  26716. -cat >>confdefs.h <<_ACEOF
  26717. -#define RETSIGTYPE $ac_cv_type_signal
  26718. -_ACEOF
  26719. -
  26720. -
  26721. -ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
  26722. -/* NetBSD declares sys_siglist in unistd.h. */
  26723. -#ifdef HAVE_UNISTD_H
  26724. -# include <unistd.h>
  26725. -#endif
  26726. -
  26727. -"
  26728. -if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
  26729. - ac_have_decl=1
  26730. -else
  26731. - ac_have_decl=0
  26732. -fi
  26733. -
  26734. -cat >>confdefs.h <<_ACEOF
  26735. -#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
  26736. -_ACEOF
  26737. -
  26738. -
  26739. -
  26740. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
  26741. -$as_echo_n "checking for byte typedef... " >&6; }
  26742. - if test "${gnupg_cv_typedef_byte+set}" = set; then :
  26743. - $as_echo_n "(cached) " >&6
  26744. -else
  26745. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26746. -/* end confdefs.h. */
  26747. -#define _GNU_SOURCE 1
  26748. - #include <stdlib.h>
  26749. - #include <sys/types.h>
  26750. -int
  26751. -main ()
  26752. -{
  26753. -
  26754. - #undef byte
  26755. - int a = sizeof(byte);
  26756. -
  26757. - ;
  26758. - return 0;
  26759. -}
  26760. -_ACEOF
  26761. -if ac_fn_c_try_compile "$LINENO"; then :
  26762. - gnupg_cv_typedef_byte=yes
  26763. -else
  26764. - gnupg_cv_typedef_byte=no
  26765. -fi
  26766. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26767. -fi
  26768. -
  26769. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
  26770. -$as_echo "$gnupg_cv_typedef_byte" >&6; }
  26771. - if test "$gnupg_cv_typedef_byte" = yes; then
  26772. -
  26773. -$as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
  26774. -
  26775. - fi
  26776. -
  26777. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
  26778. -$as_echo_n "checking for ushort typedef... " >&6; }
  26779. - if test "${gnupg_cv_typedef_ushort+set}" = set; then :
  26780. - $as_echo_n "(cached) " >&6
  26781. -else
  26782. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26783. -/* end confdefs.h. */
  26784. -#define _GNU_SOURCE 1
  26785. - #include <stdlib.h>
  26786. - #include <sys/types.h>
  26787. -int
  26788. -main ()
  26789. -{
  26790. -
  26791. - #undef ushort
  26792. - int a = sizeof(ushort);
  26793. -
  26794. - ;
  26795. - return 0;
  26796. -}
  26797. -_ACEOF
  26798. -if ac_fn_c_try_compile "$LINENO"; then :
  26799. - gnupg_cv_typedef_ushort=yes
  26800. -else
  26801. - gnupg_cv_typedef_ushort=no
  26802. -fi
  26803. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26804. -fi
  26805. -
  26806. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
  26807. -$as_echo "$gnupg_cv_typedef_ushort" >&6; }
  26808. - if test "$gnupg_cv_typedef_ushort" = yes; then
  26809. -
  26810. -$as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
  26811. -
  26812. - fi
  26813. -
  26814. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
  26815. -$as_echo_n "checking for ulong typedef... " >&6; }
  26816. - if test "${gnupg_cv_typedef_ulong+set}" = set; then :
  26817. - $as_echo_n "(cached) " >&6
  26818. -else
  26819. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26820. -/* end confdefs.h. */
  26821. -#define _GNU_SOURCE 1
  26822. - #include <stdlib.h>
  26823. - #include <sys/types.h>
  26824. -int
  26825. -main ()
  26826. -{
  26827. -
  26828. - #undef ulong
  26829. - int a = sizeof(ulong);
  26830. -
  26831. - ;
  26832. - return 0;
  26833. -}
  26834. -_ACEOF
  26835. -if ac_fn_c_try_compile "$LINENO"; then :
  26836. - gnupg_cv_typedef_ulong=yes
  26837. -else
  26838. - gnupg_cv_typedef_ulong=no
  26839. -fi
  26840. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26841. -fi
  26842. -
  26843. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
  26844. -$as_echo "$gnupg_cv_typedef_ulong" >&6; }
  26845. - if test "$gnupg_cv_typedef_ulong" = yes; then
  26846. -
  26847. -$as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
  26848. -
  26849. - fi
  26850. -
  26851. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
  26852. -$as_echo_n "checking for u16 typedef... " >&6; }
  26853. - if test "${gnupg_cv_typedef_u16+set}" = set; then :
  26854. - $as_echo_n "(cached) " >&6
  26855. -else
  26856. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26857. -/* end confdefs.h. */
  26858. -#define _GNU_SOURCE 1
  26859. - #include <stdlib.h>
  26860. - #include <sys/types.h>
  26861. -int
  26862. -main ()
  26863. -{
  26864. -
  26865. - #undef u16
  26866. - int a = sizeof(u16);
  26867. -
  26868. - ;
  26869. - return 0;
  26870. -}
  26871. -_ACEOF
  26872. -if ac_fn_c_try_compile "$LINENO"; then :
  26873. - gnupg_cv_typedef_u16=yes
  26874. -else
  26875. - gnupg_cv_typedef_u16=no
  26876. -fi
  26877. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26878. -fi
  26879. -
  26880. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
  26881. -$as_echo "$gnupg_cv_typedef_u16" >&6; }
  26882. - if test "$gnupg_cv_typedef_u16" = yes; then
  26883. -
  26884. -$as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
  26885. -
  26886. - fi
  26887. -
  26888. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
  26889. -$as_echo_n "checking for u32 typedef... " >&6; }
  26890. - if test "${gnupg_cv_typedef_u32+set}" = set; then :
  26891. - $as_echo_n "(cached) " >&6
  26892. -else
  26893. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26894. -/* end confdefs.h. */
  26895. -#define _GNU_SOURCE 1
  26896. - #include <stdlib.h>
  26897. - #include <sys/types.h>
  26898. -int
  26899. -main ()
  26900. -{
  26901. -
  26902. - #undef u32
  26903. - int a = sizeof(u32);
  26904. -
  26905. - ;
  26906. - return 0;
  26907. -}
  26908. -_ACEOF
  26909. -if ac_fn_c_try_compile "$LINENO"; then :
  26910. - gnupg_cv_typedef_u32=yes
  26911. -else
  26912. - gnupg_cv_typedef_u32=no
  26913. -fi
  26914. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26915. -fi
  26916. -
  26917. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
  26918. -$as_echo "$gnupg_cv_typedef_u32" >&6; }
  26919. - if test "$gnupg_cv_typedef_u32" = yes; then
  26920. -
  26921. -$as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
  26922. -
  26923. - fi
  26924. -
  26925. -
  26926. -
  26927. - for ac_header in sys/socket.h
  26928. -do :
  26929. - ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  26930. -if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  26931. - cat >>confdefs.h <<_ACEOF
  26932. -#define HAVE_SYS_SOCKET_H 1
  26933. -_ACEOF
  26934. -
  26935. -fi
  26936. -
  26937. -done
  26938. -
  26939. -
  26940. -
  26941. -
  26942. - :
  26943. -
  26944. -
  26945. -
  26946. -
  26947. -
  26948. - if test $ac_cv_header_sys_socket_h = yes; then
  26949. - SYS_SOCKET_H=''
  26950. - else
  26951. - for ac_header in winsock2.h ws2tcpip.h
  26952. -do :
  26953. - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26954. -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  26955. -eval as_val=\$$as_ac_Header
  26956. - if test "x$as_val" = x""yes; then :
  26957. - cat >>confdefs.h <<_ACEOF
  26958. -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26959. -_ACEOF
  26960. -
  26961. -fi
  26962. -
  26963. -done
  26964. -
  26965. - SYS_SOCKET_H='sys/socket.h'
  26966. - fi
  26967. -
  26968. -
  26969. - ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  26970. - #if HAVE_SYS_SOCKET_H
  26971. - # include <sys/socket.h>
  26972. - #elif HAVE_WS2TCPIP_H
  26973. - # include <ws2tcpip.h>
  26974. - #endif
  26975. -"
  26976. -if test "x$ac_cv_type_socklen_t" = x""yes; then :
  26977. -
  26978. -else
  26979. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
  26980. -$as_echo_n "checking for socklen_t equivalent... " >&6; }
  26981. - if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then :
  26982. - $as_echo_n "(cached) " >&6
  26983. -else
  26984. - # Systems have either "struct sockaddr *" or
  26985. - # "void *" as the second argument to getpeername
  26986. - gl_cv_socklen_t_equiv=
  26987. - for arg2 in "struct sockaddr" void; do
  26988. - for t in int size_t "unsigned int" "long int" "unsigned long int"; do
  26989. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26990. -/* end confdefs.h. */
  26991. -#include <sys/types.h>
  26992. - #include <sys/socket.h>
  26993. -
  26994. - int getpeername (int, $arg2 *, $t *);
  26995. -int
  26996. -main ()
  26997. -{
  26998. -$t len;
  26999. - getpeername (0, 0, &len);
  27000. - ;
  27001. - return 0;
  27002. -}
  27003. -_ACEOF
  27004. -if ac_fn_c_try_compile "$LINENO"; then :
  27005. - gl_cv_socklen_t_equiv="$t"
  27006. -fi
  27007. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27008. - test "$gl_cv_socklen_t_equiv" != "" && break
  27009. - done
  27010. - test "$gl_cv_socklen_t_equiv" != "" && break
  27011. - done
  27012. -
  27013. -fi
  27014. -
  27015. - if test "$gl_cv_socklen_t_equiv" = ""; then
  27016. - as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
  27017. - fi
  27018. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
  27019. -$as_echo "$gl_cv_socklen_t_equiv" >&6; }
  27020. -
  27021. -cat >>confdefs.h <<_ACEOF
  27022. -#define socklen_t $gl_cv_socklen_t_equiv
  27023. -_ACEOF
  27024. -
  27025. -fi
  27026. -
  27027. -case "${host}" in
  27028. - *-*-mingw32*)
  27029. - # socklen_t may or may not be defined depending on what headers
  27030. - # are included. To be safe we use int as this is the actual type.
  27031. - FALLBACK_SOCKLEN_T="typedef int gcry_socklen_t;"
  27032. - ;;
  27033. - *)
  27034. - if test ".$gl_cv_socklen_t_equiv" = "."; then
  27035. - FALLBACK_SOCKLEN_T="typedef socklen_t gcry_socklen_t;"
  27036. - else
  27037. - FALLBACK_SOCKLEN_T="typedef ${gl_cv_socklen_t_equiv} gcry_socklen_t;"
  27038. - fi
  27039. -esac
  27040. -
  27041. -
  27042. -#
  27043. -# Check for ELF visibility support.
  27044. -#
  27045. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
  27046. -$as_echo_n "checking whether the visibility attribute is supported... " >&6; }
  27047. -if test "${gcry_cv_visibility_attribute+set}" = set; then :
  27048. - $as_echo_n "(cached) " >&6
  27049. -else
  27050. - gcry_cv_visibility_attribute=no
  27051. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27052. -/* end confdefs.h. */
  27053. -int foo __attribute__ ((visibility ("hidden"))) = 1;
  27054. - int bar __attribute__ ((visibility ("protected"))) = 1;
  27055. -
  27056. -_ACEOF
  27057. -
  27058. - if ${CC-cc} -Werror -S conftest.c -o conftest.s \
  27059. - 1>&5 2>&5 ; then
  27060. - if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
  27061. - if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
  27062. - gcry_cv_visibility_attribute=yes
  27063. - fi
  27064. - fi
  27065. - fi
  27066. -
  27067. -fi
  27068. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
  27069. -$as_echo "$gcry_cv_visibility_attribute" >&6; }
  27070. -if test "$gcry_cv_visibility_attribute" = "yes"; then
  27071. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
  27072. -$as_echo_n "checking for broken visibility attribute... " >&6; }
  27073. -if test "${gcry_cv_broken_visibility_attribute+set}" = set; then :
  27074. - $as_echo_n "(cached) " >&6
  27075. -else
  27076. - gcry_cv_broken_visibility_attribute=yes
  27077. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27078. -/* end confdefs.h. */
  27079. -int foo (int x);
  27080. - int bar (int x) __asm__ ("foo")
  27081. - __attribute__ ((visibility ("hidden")));
  27082. - int bar (int x) { return x; }
  27083. -
  27084. -_ACEOF
  27085. -
  27086. - if ${CC-cc} -Werror -S conftest.c -o conftest.s \
  27087. - 1>&5 2>&5 ; then
  27088. - if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
  27089. - then
  27090. - gcry_cv_broken_visibility_attribute=no
  27091. - fi
  27092. - fi
  27093. -
  27094. -fi
  27095. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
  27096. -$as_echo "$gcry_cv_broken_visibility_attribute" >&6; }
  27097. -fi
  27098. -if test "$gcry_cv_visibility_attribute" = "yes"; then
  27099. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
  27100. -$as_echo_n "checking for broken alias attribute... " >&6; }
  27101. -if test "${gcry_cv_broken_alias_attribute+set}" = set; then :
  27102. - $as_echo_n "(cached) " >&6
  27103. -else
  27104. - gcry_cv_broken_alias_attribute=yes
  27105. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27106. -/* end confdefs.h. */
  27107. -extern int foo (int x) __asm ("xyzzy");
  27108. - int bar (int x) { return x; }
  27109. - extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
  27110. - extern int dfoo;
  27111. - extern __typeof (dfoo) dfoo __asm ("abccb");
  27112. - int dfoo = 1;
  27113. -
  27114. -_ACEOF
  27115. -
  27116. - if ${CC-cc} -Werror -S conftest.c -o conftest.s \
  27117. - 1>&5 2>&5 ; then
  27118. - if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
  27119. - grep 'abccb' conftest.s >/dev/null 2>&1; then
  27120. - gcry_cv_broken_alias_attribute=no
  27121. - fi
  27122. - fi
  27123. -
  27124. -fi
  27125. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
  27126. -$as_echo "$gcry_cv_broken_alias_attribute" >&6; }
  27127. -fi
  27128. -if test "$gcry_cv_visibility_attribute" = "yes"; then
  27129. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
  27130. -$as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
  27131. -if test "${gcry_cv_gcc_has_f_visibility+set}" = set; then :
  27132. - $as_echo_n "(cached) " >&6
  27133. -else
  27134. - gcry_cv_gcc_has_f_visibility=no
  27135. - _gcc_cflags_save=$CFLAGS
  27136. - CFLAGS="-fvisibility=hidden"
  27137. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27138. -/* end confdefs.h. */
  27139. -
  27140. -int
  27141. -main ()
  27142. -{
  27143. -
  27144. - ;
  27145. - return 0;
  27146. -}
  27147. -_ACEOF
  27148. -if ac_fn_c_try_compile "$LINENO"; then :
  27149. - gcry_cv_gcc_has_f_visibility=yes
  27150. -fi
  27151. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27152. - CFLAGS=$_gcc_cflags_save;
  27153. -
  27154. -fi
  27155. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
  27156. -$as_echo "$gcry_cv_gcc_has_f_visibility" >&6; }
  27157. -fi
  27158. -if test "$gcry_cv_visibility_attribute" = "yes" \
  27159. - && test "$gcry_cv_broken_visibility_attribute" != "yes" \
  27160. - && test "$gcry_cv_broken_alias_attribute" != "yes" \
  27161. - && test "$gcry_cv_gcc_has_f_visibility" = "yes"
  27162. - then
  27163. -
  27164. -$as_echo "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
  27165. -
  27166. - CFLAGS="$CFLAGS -fvisibility=hidden"
  27167. -fi
  27168. -
  27169. -
  27170. -#######################################
  27171. -#### Checks for library functions. ####
  27172. -#######################################
  27173. -
  27174. -for ac_func in vprintf
  27175. -do :
  27176. - ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  27177. -if test "x$ac_cv_func_vprintf" = x""yes; then :
  27178. - cat >>confdefs.h <<_ACEOF
  27179. -#define HAVE_VPRINTF 1
  27180. -_ACEOF
  27181. -
  27182. -ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  27183. -if test "x$ac_cv_func__doprnt" = x""yes; then :
  27184. -
  27185. -$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  27186. -
  27187. -fi
  27188. -
  27189. -fi
  27190. -done
  27191. -
  27192. -
  27193. -# We have replacements for these in src/missing-string.c
  27194. -for ac_func in stpcpy strcasecmp
  27195. -do :
  27196. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27197. -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27198. -eval as_val=\$$as_ac_var
  27199. - if test "x$as_val" = x""yes; then :
  27200. - cat >>confdefs.h <<_ACEOF
  27201. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27202. -_ACEOF
  27203. -
  27204. -fi
  27205. -done
  27206. -
  27207. -# We have replacements for these in src/g10lib.h
  27208. -for ac_func in strtoul memmove stricmp atexit raise
  27209. -do :
  27210. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27211. -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27212. -eval as_val=\$$as_ac_var
  27213. - if test "x$as_val" = x""yes; then :
  27214. - cat >>confdefs.h <<_ACEOF
  27215. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27216. -_ACEOF
  27217. -
  27218. -fi
  27219. -done
  27220. -
  27221. -# Other checks
  27222. -for ac_func in strerror rand mmap getpagesize sysconf waitpid wait4
  27223. -do :
  27224. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27225. -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27226. -eval as_val=\$$as_ac_var
  27227. - if test "x$as_val" = x""yes; then :
  27228. - cat >>confdefs.h <<_ACEOF
  27229. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27230. -_ACEOF
  27231. -
  27232. -fi
  27233. -done
  27234. -
  27235. -for ac_func in gettimeofday getrusage gethrtime clock_gettime syslog
  27236. -do :
  27237. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27238. -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27239. -eval as_val=\$$as_ac_var
  27240. - if test "x$as_val" = x""yes; then :
  27241. - cat >>confdefs.h <<_ACEOF
  27242. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27243. -_ACEOF
  27244. -
  27245. -fi
  27246. -done
  27247. -
  27248. -for ac_func in fcntl ftruncate
  27249. -do :
  27250. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27251. -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27252. -eval as_val=\$$as_ac_var
  27253. - if test "x$as_val" = x""yes; then :
  27254. - cat >>confdefs.h <<_ACEOF
  27255. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27256. -_ACEOF
  27257. -
  27258. -fi
  27259. -done
  27260. -
  27261. -
  27262. - for ac_func in mlock
  27263. -do :
  27264. - ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
  27265. -if test "x$ac_cv_func_mlock" = x""yes; then :
  27266. - cat >>confdefs.h <<_ACEOF
  27267. -#define HAVE_MLOCK 1
  27268. -_ACEOF
  27269. -
  27270. -fi
  27271. -done
  27272. -
  27273. - if test "$ac_cv_func_mlock" = "no"; then
  27274. - for ac_header in sys/mman.h
  27275. -do :
  27276. - ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  27277. -if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
  27278. - cat >>confdefs.h <<_ACEOF
  27279. -#define HAVE_SYS_MMAN_H 1
  27280. -_ACEOF
  27281. -
  27282. -fi
  27283. -
  27284. -done
  27285. -
  27286. - if test "$ac_cv_header_sys_mman_h" = "yes"; then
  27287. - # Add librt to LIBS:
  27288. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
  27289. -$as_echo_n "checking for memlk in -lrt... " >&6; }
  27290. -if test "${ac_cv_lib_rt_memlk+set}" = set; then :
  27291. - $as_echo_n "(cached) " >&6
  27292. -else
  27293. - ac_check_lib_save_LIBS=$LIBS
  27294. -LIBS="-lrt $LIBS"
  27295. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27296. -/* end confdefs.h. */
  27297. -
  27298. -/* Override any GCC internal prototype to avoid an error.
  27299. - Use char because int might match the return type of a GCC
  27300. - builtin and then its argument prototype would still apply. */
  27301. -#ifdef __cplusplus
  27302. -extern "C"
  27303. -#endif
  27304. -char memlk ();
  27305. -int
  27306. -main ()
  27307. -{
  27308. -return memlk ();
  27309. - ;
  27310. - return 0;
  27311. -}
  27312. -_ACEOF
  27313. -if ac_fn_c_try_link "$LINENO"; then :
  27314. - ac_cv_lib_rt_memlk=yes
  27315. -else
  27316. - ac_cv_lib_rt_memlk=no
  27317. -fi
  27318. -rm -f core conftest.err conftest.$ac_objext \
  27319. - conftest$ac_exeext conftest.$ac_ext
  27320. -LIBS=$ac_check_lib_save_LIBS
  27321. -fi
  27322. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
  27323. -$as_echo "$ac_cv_lib_rt_memlk" >&6; }
  27324. -if test "x$ac_cv_lib_rt_memlk" = x""yes; then :
  27325. - cat >>confdefs.h <<_ACEOF
  27326. -#define HAVE_LIBRT 1
  27327. -_ACEOF
  27328. -
  27329. - LIBS="-lrt $LIBS"
  27330. -
  27331. -fi
  27332. -
  27333. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
  27334. -$as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
  27335. -if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then :
  27336. - $as_echo_n "(cached) " >&6
  27337. -else
  27338. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27339. -/* end confdefs.h. */
  27340. -
  27341. - #include <assert.h>
  27342. - #ifdef HAVE_SYS_MMAN_H
  27343. - #include <sys/mman.h>
  27344. - #endif
  27345. -
  27346. -int
  27347. -main ()
  27348. -{
  27349. -
  27350. -int i;
  27351. -
  27352. -/* glibc defines this for functions which it implements
  27353. - * to always fail with ENOSYS. Some functions are actually
  27354. - * named something starting with __ and the normal name
  27355. - * is an alias. */
  27356. -#if defined (__stub_mlock) || defined (__stub___mlock)
  27357. -choke me
  27358. -#else
  27359. -mlock(&i, 4);
  27360. -#endif
  27361. -; return 0;
  27362. -
  27363. - ;
  27364. - return 0;
  27365. -}
  27366. -_ACEOF
  27367. -if ac_fn_c_try_link "$LINENO"; then :
  27368. - gnupg_cv_mlock_is_in_sys_mman=yes
  27369. -else
  27370. - gnupg_cv_mlock_is_in_sys_mman=no
  27371. -fi
  27372. -rm -f core conftest.err conftest.$ac_objext \
  27373. - conftest$ac_exeext conftest.$ac_ext
  27374. -fi
  27375. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
  27376. -$as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
  27377. - if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
  27378. -
  27379. -$as_echo "#define HAVE_MLOCK 1" >>confdefs.h
  27380. -
  27381. - fi
  27382. - fi
  27383. - fi
  27384. - if test "$ac_cv_func_mlock" = "yes"; then
  27385. - for ac_func in sysconf getpagesize
  27386. -do :
  27387. - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27388. -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27389. -eval as_val=\$$as_ac_var
  27390. - if test "x$as_val" = x""yes; then :
  27391. - cat >>confdefs.h <<_ACEOF
  27392. -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27393. -_ACEOF
  27394. -
  27395. -fi
  27396. -done
  27397. -
  27398. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
  27399. -$as_echo_n "checking whether mlock is broken... " >&6; }
  27400. - if test "${gnupg_cv_have_broken_mlock+set}" = set; then :
  27401. - $as_echo_n "(cached) " >&6
  27402. -else
  27403. - if test "$cross_compiling" = yes; then :
  27404. - gnupg_cv_have_broken_mlock="assume-no"
  27405. -
  27406. -else
  27407. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27408. -/* end confdefs.h. */
  27409. -
  27410. -#include <stdlib.h>
  27411. -#include <unistd.h>
  27412. -#include <errno.h>
  27413. -#include <sys/mman.h>
  27414. -#include <sys/types.h>
  27415. -#include <fcntl.h>
  27416. -
  27417. -int main()
  27418. -{
  27419. - char *pool;
  27420. - int err;
  27421. - long int pgsize;
  27422. -
  27423. -#if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
  27424. - pgsize = sysconf (_SC_PAGESIZE);
  27425. -#elif defined (HAVE_GETPAGESIZE)
  27426. - pgsize = getpagesize();
  27427. -#else
  27428. - pgsize = -1;
  27429. -#endif
  27430. -
  27431. - if (pgsize == -1)
  27432. - pgsize = 4096;
  27433. -
  27434. - pool = malloc( 4096 + pgsize );
  27435. - if( !pool )
  27436. - return 2;
  27437. - pool += (pgsize - ((long int)pool % pgsize));
  27438. -
  27439. - err = mlock( pool, 4096 );
  27440. - if( !err || errno == EPERM )
  27441. - return 0; /* okay */
  27442. -
  27443. - return 1; /* hmmm */
  27444. -}
  27445. -
  27446. -
  27447. -_ACEOF
  27448. -if ac_fn_c_try_run "$LINENO"; then :
  27449. - gnupg_cv_have_broken_mlock="no"
  27450. -else
  27451. - gnupg_cv_have_broken_mlock="yes"
  27452. -fi
  27453. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27454. - conftest.$ac_objext conftest.beam conftest.$ac_ext
  27455. -fi
  27456. -
  27457. -
  27458. -fi
  27459. -
  27460. - if test "$gnupg_cv_have_broken_mlock" = "yes"; then
  27461. -
  27462. -$as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
  27463. -
  27464. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27465. -$as_echo "yes" >&6; }
  27466. - else
  27467. - if test "$gnupg_cv_have_broken_mlock" = "no"; then
  27468. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27469. -$as_echo "no" >&6; }
  27470. - else
  27471. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
  27472. -$as_echo "assuming no" >&6; }
  27473. - fi
  27474. - fi
  27475. - fi
  27476. -
  27477. -
  27478. -
  27479. -#
  27480. -# Check wether it is necessary to link against libdl.
  27481. -#
  27482. -DL_LIBS=""
  27483. -if test "$use_hmac_binary_check" = yes ; then
  27484. - _gcry_save_libs="$LIBS"
  27485. - LIBS=""
  27486. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  27487. -$as_echo_n "checking for library containing dlopen... " >&6; }
  27488. -if test "${ac_cv_search_dlopen+set}" = set; then :
  27489. - $as_echo_n "(cached) " >&6
  27490. -else
  27491. - ac_func_search_save_LIBS=$LIBS
  27492. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27493. -/* end confdefs.h. */
  27494. -
  27495. -/* Override any GCC internal prototype to avoid an error.
  27496. - Use char because int might match the return type of a GCC
  27497. - builtin and then its argument prototype would still apply. */
  27498. -#ifdef __cplusplus
  27499. -extern "C"
  27500. -#endif
  27501. -char dlopen ();
  27502. -int
  27503. -main ()
  27504. -{
  27505. -return dlopen ();
  27506. - ;
  27507. - return 0;
  27508. -}
  27509. -_ACEOF
  27510. -for ac_lib in '' c dl; do
  27511. - if test -z "$ac_lib"; then
  27512. - ac_res="none required"
  27513. - else
  27514. - ac_res=-l$ac_lib
  27515. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  27516. - fi
  27517. - if ac_fn_c_try_link "$LINENO"; then :
  27518. - ac_cv_search_dlopen=$ac_res
  27519. -fi
  27520. -rm -f core conftest.err conftest.$ac_objext \
  27521. - conftest$ac_exeext
  27522. - if test "${ac_cv_search_dlopen+set}" = set; then :
  27523. - break
  27524. -fi
  27525. -done
  27526. -if test "${ac_cv_search_dlopen+set}" = set; then :
  27527. -
  27528. -else
  27529. - ac_cv_search_dlopen=no
  27530. -fi
  27531. -rm conftest.$ac_ext
  27532. -LIBS=$ac_func_search_save_LIBS
  27533. -fi
  27534. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  27535. -$as_echo "$ac_cv_search_dlopen" >&6; }
  27536. -ac_res=$ac_cv_search_dlopen
  27537. -if test "$ac_res" != no; then :
  27538. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  27539. -
  27540. -fi
  27541. -
  27542. - DL_LIBS=$LIBS
  27543. - LIBS="$_gcry_save_libs"
  27544. - LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}"
  27545. -fi
  27546. -
  27547. -
  27548. -
  27549. -#
  27550. -# Check whether we can use Linux capabilities as requested.
  27551. -#
  27552. -if test "$use_capabilities" = "yes" ; then
  27553. -use_capabilities=no
  27554. -for ac_header in sys/capability.h
  27555. -do :
  27556. - ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  27557. -if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
  27558. - cat >>confdefs.h <<_ACEOF
  27559. -#define HAVE_SYS_CAPABILITY_H 1
  27560. -_ACEOF
  27561. -
  27562. -fi
  27563. -
  27564. -done
  27565. -
  27566. -if test "$ac_cv_header_sys_capability_h" = "yes" ; then
  27567. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
  27568. -$as_echo_n "checking for cap_init in -lcap... " >&6; }
  27569. -if test "${ac_cv_lib_cap_cap_init+set}" = set; then :
  27570. - $as_echo_n "(cached) " >&6
  27571. -else
  27572. - ac_check_lib_save_LIBS=$LIBS
  27573. -LIBS="-lcap $LIBS"
  27574. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27575. -/* end confdefs.h. */
  27576. -
  27577. -/* Override any GCC internal prototype to avoid an error.
  27578. - Use char because int might match the return type of a GCC
  27579. - builtin and then its argument prototype would still apply. */
  27580. -#ifdef __cplusplus
  27581. -extern "C"
  27582. -#endif
  27583. -char cap_init ();
  27584. -int
  27585. -main ()
  27586. -{
  27587. -return cap_init ();
  27588. - ;
  27589. - return 0;
  27590. -}
  27591. -_ACEOF
  27592. -if ac_fn_c_try_link "$LINENO"; then :
  27593. - ac_cv_lib_cap_cap_init=yes
  27594. -else
  27595. - ac_cv_lib_cap_cap_init=no
  27596. -fi
  27597. -rm -f core conftest.err conftest.$ac_objext \
  27598. - conftest$ac_exeext conftest.$ac_ext
  27599. -LIBS=$ac_check_lib_save_LIBS
  27600. -fi
  27601. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
  27602. -$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
  27603. -if test "x$ac_cv_lib_cap_cap_init" = x""yes; then :
  27604. - ac_need_libcap=1
  27605. -fi
  27606. -
  27607. - if test "$ac_cv_lib_cap_cap_init" = "yes"; then
  27608. -
  27609. -$as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
  27610. -
  27611. - LIBS="$LIBS -lcap"
  27612. - use_capabilities=yes
  27613. - fi
  27614. -fi
  27615. -if test "$use_capabilities" = "no" ; then
  27616. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
  27617. -***
  27618. -*** The use of capabilities on this system is not possible.
  27619. -*** You need a recent Linux kernel and some patches:
  27620. -*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
  27621. -*** fcap-module-990613.tar.gz (kernel module)
  27622. -*** libcap-1.92.tar.gz (user mode library and utilities)
  27623. -*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
  27624. -*** set (filesystems menu). Be warned: This code is *really* ALPHA.
  27625. -***" >&5
  27626. -$as_echo "$as_me: WARNING:
  27627. -***
  27628. -*** The use of capabilities on this system is not possible.
  27629. -*** You need a recent Linux kernel and some patches:
  27630. -*** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
  27631. -*** fcap-module-990613.tar.gz (kernel module)
  27632. -*** libcap-1.92.tar.gz (user mode library and utilities)
  27633. -*** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
  27634. -*** set (filesystems menu). Be warned: This code is *really* ALPHA.
  27635. -***" >&2;}
  27636. -fi
  27637. -fi
  27638. -
  27639. -# Check whether a random device is available.
  27640. -if test "$try_dev_random" = yes ; then
  27641. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
  27642. -$as_echo_n "checking for random device... " >&6; }
  27643. -if test "${ac_cv_have_dev_random+set}" = set; then :
  27644. - $as_echo_n "(cached) " >&6
  27645. -else
  27646. - if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
  27647. - ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
  27648. -fi
  27649. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
  27650. -$as_echo "$ac_cv_have_dev_random" >&6; }
  27651. - if test "$ac_cv_have_dev_random" = yes; then
  27652. -
  27653. -$as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
  27654. -
  27655. - fi
  27656. -else
  27657. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
  27658. -$as_echo_n "checking for random device... " >&6; }
  27659. - ac_cv_have_dev_random=no
  27660. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
  27661. -$as_echo "has been disabled" >&6; }
  27662. -fi
  27663. -
  27664. -# Figure out the random modules for this configuration.
  27665. -if test "$random" = "default"; then
  27666. -
  27667. - # Select default value.
  27668. - if test "$ac_cv_have_dev_random" = yes; then
  27669. - # Try Linuxish random device.
  27670. - random_modules="linux"
  27671. - else
  27672. - case "${host}" in
  27673. - *-*-mingw32*|*-*-cygwin*)
  27674. - # Windows random device.
  27675. - random_modules="w32"
  27676. - ;;
  27677. - *)
  27678. - # Build everything, allow to select at runtime.
  27679. - random_modules="$auto_random_modules"
  27680. - ;;
  27681. - esac
  27682. - fi
  27683. -else
  27684. - if test "$random" = "auto"; then
  27685. - # Build everything, allow to select at runtime.
  27686. - random_modules="$auto_random_modules"
  27687. - else
  27688. - random_modules="$random"
  27689. - fi
  27690. -fi
  27691. -
  27692. -
  27693. -#
  27694. -# Setup assembler stuff.
  27695. -#
  27696. -tmp_do_check="no"
  27697. -case "${host}" in
  27698. - *-mingw32msvc*)
  27699. - ac_cv_sys_symbol_underscore=yes
  27700. - ;;
  27701. - i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
  27702. - ac_cv_sys_symbol_underscore=yes
  27703. - ;;
  27704. - *)
  27705. - if test "$cross_compiling" = yes; then
  27706. - if test "x$ac_cv_sys_symbol_underscore" = x ; then
  27707. - ac_cv_sys_symbol_underscore=yes
  27708. - fi
  27709. - else
  27710. - tmp_do_check="yes"
  27711. - fi
  27712. - ;;
  27713. -esac
  27714. -if test "$tmp_do_check" = "yes"; then
  27715. -
  27716. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  27717. -$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  27718. - if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
  27719. - $as_echo_n "(cached) " >&6
  27720. -else
  27721. - ac_cv_sys_symbol_underscore=no
  27722. - cat > conftest.$ac_ext <<EOF
  27723. - void nm_test_func(){}
  27724. - int main(){nm_test_func;return 0;}
  27725. -EOF
  27726. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  27727. - (eval $ac_compile) 2>&5
  27728. - ac_status=$?
  27729. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27730. - test $ac_status = 0; }; then
  27731. - # Now try to grab the symbols.
  27732. - ac_nlist=conftest.nm
  27733. - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist\""; } >&5
  27734. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) 2>&5
  27735. - ac_status=$?
  27736. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27737. - test $ac_status = 0; } && test -s "$ac_nlist"; then
  27738. - # See whether the symbols have a leading underscore.
  27739. - if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
  27740. - ac_cv_sys_symbol_underscore=yes
  27741. - else
  27742. - if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
  27743. - :
  27744. - else
  27745. - echo "configure: cannot find nm_test_func in $ac_nlist" >&5
  27746. - fi
  27747. - fi
  27748. - else
  27749. - echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
  27750. - fi
  27751. - else
  27752. - echo "configure: failed program was:" >&5
  27753. - cat conftest.c >&5
  27754. - fi
  27755. - rm -rf conftest*
  27756. -
  27757. -fi
  27758. -
  27759. - else
  27760. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
  27761. -$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
  27762. - fi
  27763. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
  27764. -$as_echo "$ac_cv_sys_symbol_underscore" >&6; }
  27765. -if test x$ac_cv_sys_symbol_underscore = xyes; then
  27766. -
  27767. -$as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
  27768. -
  27769. -fi
  27770. -
  27771. -# Check whether --enable-mpi-path was given.
  27772. -if test "${enable_mpi_path+set}" = set; then :
  27773. - enableval=$enable_mpi_path; mpi_extra_path="$enableval"
  27774. -else
  27775. - mpi_extra_path=""
  27776. -fi
  27777. -
  27778. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi assembler functions" >&5
  27779. -$as_echo_n "checking for mpi assembler functions... " >&6; }
  27780. -if test -f $srcdir/mpi/config.links ; then
  27781. - . $srcdir/mpi/config.links
  27782. - ac_config_links="$ac_config_links "$mpi_ln_list""
  27783. -
  27784. - ac_cv_mpi_sflags="$mpi_sflags"
  27785. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  27786. -$as_echo "done" >&6; }
  27787. -else
  27788. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  27789. -$as_echo "failed" >&6; }
  27790. - as_fn_error "mpi/config.links missing!" "$LINENO" 5
  27791. -fi
  27792. -MPI_SFLAGS="$ac_cv_mpi_sflags"
  27793. -
  27794. -
  27795. - if test "$mpi_mod_asm_mpih_add1" = yes; then
  27796. - MPI_MOD_ASM_MPIH_ADD1_TRUE=
  27797. - MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
  27798. -else
  27799. - MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
  27800. - MPI_MOD_ASM_MPIH_ADD1_FALSE=
  27801. -fi
  27802. -
  27803. - if test "$mpi_mod_asm_mpih_sub1" = yes; then
  27804. - MPI_MOD_ASM_MPIH_SUB1_TRUE=
  27805. - MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
  27806. -else
  27807. - MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
  27808. - MPI_MOD_ASM_MPIH_SUB1_FALSE=
  27809. -fi
  27810. -
  27811. - if test "$mpi_mod_asm_mpih_mul1" = yes; then
  27812. - MPI_MOD_ASM_MPIH_MUL1_TRUE=
  27813. - MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
  27814. -else
  27815. - MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
  27816. - MPI_MOD_ASM_MPIH_MUL1_FALSE=
  27817. -fi
  27818. -
  27819. - if test "$mpi_mod_asm_mpih_mul2" = yes; then
  27820. - MPI_MOD_ASM_MPIH_MUL2_TRUE=
  27821. - MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
  27822. -else
  27823. - MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
  27824. - MPI_MOD_ASM_MPIH_MUL2_FALSE=
  27825. -fi
  27826. -
  27827. - if test "$mpi_mod_asm_mpih_mul3" = yes; then
  27828. - MPI_MOD_ASM_MPIH_MUL3_TRUE=
  27829. - MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
  27830. -else
  27831. - MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
  27832. - MPI_MOD_ASM_MPIH_MUL3_FALSE=
  27833. -fi
  27834. -
  27835. - if test "$mpi_mod_asm_mpih_lshift" = yes; then
  27836. - MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
  27837. - MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
  27838. -else
  27839. - MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
  27840. - MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
  27841. -fi
  27842. -
  27843. - if test "$mpi_mod_asm_mpih_rshift" = yes; then
  27844. - MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
  27845. - MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
  27846. -else
  27847. - MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
  27848. - MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
  27849. -fi
  27850. -
  27851. - if test "$mpi_mod_asm_udiv" = yes; then
  27852. - MPI_MOD_ASM_UDIV_TRUE=
  27853. - MPI_MOD_ASM_UDIV_FALSE='#'
  27854. -else
  27855. - MPI_MOD_ASM_UDIV_TRUE='#'
  27856. - MPI_MOD_ASM_UDIV_FALSE=
  27857. -fi
  27858. -
  27859. - if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
  27860. - MPI_MOD_ASM_UDIV_QRNND_TRUE=
  27861. - MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
  27862. -else
  27863. - MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
  27864. - MPI_MOD_ASM_UDIV_QRNND_FALSE=
  27865. -fi
  27866. -
  27867. - if test "$mpi_mod_c_mpih_add1" = yes; then
  27868. - MPI_MOD_C_MPIH_ADD1_TRUE=
  27869. - MPI_MOD_C_MPIH_ADD1_FALSE='#'
  27870. -else
  27871. - MPI_MOD_C_MPIH_ADD1_TRUE='#'
  27872. - MPI_MOD_C_MPIH_ADD1_FALSE=
  27873. -fi
  27874. -
  27875. - if test "$mpi_mod_c_mpih_sub1" = yes; then
  27876. - MPI_MOD_C_MPIH_SUB1_TRUE=
  27877. - MPI_MOD_C_MPIH_SUB1_FALSE='#'
  27878. -else
  27879. - MPI_MOD_C_MPIH_SUB1_TRUE='#'
  27880. - MPI_MOD_C_MPIH_SUB1_FALSE=
  27881. -fi
  27882. -
  27883. - if test "$mpi_mod_c_mpih_mul1" = yes; then
  27884. - MPI_MOD_C_MPIH_MUL1_TRUE=
  27885. - MPI_MOD_C_MPIH_MUL1_FALSE='#'
  27886. -else
  27887. - MPI_MOD_C_MPIH_MUL1_TRUE='#'
  27888. - MPI_MOD_C_MPIH_MUL1_FALSE=
  27889. -fi
  27890. -
  27891. - if test "$mpi_mod_c_mpih_mul2" = yes; then
  27892. - MPI_MOD_C_MPIH_MUL2_TRUE=
  27893. - MPI_MOD_C_MPIH_MUL2_FALSE='#'
  27894. -else
  27895. - MPI_MOD_C_MPIH_MUL2_TRUE='#'
  27896. - MPI_MOD_C_MPIH_MUL2_FALSE=
  27897. -fi
  27898. -
  27899. - if test "$mpi_mod_c_mpih_mul3" = yes; then
  27900. - MPI_MOD_C_MPIH_MUL3_TRUE=
  27901. - MPI_MOD_C_MPIH_MUL3_FALSE='#'
  27902. -else
  27903. - MPI_MOD_C_MPIH_MUL3_TRUE='#'
  27904. - MPI_MOD_C_MPIH_MUL3_FALSE=
  27905. -fi
  27906. -
  27907. - if test "$mpi_mod_c_mpih_lshift" = yes; then
  27908. - MPI_MOD_C_MPIH_LSHIFT_TRUE=
  27909. - MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
  27910. -else
  27911. - MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
  27912. - MPI_MOD_C_MPIH_LSHIFT_FALSE=
  27913. -fi
  27914. -
  27915. - if test "$mpi_mod_c_mpih_rshift" = yes; then
  27916. - MPI_MOD_C_MPIH_RSHIFT_TRUE=
  27917. - MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
  27918. -else
  27919. - MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
  27920. - MPI_MOD_C_MPIH_RSHIFT_FALSE=
  27921. -fi
  27922. -
  27923. - if test "$mpi_mod_c_udiv" = yes; then
  27924. - MPI_MOD_C_UDIV_TRUE=
  27925. - MPI_MOD_C_UDIV_FALSE='#'
  27926. -else
  27927. - MPI_MOD_C_UDIV_TRUE='#'
  27928. - MPI_MOD_C_UDIV_FALSE=
  27929. -fi
  27930. -
  27931. - if test "$mpi_mod_c_udiv_qrnnd" = yes; then
  27932. - MPI_MOD_C_UDIV_QRNND_TRUE=
  27933. - MPI_MOD_C_UDIV_QRNND_FALSE='#'
  27934. -else
  27935. - MPI_MOD_C_UDIV_QRNND_TRUE='#'
  27936. - MPI_MOD_C_UDIV_QRNND_FALSE=
  27937. -fi
  27938. -
  27939. -
  27940. -if test "$is_development_version" = "yes"; then
  27941. -
  27942. -$as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
  27943. -
  27944. -fi
  27945. -
  27946. -
  27947. - if test x$cross_compiling = xyes; then
  27948. - CROSS_COMPILING_TRUE=
  27949. - CROSS_COMPILING_FALSE='#'
  27950. -else
  27951. - CROSS_COMPILING_TRUE='#'
  27952. - CROSS_COMPILING_FALSE=
  27953. -fi
  27954. -
  27955. -
  27956. -
  27957. -# This is handy for debugging so the compiler doesn't rearrange
  27958. -# things and eliminate variables.
  27959. -# Check whether --enable-optimization was given.
  27960. -if test "${enable_optimization+set}" = set; then :
  27961. - enableval=$enable_optimization; if test $enableval = no ; then
  27962. - CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
  27963. - fi
  27964. -fi
  27965. -
  27966. -
  27967. -# CFLAGS mangling when using gcc.
  27968. -if test "$GCC" = yes; then
  27969. - CFLAGS="$CFLAGS -Wall"
  27970. - if test "$USE_MAINTAINER_MODE" = "yes"; then
  27971. - CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
  27972. - CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
  27973. -
  27974. - # If -Wno-missing-field-initializers is supported we can enable a
  27975. - # a bunch of really useful warnings.
  27976. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
  27977. -$as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
  27978. - _gcc_cflags_save=$CFLAGS
  27979. - CFLAGS="-Wno-missing-field-initializers"
  27980. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27981. -/* end confdefs.h. */
  27982. -
  27983. -int
  27984. -main ()
  27985. -{
  27986. -
  27987. - ;
  27988. - return 0;
  27989. -}
  27990. -_ACEOF
  27991. -if ac_fn_c_try_compile "$LINENO"; then :
  27992. - _gcc_wopt=yes
  27993. -else
  27994. - _gcc_wopt=no
  27995. -fi
  27996. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27997. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
  27998. -$as_echo "$_gcc_wopt" >&6; }
  27999. - CFLAGS=$_gcc_cflags_save;
  28000. - if test x"$_gcc_wopt" = xyes ; then
  28001. - CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
  28002. - CFLAGS="$CFLAGS -Wwrite-strings"
  28003. - CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  28004. - CFLAGS="$CFLAGS -Wno-missing-field-initializers"
  28005. - CFLAGS="$CFLAGS -Wno-sign-compare"
  28006. - fi
  28007. -
  28008. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
  28009. -$as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
  28010. - _gcc_cflags_save=$CFLAGS
  28011. - CFLAGS="-Wpointer-arith"
  28012. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28013. -/* end confdefs.h. */
  28014. -
  28015. -int
  28016. -main ()
  28017. -{
  28018. -
  28019. - ;
  28020. - return 0;
  28021. -}
  28022. -_ACEOF
  28023. -if ac_fn_c_try_compile "$LINENO"; then :
  28024. - _gcc_wopt=yes
  28025. -else
  28026. - _gcc_wopt=no
  28027. -fi
  28028. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28029. - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
  28030. -$as_echo "$_gcc_wopt" >&6; }
  28031. - CFLAGS=$_gcc_cflags_save;
  28032. - if test x"$_gcc_wopt" = xyes ; then
  28033. - CFLAGS="$CFLAGS -Wpointer-arith"
  28034. - fi
  28035. - fi
  28036. -
  28037. -fi
  28038. -
  28039. -# Check whether as(1) supports a noeexecstack feature. This test
  28040. -# includes an override option.
  28041. -
  28042. -
  28043. -
  28044. -
  28045. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
  28046. -$as_echo_n "checking whether non excutable stack support is requested... " >&6; }
  28047. -# Check whether --enable-noexecstack was given.
  28048. -if test "${enable_noexecstack+set}" = set; then :
  28049. - enableval=$enable_noexecstack; noexecstack_support=$enableval
  28050. -else
  28051. - noexecstack_support=yes
  28052. -fi
  28053. -
  28054. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
  28055. -$as_echo "$noexecstack_support" >&6; }
  28056. -
  28057. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
  28058. -$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
  28059. -if test "${cl_cv_as_noexecstack+set}" = set; then :
  28060. - $as_echo_n "(cached) " >&6
  28061. -else
  28062. - cat > conftest.c <<EOF
  28063. -void foo() {}
  28064. -EOF
  28065. - if { ac_try='${CC} $CFLAGS $CPPFLAGS
  28066. - -S -o conftest.s conftest.c >/dev/null'
  28067. - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  28068. - (eval $ac_try) 2>&5
  28069. - ac_status=$?
  28070. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28071. - test $ac_status = 0; }; } \
  28072. - && grep .note.GNU-stack conftest.s >/dev/null \
  28073. - && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
  28074. - -c -o conftest.o conftest.s >/dev/null'
  28075. - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  28076. - (eval $ac_try) 2>&5
  28077. - ac_status=$?
  28078. - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28079. - test $ac_status = 0; }; }
  28080. - then
  28081. - cl_cv_as_noexecstack=yes
  28082. - else
  28083. - cl_cv_as_noexecstack=no
  28084. - fi
  28085. - rm -f conftest*
  28086. -fi
  28087. -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
  28088. -$as_echo "$cl_cv_as_noexecstack" >&6; }
  28089. - if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
  28090. - NOEXECSTACK_FLAGS="-Wa,--noexecstack"
  28091. - else
  28092. - NOEXECSTACK_FLAGS=
  28093. - fi
  28094. -
  28095. -
  28096. -
  28097. -
  28098. -
  28099. -
  28100. -
  28101. -
  28102. -
  28103. -ac_config_commands="$ac_config_commands gcrypt-conf"
  28104. -
  28105. -
  28106. -#####################
  28107. -#### Conclusion. ####
  28108. -#####################
  28109. -
  28110. -# Define conditional sources and config.h symbols depending on the
  28111. -# selected ciphers, pubkey-ciphers, digests and random modules.
  28112. -
  28113. -
  28114. -name=arcfour
  28115. -list=$enabled_ciphers
  28116. -found=0
  28117. -
  28118. -for n in $list; do
  28119. - if test "x$name" = "x$n"; then
  28120. - found=1
  28121. - fi
  28122. -done
  28123. -
  28124. -if test "$found" = "1"; then
  28125. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
  28126. -
  28127. -$as_echo "#define USE_ARCFOUR 1" >>confdefs.h
  28128. -
  28129. -fi
  28130. -
  28131. -
  28132. -name=blowfish
  28133. -list=$enabled_ciphers
  28134. -found=0
  28135. -
  28136. -for n in $list; do
  28137. - if test "x$name" = "x$n"; then
  28138. - found=1
  28139. - fi
  28140. -done
  28141. -
  28142. -if test "$found" = "1" ; then
  28143. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
  28144. -
  28145. -$as_echo "#define USE_BLOWFISH 1" >>confdefs.h
  28146. -
  28147. -fi
  28148. -
  28149. -
  28150. -name=cast5
  28151. -list=$enabled_ciphers
  28152. -found=0
  28153. -
  28154. -for n in $list; do
  28155. - if test "x$name" = "x$n"; then
  28156. - found=1
  28157. - fi
  28158. -done
  28159. -
  28160. -if test "$found" = "1" ; then
  28161. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
  28162. -
  28163. -$as_echo "#define USE_CAST5 1" >>confdefs.h
  28164. -
  28165. -fi
  28166. -
  28167. -
  28168. -name=des
  28169. -list=$enabled_ciphers
  28170. -found=0
  28171. -
  28172. -for n in $list; do
  28173. - if test "x$name" = "x$n"; then
  28174. - found=1
  28175. - fi
  28176. -done
  28177. -
  28178. -if test "$found" = "1" ; then
  28179. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
  28180. -
  28181. -$as_echo "#define USE_DES 1" >>confdefs.h
  28182. -
  28183. -fi
  28184. -
  28185. -
  28186. -name=aes
  28187. -list=$enabled_ciphers
  28188. -found=0
  28189. -
  28190. -for n in $list; do
  28191. - if test "x$name" = "x$n"; then
  28192. - found=1
  28193. - fi
  28194. -done
  28195. -
  28196. -if test "$found" = "1" ; then
  28197. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
  28198. -
  28199. -$as_echo "#define USE_AES 1" >>confdefs.h
  28200. -
  28201. -fi
  28202. -
  28203. -
  28204. -name=twofish
  28205. -list=$enabled_ciphers
  28206. -found=0
  28207. -
  28208. -for n in $list; do
  28209. - if test "x$name" = "x$n"; then
  28210. - found=1
  28211. - fi
  28212. -done
  28213. -
  28214. -if test "$found" = "1" ; then
  28215. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
  28216. -
  28217. -$as_echo "#define USE_TWOFISH 1" >>confdefs.h
  28218. -
  28219. -fi
  28220. -
  28221. -
  28222. -name=serpent
  28223. -list=$enabled_ciphers
  28224. -found=0
  28225. -
  28226. -for n in $list; do
  28227. - if test "x$name" = "x$n"; then
  28228. - found=1
  28229. - fi
  28230. -done
  28231. -
  28232. -if test "$found" = "1" ; then
  28233. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
  28234. -
  28235. -$as_echo "#define USE_SERPENT 1" >>confdefs.h
  28236. -
  28237. -fi
  28238. -
  28239. -
  28240. -name=rfc2268
  28241. -list=$enabled_ciphers
  28242. -found=0
  28243. -
  28244. -for n in $list; do
  28245. - if test "x$name" = "x$n"; then
  28246. - found=1
  28247. - fi
  28248. -done
  28249. -
  28250. -if test "$found" = "1" ; then
  28251. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
  28252. -
  28253. -$as_echo "#define USE_RFC2268 1" >>confdefs.h
  28254. -
  28255. -fi
  28256. -
  28257. -
  28258. -name=seed
  28259. -list=$enabled_ciphers
  28260. -found=0
  28261. -
  28262. -for n in $list; do
  28263. - if test "x$name" = "x$n"; then
  28264. - found=1
  28265. - fi
  28266. -done
  28267. -
  28268. -if test "$found" = "1" ; then
  28269. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
  28270. -
  28271. -$as_echo "#define USE_SEED 1" >>confdefs.h
  28272. -
  28273. -fi
  28274. -
  28275. -
  28276. -name=camellia
  28277. -list=$enabled_ciphers
  28278. -found=0
  28279. -
  28280. -for n in $list; do
  28281. - if test "x$name" = "x$n"; then
  28282. - found=1
  28283. - fi
  28284. -done
  28285. -
  28286. -if test "$found" = "1" ; then
  28287. - GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
  28288. -
  28289. -$as_echo "#define USE_CAMELLIA 1" >>confdefs.h
  28290. -
  28291. -fi
  28292. -
  28293. -
  28294. -name=dsa
  28295. -list=$enabled_pubkey_ciphers
  28296. -found=0
  28297. -
  28298. -for n in $list; do
  28299. - if test "x$name" = "x$n"; then
  28300. - found=1
  28301. - fi
  28302. -done
  28303. -
  28304. -if test "$found" = "1" ; then
  28305. - GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
  28306. -
  28307. -$as_echo "#define USE_DSA 1" >>confdefs.h
  28308. -
  28309. -fi
  28310. -
  28311. -
  28312. -name=rsa
  28313. -list=$enabled_pubkey_ciphers
  28314. -found=0
  28315. -
  28316. -for n in $list; do
  28317. - if test "x$name" = "x$n"; then
  28318. - found=1
  28319. - fi
  28320. -done
  28321. -
  28322. -if test "$found" = "1" ; then
  28323. - GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
  28324. -
  28325. -$as_echo "#define USE_RSA 1" >>confdefs.h
  28326. -
  28327. -fi
  28328. -
  28329. -
  28330. -name=elgamal
  28331. -list=$enabled_pubkey_ciphers
  28332. -found=0
  28333. -
  28334. -for n in $list; do
  28335. - if test "x$name" = "x$n"; then
  28336. - found=1
  28337. - fi
  28338. -done
  28339. -
  28340. -if test "$found" = "1" ; then
  28341. - GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
  28342. -
  28343. -$as_echo "#define USE_ELGAMAL 1" >>confdefs.h
  28344. -
  28345. -fi
  28346. -
  28347. -
  28348. -name=ecc
  28349. -list=$enabled_pubkey_ciphers
  28350. -found=0
  28351. -
  28352. -for n in $list; do
  28353. - if test "x$name" = "x$n"; then
  28354. - found=1
  28355. - fi
  28356. -done
  28357. -
  28358. -if test "$found" = "1" ; then
  28359. - GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS ecc.lo"
  28360. -
  28361. -$as_echo "#define USE_ECC 1" >>confdefs.h
  28362. -
  28363. -fi
  28364. -
  28365. -
  28366. -name=crc
  28367. -list=$enabled_digests
  28368. -found=0
  28369. -
  28370. -for n in $list; do
  28371. - if test "x$name" = "x$n"; then
  28372. - found=1
  28373. - fi
  28374. -done
  28375. -
  28376. -if test "$found" = "1" ; then
  28377. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
  28378. -
  28379. -$as_echo "#define USE_CRC 1" >>confdefs.h
  28380. -
  28381. -fi
  28382. -
  28383. -
  28384. -name=md4
  28385. -list=$enabled_digests
  28386. -found=0
  28387. -
  28388. -for n in $list; do
  28389. - if test "x$name" = "x$n"; then
  28390. - found=1
  28391. - fi
  28392. -done
  28393. -
  28394. -if test "$found" = "1" ; then
  28395. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
  28396. -
  28397. -$as_echo "#define USE_MD4 1" >>confdefs.h
  28398. -
  28399. -fi
  28400. -
  28401. -
  28402. -name=md5
  28403. -list=$enabled_digests
  28404. -found=0
  28405. -
  28406. -for n in $list; do
  28407. - if test "x$name" = "x$n"; then
  28408. - found=1
  28409. - fi
  28410. -done
  28411. -
  28412. -if test "$found" = "1" ; then
  28413. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
  28414. -
  28415. -$as_echo "#define USE_MD5 1" >>confdefs.h
  28416. -
  28417. -fi
  28418. -
  28419. -
  28420. -name=sha256
  28421. -list=$enabled_digests
  28422. -found=0
  28423. -
  28424. -for n in $list; do
  28425. - if test "x$name" = "x$n"; then
  28426. - found=1
  28427. - fi
  28428. -done
  28429. -
  28430. -if test "$found" = "1" ; then
  28431. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
  28432. -
  28433. -$as_echo "#define USE_SHA256 1" >>confdefs.h
  28434. -
  28435. -fi
  28436. -
  28437. -
  28438. -name=sha512
  28439. -list=$enabled_digests
  28440. -found=0
  28441. -
  28442. -for n in $list; do
  28443. - if test "x$name" = "x$n"; then
  28444. - found=1
  28445. - fi
  28446. -done
  28447. -
  28448. -if test "$found" = "1" ; then
  28449. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
  28450. -
  28451. -$as_echo "#define USE_SHA512 1" >>confdefs.h
  28452. -
  28453. -fi
  28454. -
  28455. -
  28456. -name=tiger
  28457. -list=$enabled_digests
  28458. -found=0
  28459. -
  28460. -for n in $list; do
  28461. - if test "x$name" = "x$n"; then
  28462. - found=1
  28463. - fi
  28464. -done
  28465. -
  28466. -if test "$found" = "1" ; then
  28467. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
  28468. -
  28469. -$as_echo "#define USE_TIGER 1" >>confdefs.h
  28470. -
  28471. -fi
  28472. -
  28473. -
  28474. -name=whirlpool
  28475. -list=$enabled_digests
  28476. -found=0
  28477. -
  28478. -for n in $list; do
  28479. - if test "x$name" = "x$n"; then
  28480. - found=1
  28481. - fi
  28482. -done
  28483. -
  28484. -if test "$found" = "1" ; then
  28485. - GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
  28486. -
  28487. -$as_echo "#define USE_WHIRLPOOL 1" >>confdefs.h
  28488. -
  28489. -fi
  28490. -
  28491. -# rmd160 and sha1 should be included always.
  28492. -GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo sha1.lo"
  28493. -
  28494. -$as_echo "#define USE_RMD160 1" >>confdefs.h
  28495. -
  28496. -
  28497. -$as_echo "#define USE_SHA1 1" >>confdefs.h
  28498. -
  28499. -
  28500. -
  28501. -name=linux
  28502. -list=$random_modules
  28503. -found=0
  28504. -
  28505. -for n in $list; do
  28506. - if test "x$name" = "x$n"; then
  28507. - found=1
  28508. - fi
  28509. -done
  28510. -
  28511. -if test "$found" = "1" ; then
  28512. - GCRYPT_RANDOM="$GCRYPT_RANDOM rndlinux.lo"
  28513. -
  28514. -$as_echo "#define USE_RNDLINUX 1" >>confdefs.h
  28515. -
  28516. -fi
  28517. -
  28518. -
  28519. -name=unix
  28520. -list=$random_modules
  28521. -found=0
  28522. -
  28523. -for n in $list; do
  28524. - if test "x$name" = "x$n"; then
  28525. - found=1
  28526. - fi
  28527. -done
  28528. -
  28529. -if test "$found" = "1" ; then
  28530. - GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
  28531. -
  28532. -$as_echo "#define USE_RNDUNIX 1" >>confdefs.h
  28533. -
  28534. - print_egd_notice=yes
  28535. -fi
  28536. -
  28537. -
  28538. -name=egd
  28539. -list=$random_modules
  28540. -found=0
  28541. -
  28542. -for n in $list; do
  28543. - if test "x$name" = "x$n"; then
  28544. - found=1
  28545. - fi
  28546. -done
  28547. -
  28548. -if test "$found" = "1" ; then
  28549. - GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
  28550. -
  28551. -$as_echo "#define USE_RNDEGD 1" >>confdefs.h
  28552. -
  28553. -fi
  28554. -
  28555. -
  28556. -name=w32
  28557. -list=$random_modules
  28558. -found=0
  28559. -
  28560. -for n in $list; do
  28561. - if test "x$name" = "x$n"; then
  28562. - found=1
  28563. - fi
  28564. -done
  28565. -
  28566. -if test "$found" = "1" ; then
  28567. - GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
  28568. -
  28569. -$as_echo "#define USE_RNDW32 1" >>confdefs.h
  28570. -
  28571. -fi
  28572. -
  28573. -
  28574. -
  28575. -
  28576. -
  28577. -
  28578. -LIBGCRYPT_CIPHERS=$enabled_ciphers
  28579. -
  28580. -LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
  28581. -
  28582. -LIBGCRYPT_DIGESTS=$enabled_digests
  28583. -
  28584. -
  28585. -# For printing the configuration we need a colon separated list of
  28586. -# algorithm names.
  28587. -tmp=`echo "$enabled_ciphers" | tr ' ' : `
  28588. -
  28589. -cat >>confdefs.h <<_ACEOF
  28590. -#define LIBGCRYPT_CIPHERS "$tmp"
  28591. -_ACEOF
  28592. -
  28593. -tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
  28594. -
  28595. -cat >>confdefs.h <<_ACEOF
  28596. -#define LIBGCRYPT_PUBKEY_CIPHERS "$tmp"
  28597. -_ACEOF
  28598. -
  28599. -tmp=`echo "$enabled_digests" | tr ' ' : `
  28600. -
  28601. -cat >>confdefs.h <<_ACEOF
  28602. -#define LIBGCRYPT_DIGESTS "$tmp"
  28603. -_ACEOF
  28604. -
  28605. -
  28606. -
  28607. -
  28608. -# Generate extended version information for W32.
  28609. -if test "$have_w32_system" = yes; then
  28610. - BUILD_TIMESTAMP=`date --iso-8601=minutes`
  28611. - BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
  28612. - BUILD_FILEVERSION="${BUILD_FILEVERSION}${BUILD_REVISION}"
  28613. -fi
  28614. -
  28615. -
  28616. -
  28617. -
  28618. -cat >>confdefs.h <<_ACEOF
  28619. -#define BUILD_REVISION "$BUILD_REVISION"
  28620. -_ACEOF
  28621. -
  28622. -
  28623. -
  28624. -
  28625. -# And create the files.
  28626. -ac_config_files="$ac_config_files Makefile m4/Makefile mpi/Makefile cipher/Makefile random/Makefile doc/Makefile src/Makefile src/gcrypt.h src/libgcrypt-config src/versioninfo.rc tests/Makefile"
  28627. -
  28628. -cat >confcache <<\_ACEOF
  28629. -# This file is a shell script that caches the results of configure
  28630. -# tests run on this system so they can be shared between configure
  28631. -# scripts and configure runs, see configure's option --config-cache.
  28632. -# It is not useful on other systems. If it contains results you don't
  28633. -# want to keep, you may remove or edit it.
  28634. -#
  28635. -# config.status only pays attention to the cache file if you give it
  28636. -# the --recheck option to rerun configure.
  28637. -#
  28638. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  28639. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  28640. -# following values.
  28641. -
  28642. -_ACEOF
  28643. -
  28644. -# The following way of writing the cache mishandles newlines in values,
  28645. -# but we know of no workaround that is simple, portable, and efficient.
  28646. -# So, we kill variables containing newlines.
  28647. -# Ultrix sh set writes to stderr and can't be redirected directly,
  28648. -# and sets the high bit in the cache file unless we assign to the vars.
  28649. -(
  28650. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  28651. - eval ac_val=\$$ac_var
  28652. - case $ac_val in #(
  28653. - *${as_nl}*)
  28654. - case $ac_var in #(
  28655. - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  28656. -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  28657. - esac
  28658. - case $ac_var in #(
  28659. - _ | IFS | as_nl) ;; #(
  28660. - BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  28661. - *) { eval $ac_var=; unset $ac_var;} ;;
  28662. - esac ;;
  28663. - esac
  28664. - done
  28665. -
  28666. - (set) 2>&1 |
  28667. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  28668. - *${as_nl}ac_space=\ *)
  28669. - # `set' does not quote correctly, so add quotes: double-quote
  28670. - # substitution turns \\\\ into \\, and sed turns \\ into \.
  28671. - sed -n \
  28672. - "s/'/'\\\\''/g;
  28673. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  28674. - ;; #(
  28675. - *)
  28676. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  28677. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  28678. - ;;
  28679. - esac |
  28680. - sort
  28681. -) |
  28682. - sed '
  28683. - /^ac_cv_env_/b end
  28684. - t clear
  28685. - :clear
  28686. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  28687. - t end
  28688. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  28689. - :end' >>confcache
  28690. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  28691. - if test -w "$cache_file"; then
  28692. - test "x$cache_file" != "x/dev/null" &&
  28693. - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  28694. -$as_echo "$as_me: updating cache $cache_file" >&6;}
  28695. - cat confcache >$cache_file
  28696. - else
  28697. - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  28698. -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  28699. - fi
  28700. -fi
  28701. -rm -f confcache
  28702. -
  28703. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  28704. -# Let make expand exec_prefix.
  28705. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28706. -
  28707. -DEFS=-DHAVE_CONFIG_H
  28708. -
  28709. -ac_libobjs=
  28710. -ac_ltlibobjs=
  28711. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28712. - # 1. Remove the extension, and $U if already installed.
  28713. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28714. - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  28715. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28716. - # will be set to the directory where LIBOBJS objects are built.
  28717. - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28718. - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  28719. -done
  28720. -LIBOBJS=$ac_libobjs
  28721. -
  28722. -LTLIBOBJS=$ac_ltlibobjs
  28723. -
  28724. -
  28725. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  28726. - as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  28727. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28728. -fi
  28729. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  28730. - as_fn_error "conditional \"AMDEP\" was never defined.
  28731. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28732. -fi
  28733. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  28734. - as_fn_error "conditional \"am__fastdepCC\" was never defined.
  28735. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28736. -fi
  28737. -if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  28738. - as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  28739. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28740. -fi
  28741. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  28742. - as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  28743. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28744. -fi
  28745. -if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
  28746. - as_fn_error "conditional \"HAVE_W32_SYSTEM\" was never defined.
  28747. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28748. -fi
  28749. -
  28750. -if test -z "${USE_RANDOM_DAEMON_TRUE}" && test -z "${USE_RANDOM_DAEMON_FALSE}"; then
  28751. - as_fn_error "conditional \"USE_RANDOM_DAEMON\" was never defined.
  28752. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28753. -fi
  28754. -if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
  28755. - as_fn_error "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
  28756. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28757. -fi
  28758. -if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  28759. - as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  28760. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28761. -fi
  28762. -if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
  28763. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
  28764. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28765. -fi
  28766. -if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
  28767. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
  28768. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28769. -fi
  28770. -if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
  28771. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
  28772. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28773. -fi
  28774. -if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
  28775. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
  28776. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28777. -fi
  28778. -if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
  28779. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
  28780. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28781. -fi
  28782. -if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
  28783. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
  28784. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28785. -fi
  28786. -if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
  28787. - as_fn_error "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
  28788. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28789. -fi
  28790. -if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
  28791. - as_fn_error "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
  28792. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28793. -fi
  28794. -if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
  28795. - as_fn_error "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
  28796. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28797. -fi
  28798. -if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
  28799. - as_fn_error "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
  28800. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28801. -fi
  28802. -if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
  28803. - as_fn_error "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
  28804. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28805. -fi
  28806. -if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
  28807. - as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
  28808. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28809. -fi
  28810. -if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
  28811. - as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
  28812. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28813. -fi
  28814. -if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
  28815. - as_fn_error "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
  28816. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28817. -fi
  28818. -if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
  28819. - as_fn_error "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
  28820. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28821. -fi
  28822. -if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
  28823. - as_fn_error "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
  28824. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28825. -fi
  28826. -if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
  28827. - as_fn_error "conditional \"MPI_MOD_C_UDIV\" was never defined.
  28828. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28829. -fi
  28830. -if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
  28831. - as_fn_error "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
  28832. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28833. -fi
  28834. -if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  28835. - as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
  28836. -Usually this means the macro was only invoked conditionally." "$LINENO" 5
  28837. -fi
  28838. -
  28839. -: ${CONFIG_STATUS=./config.status}
  28840. -ac_write_fail=0
  28841. -ac_clean_files_save=$ac_clean_files
  28842. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  28843. -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  28844. -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  28845. -as_write_fail=0
  28846. -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  28847. -#! $SHELL
  28848. -# Generated by $as_me.
  28849. -# Run this file to recreate the current configuration.
  28850. -# Compiler output produced by configure, useful for debugging
  28851. -# configure, is in config.log if it exists.
  28852. -
  28853. -debug=false
  28854. -ac_cs_recheck=false
  28855. -ac_cs_silent=false
  28856. -
  28857. -SHELL=\${CONFIG_SHELL-$SHELL}
  28858. -export SHELL
  28859. -_ASEOF
  28860. -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  28861. -## -------------------- ##
  28862. -## M4sh Initialization. ##
  28863. -## -------------------- ##
  28864. -
  28865. -# Be more Bourne compatible
  28866. -DUALCASE=1; export DUALCASE # for MKS sh
  28867. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  28868. - emulate sh
  28869. - NULLCMD=:
  28870. - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  28871. - # is contrary to our usage. Disable this feature.
  28872. - alias -g '${1+"$@"}'='"$@"'
  28873. - setopt NO_GLOB_SUBST
  28874. -else
  28875. - case `(set -o) 2>/dev/null` in #(
  28876. - *posix*) :
  28877. - set -o posix ;; #(
  28878. - *) :
  28879. - ;;
  28880. -esac
  28881. -fi
  28882. -
  28883. -
  28884. -as_nl='
  28885. -'
  28886. -export as_nl
  28887. -# Printing a long string crashes Solaris 7 /usr/bin/printf.
  28888. -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  28889. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  28890. -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  28891. -# Prefer a ksh shell builtin over an external printf program on Solaris,
  28892. -# but without wasting forks for bash or zsh.
  28893. -if test -z "$BASH_VERSION$ZSH_VERSION" \
  28894. - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  28895. - as_echo='print -r --'
  28896. - as_echo_n='print -rn --'
  28897. -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  28898. - as_echo='printf %s\n'
  28899. - as_echo_n='printf %s'
  28900. -else
  28901. - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  28902. - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  28903. - as_echo_n='/usr/ucb/echo -n'
  28904. - else
  28905. - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  28906. - as_echo_n_body='eval
  28907. - arg=$1;
  28908. - case $arg in #(
  28909. - *"$as_nl"*)
  28910. - expr "X$arg" : "X\\(.*\\)$as_nl";
  28911. - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  28912. - esac;
  28913. - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  28914. - '
  28915. - export as_echo_n_body
  28916. - as_echo_n='sh -c $as_echo_n_body as_echo'
  28917. - fi
  28918. - export as_echo_body
  28919. - as_echo='sh -c $as_echo_body as_echo'
  28920. -fi
  28921. -
  28922. -# The user is always right.
  28923. -if test "${PATH_SEPARATOR+set}" != set; then
  28924. - PATH_SEPARATOR=:
  28925. - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  28926. - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  28927. - PATH_SEPARATOR=';'
  28928. - }
  28929. -fi
  28930. -
  28931. -
  28932. -# IFS
  28933. -# We need space, tab and new line, in precisely that order. Quoting is
  28934. -# there to prevent editors from complaining about space-tab.
  28935. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  28936. -# splitting by setting IFS to empty value.)
  28937. -IFS=" "" $as_nl"
  28938. -
  28939. -# Find who we are. Look in the path if we contain no directory separator.
  28940. -case $0 in #((
  28941. - *[\\/]* ) as_myself=$0 ;;
  28942. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28943. -for as_dir in $PATH
  28944. -do
  28945. - IFS=$as_save_IFS
  28946. - test -z "$as_dir" && as_dir=.
  28947. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28948. - done
  28949. -IFS=$as_save_IFS
  28950. -
  28951. - ;;
  28952. -esac
  28953. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  28954. -# in which case we are not to be found in the path.
  28955. -if test "x$as_myself" = x; then
  28956. - as_myself=$0
  28957. -fi
  28958. -if test ! -f "$as_myself"; then
  28959. - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28960. - exit 1
  28961. -fi
  28962. -
  28963. -# Unset variables that we do not need and which cause bugs (e.g. in
  28964. -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  28965. -# suppresses any "Segmentation fault" message there. '((' could
  28966. -# trigger a bug in pdksh 5.2.14.
  28967. -for as_var in BASH_ENV ENV MAIL MAILPATH
  28968. -do eval test x\${$as_var+set} = xset \
  28969. - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  28970. -done
  28971. -PS1='$ '
  28972. -PS2='> '
  28973. -PS4='+ '
  28974. -
  28975. -# NLS nuisances.
  28976. -LC_ALL=C
  28977. -export LC_ALL
  28978. -LANGUAGE=C
  28979. -export LANGUAGE
  28980. -
  28981. -# CDPATH.
  28982. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  28983. -
  28984. -
  28985. -# as_fn_error ERROR [LINENO LOG_FD]
  28986. -# ---------------------------------
  28987. -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  28988. -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  28989. -# script with status $?, using 1 if that was 0.
  28990. -as_fn_error ()
  28991. -{
  28992. - as_status=$?; test $as_status -eq 0 && as_status=1
  28993. - if test "$3"; then
  28994. - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  28995. - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  28996. - fi
  28997. - $as_echo "$as_me: error: $1" >&2
  28998. - as_fn_exit $as_status
  28999. -} # as_fn_error
  29000. -
  29001. -
  29002. -# as_fn_set_status STATUS
  29003. -# -----------------------
  29004. -# Set $? to STATUS, without forking.
  29005. -as_fn_set_status ()
  29006. -{
  29007. - return $1
  29008. -} # as_fn_set_status
  29009. -
  29010. -# as_fn_exit STATUS
  29011. -# -----------------
  29012. -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  29013. -as_fn_exit ()
  29014. -{
  29015. - set +e
  29016. - as_fn_set_status $1
  29017. - exit $1
  29018. -} # as_fn_exit
  29019. -
  29020. -# as_fn_unset VAR
  29021. -# ---------------
  29022. -# Portably unset VAR.
  29023. -as_fn_unset ()
  29024. -{
  29025. - { eval $1=; unset $1;}
  29026. -}
  29027. -as_unset=as_fn_unset
  29028. -# as_fn_append VAR VALUE
  29029. -# ----------------------
  29030. -# Append the text in VALUE to the end of the definition contained in VAR. Take
  29031. -# advantage of any shell optimizations that allow amortized linear growth over
  29032. -# repeated appends, instead of the typical quadratic growth present in naive
  29033. -# implementations.
  29034. -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  29035. - eval 'as_fn_append ()
  29036. - {
  29037. - eval $1+=\$2
  29038. - }'
  29039. -else
  29040. - as_fn_append ()
  29041. - {
  29042. - eval $1=\$$1\$2
  29043. - }
  29044. -fi # as_fn_append
  29045. -
  29046. -# as_fn_arith ARG...
  29047. -# ------------------
  29048. -# Perform arithmetic evaluation on the ARGs, and store the result in the
  29049. -# global $as_val. Take advantage of shells that can avoid forks. The arguments
  29050. -# must be portable across $(()) and expr.
  29051. -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  29052. - eval 'as_fn_arith ()
  29053. - {
  29054. - as_val=$(( $* ))
  29055. - }'
  29056. -else
  29057. - as_fn_arith ()
  29058. - {
  29059. - as_val=`expr "$@" || test $? -eq 1`
  29060. - }
  29061. -fi # as_fn_arith
  29062. -
  29063. -
  29064. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  29065. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  29066. - as_expr=expr
  29067. -else
  29068. - as_expr=false
  29069. -fi
  29070. -
  29071. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  29072. - as_basename=basename
  29073. -else
  29074. - as_basename=false
  29075. -fi
  29076. -
  29077. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  29078. - as_dirname=dirname
  29079. -else
  29080. - as_dirname=false
  29081. -fi
  29082. -
  29083. -as_me=`$as_basename -- "$0" ||
  29084. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  29085. - X"$0" : 'X\(//\)$' \| \
  29086. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  29087. -$as_echo X/"$0" |
  29088. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  29089. + rm -f "$tmp/stdin"
  29090. + case $ac_file in
  29091. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  29092. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  29093. + esac \
  29094. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  29095. + ;;
  29096. + :H)
  29097. + #
  29098. + # CONFIG_HEADER
  29099. + #
  29100. + if test x"$ac_file" != x-; then
  29101. + {
  29102. + $as_echo "/* $configure_input */" \
  29103. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  29104. + } >"$tmp/config.h" \
  29105. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  29106. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  29107. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  29108. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  29109. + else
  29110. + rm -f "$ac_file"
  29111. + mv "$tmp/config.h" "$ac_file" \
  29112. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  29113. + fi
  29114. + else
  29115. + $as_echo "/* $configure_input */" \
  29116. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  29117. + || as_fn_error "could not create -" "$LINENO" 5
  29118. + fi
  29119. +# Compute "$ac_file"'s index in $config_headers.
  29120. +_am_arg="$ac_file"
  29121. +_am_stamp_count=1
  29122. +for _am_header in $config_headers :; do
  29123. + case $_am_header in
  29124. + $_am_arg | $_am_arg:* )
  29125. + break ;;
  29126. + * )
  29127. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  29128. + esac
  29129. +done
  29130. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  29131. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29132. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  29133. + X"$_am_arg" : 'X\(//\)$' \| \
  29134. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  29135. +$as_echo X"$_am_arg" |
  29136. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29137. s//\1/
  29138. q
  29139. }
  29140. - /^X\/\(\/\/\)$/{
  29141. + /^X\(\/\/\)[^/].*/{
  29142. s//\1/
  29143. q
  29144. }
  29145. - /^X\/\(\/\).*/{
  29146. + /^X\(\/\/\)$/{
  29147. s//\1/
  29148. q
  29149. }
  29150. - s/.*/./; q'`
  29151. + /^X\(\/\).*/{
  29152. + s//\1/
  29153. + q
  29154. + }
  29155. + s/.*/./; q'`/stamp-h$_am_stamp_count
  29156. + ;;
  29157. + :L)
  29158. + #
  29159. + # CONFIG_LINK
  29160. + #
  29161. -# Avoid depending upon Character Ranges.
  29162. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29163. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  29164. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  29165. -as_cr_digits='0123456789'
  29166. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  29167. + if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  29168. + :
  29169. + else
  29170. + # Prefer the file from the source tree if names are identical.
  29171. + if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  29172. + ac_source=$srcdir/$ac_source
  29173. + fi
  29174. -ECHO_C= ECHO_N= ECHO_T=
  29175. -case `echo -n x` in #(((((
  29176. --n*)
  29177. - case `echo 'xy\c'` in
  29178. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  29179. - xy) ECHO_C='\c';;
  29180. - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  29181. - ECHO_T=' ';;
  29182. - esac;;
  29183. -*)
  29184. - ECHO_N='-n';;
  29185. -esac
  29186. + { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  29187. +$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  29188. -rm -f conf$$ conf$$.exe conf$$.file
  29189. -if test -d conf$$.dir; then
  29190. - rm -f conf$$.dir/conf$$.file
  29191. -else
  29192. - rm -f conf$$.dir
  29193. - mkdir conf$$.dir 2>/dev/null
  29194. -fi
  29195. -if (echo >conf$$.file) 2>/dev/null; then
  29196. - if ln -s conf$$.file conf$$ 2>/dev/null; then
  29197. - as_ln_s='ln -s'
  29198. - # ... but there are two gotchas:
  29199. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  29200. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  29201. - # In both cases, we have to default to `cp -p'.
  29202. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  29203. - as_ln_s='cp -p'
  29204. - elif ln conf$$.file conf$$ 2>/dev/null; then
  29205. - as_ln_s=ln
  29206. - else
  29207. - as_ln_s='cp -p'
  29208. - fi
  29209. -else
  29210. - as_ln_s='cp -p'
  29211. -fi
  29212. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  29213. -rmdir conf$$.dir 2>/dev/null
  29214. + if test ! -r "$ac_source"; then
  29215. + as_fn_error "$ac_source: file not found" "$LINENO" 5
  29216. + fi
  29217. + rm -f "$ac_file"
  29218. + # Try a relative symlink, then a hard link, then a copy.
  29219. + case $srcdir in
  29220. + [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  29221. + *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  29222. + esac
  29223. + ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  29224. + ln "$ac_source" "$ac_file" 2>/dev/null ||
  29225. + cp -p "$ac_source" "$ac_file" ||
  29226. + as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  29227. + fi
  29228. + ;;
  29229. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  29230. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  29231. + ;;
  29232. + esac
  29233. -# as_fn_mkdir_p
  29234. -# -------------
  29235. -# Create "$as_dir" as a directory, including parents if necessary.
  29236. -as_fn_mkdir_p ()
  29237. -{
  29238. - case $as_dir in #(
  29239. - -*) as_dir=./$as_dir;;
  29240. + case $ac_file$ac_mode in
  29241. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  29242. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  29243. + # are listed without --file. Let's play safe and only enable the eval
  29244. + # if we detect the quoting.
  29245. + case $CONFIG_FILES in
  29246. + *\'*) eval set x "$CONFIG_FILES" ;;
  29247. + *) set x $CONFIG_FILES ;;
  29248. esac
  29249. - test -d "$as_dir" || eval $as_mkdir_p || {
  29250. - as_dirs=
  29251. - while :; do
  29252. - case $as_dir in #(
  29253. - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  29254. - *) as_qdir=$as_dir;;
  29255. - esac
  29256. - as_dirs="'$as_qdir' $as_dirs"
  29257. - as_dir=`$as_dirname -- "$as_dir" ||
  29258. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29259. - X"$as_dir" : 'X\(//\)[^/]' \| \
  29260. - X"$as_dir" : 'X\(//\)$' \| \
  29261. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  29262. -$as_echo X"$as_dir" |
  29263. + shift
  29264. + for mf
  29265. + do
  29266. + # Strip MF so we end up with the name of the file.
  29267. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  29268. + # Check whether this is an Automake generated Makefile or not.
  29269. + # We used to match only the files named `Makefile.in', but
  29270. + # some people rename them; so instead we look at the file content.
  29271. + # Grep'ing the first line is not enough: some people post-process
  29272. + # each Makefile.in and add a new line on top of each file to say so.
  29273. + # Grep'ing the whole file is not good either: AIX grep has a line
  29274. + # limit of 2048, but all sed's we know have understand at least 4000.
  29275. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  29276. + dirpart=`$as_dirname -- "$mf" ||
  29277. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29278. + X"$mf" : 'X\(//\)[^/]' \| \
  29279. + X"$mf" : 'X\(//\)$' \| \
  29280. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  29281. +$as_echo X"$mf" |
  29282. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29283. s//\1/
  29284. q
  29285. @@ -23792,981 +16946,697 @@
  29286. q
  29287. }
  29288. s/.*/./; q'`
  29289. - test -d "$as_dir" && break
  29290. + else
  29291. + continue
  29292. + fi
  29293. + # Extract the definition of DEPDIR, am__include, and am__quote
  29294. + # from the Makefile without running `make'.
  29295. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  29296. + test -z "$DEPDIR" && continue
  29297. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  29298. + test -z "am__include" && continue
  29299. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  29300. + # When using ansi2knr, U may be empty or an underscore; expand it
  29301. + U=`sed -n 's/^U = //p' < "$mf"`
  29302. + # Find all dependency output files, they are included files with
  29303. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  29304. + # simplest approach to changing $(DEPDIR) to its actual value in the
  29305. + # expansion.
  29306. + for file in `sed -n "
  29307. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  29308. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  29309. + # Make sure the directory exists.
  29310. + test -f "$dirpart/$file" && continue
  29311. + fdir=`$as_dirname -- "$file" ||
  29312. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  29313. + X"$file" : 'X\(//\)[^/]' \| \
  29314. + X"$file" : 'X\(//\)$' \| \
  29315. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  29316. +$as_echo X"$file" |
  29317. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  29318. + s//\1/
  29319. + q
  29320. + }
  29321. + /^X\(\/\/\)[^/].*/{
  29322. + s//\1/
  29323. + q
  29324. + }
  29325. + /^X\(\/\/\)$/{
  29326. + s//\1/
  29327. + q
  29328. + }
  29329. + /^X\(\/\).*/{
  29330. + s//\1/
  29331. + q
  29332. + }
  29333. + s/.*/./; q'`
  29334. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  29335. + # echo "creating $dirpart/$file"
  29336. + echo '# dummy' > "$dirpart/$file"
  29337. done
  29338. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  29339. - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  29340. + done
  29341. +}
  29342. + ;;
  29343. + "libtool":C)
  29344. +
  29345. + # See if we are running on zsh, and set the options which allow our
  29346. + # commands through without removal of \ escapes.
  29347. + if test -n "${ZSH_VERSION+set}" ; then
  29348. + setopt NO_GLOB_SUBST
  29349. + fi
  29350. +
  29351. + cfgfile="${ofile}T"
  29352. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  29353. + $RM "$cfgfile"
  29354. +
  29355. + cat <<_LT_EOF >> "$cfgfile"
  29356. +#! $SHELL
  29357. +
  29358. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  29359. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  29360. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29361. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  29362. +#
  29363. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  29364. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  29365. +# Written by Gordon Matzigkeit, 1996
  29366. +#
  29367. +# This file is part of GNU Libtool.
  29368. +#
  29369. +# GNU Libtool is free software; you can redistribute it and/or
  29370. +# modify it under the terms of the GNU General Public License as
  29371. +# published by the Free Software Foundation; either version 2 of
  29372. +# the License, or (at your option) any later version.
  29373. +#
  29374. +# As a special exception to the GNU General Public License,
  29375. +# if you distribute this file as part of a program or library that
  29376. +# is built using GNU Libtool, you may include this file under the
  29377. +# same distribution terms that you use for the rest of that program.
  29378. +#
  29379. +# GNU Libtool is distributed in the hope that it will be useful,
  29380. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  29381. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29382. +# GNU General Public License for more details.
  29383. +#
  29384. +# You should have received a copy of the GNU General Public License
  29385. +# along with GNU Libtool; see the file COPYING. If not, a copy
  29386. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  29387. +# obtained by writing to the Free Software Foundation, Inc.,
  29388. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  29389. +
  29390. +
  29391. +# The names of the tagged configurations supported by this script.
  29392. +available_tags=""
  29393. +
  29394. +# ### BEGIN LIBTOOL CONFIG
  29395. +
  29396. +# Assembler program.
  29397. +AS=$AS
  29398. +
  29399. +# DLL creation program.
  29400. +DLLTOOL=$DLLTOOL
  29401. +
  29402. +# Object dumper program.
  29403. +OBJDUMP=$OBJDUMP
  29404. +
  29405. +# Which release of libtool.m4 was used?
  29406. +macro_version=$macro_version
  29407. +macro_revision=$macro_revision
  29408. +
  29409. +# Whether or not to build shared libraries.
  29410. +build_libtool_libs=$enable_shared
  29411. +
  29412. +# Whether or not to build static libraries.
  29413. +build_old_libs=$enable_static
  29414. +
  29415. +# What type of objects to build.
  29416. +pic_mode=$pic_mode
  29417. +
  29418. +# Whether or not to optimize for fast installation.
  29419. +fast_install=$enable_fast_install
  29420. +
  29421. +# The host system.
  29422. +host_alias=$host_alias
  29423. +host=$host
  29424. +host_os=$host_os
  29425. +
  29426. +# The build system.
  29427. +build_alias=$build_alias
  29428. +build=$build
  29429. +build_os=$build_os
  29430. +
  29431. +# A sed program that does not truncate output.
  29432. +SED=$lt_SED
  29433. +
  29434. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  29435. +Xsed="\$SED -e 1s/^X//"
  29436. +
  29437. +# A grep program that handles long lines.
  29438. +GREP=$lt_GREP
  29439. +
  29440. +# An ERE matcher.
  29441. +EGREP=$lt_EGREP
  29442. +
  29443. +# A literal string matcher.
  29444. +FGREP=$lt_FGREP
  29445. +
  29446. +# A BSD- or MS-compatible name lister.
  29447. +NM=$lt_NM
  29448. +
  29449. +# Whether we need soft or hard links.
  29450. +LN_S=$lt_LN_S
  29451. +
  29452. +# What is the maximum length of a command?
  29453. +max_cmd_len=$max_cmd_len
  29454. +
  29455. +# Object file suffix (normally "o").
  29456. +objext=$ac_objext
  29457. +
  29458. +# Executable file suffix (normally "").
  29459. +exeext=$exeext
  29460. +
  29461. +# whether the shell understands "unset".
  29462. +lt_unset=$lt_unset
  29463. +
  29464. +# turn spaces into newlines.
  29465. +SP2NL=$lt_lt_SP2NL
  29466. +
  29467. +# turn newlines into spaces.
  29468. +NL2SP=$lt_lt_NL2SP
  29469. +
  29470. +# How to create reloadable object files.
  29471. +reload_flag=$lt_reload_flag
  29472. +reload_cmds=$lt_reload_cmds
  29473. +
  29474. +# Method to check whether dependent libraries are shared objects.
  29475. +deplibs_check_method=$lt_deplibs_check_method
  29476. +
  29477. +# Command to use when deplibs_check_method == "file_magic".
  29478. +file_magic_cmd=$lt_file_magic_cmd
  29479. +
  29480. +# The archiver.
  29481. +AR=$lt_AR
  29482. +AR_FLAGS=$lt_AR_FLAGS
  29483. +
  29484. +# A symbol stripping program.
  29485. +STRIP=$lt_STRIP
  29486. +
  29487. +# Commands used to install an old-style archive.
  29488. +RANLIB=$lt_RANLIB
  29489. +old_postinstall_cmds=$lt_old_postinstall_cmds
  29490. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29491. +# A C compiler.
  29492. +LTCC=$lt_CC
  29493. -} # as_fn_mkdir_p
  29494. -if mkdir -p . 2>/dev/null; then
  29495. - as_mkdir_p='mkdir -p "$as_dir"'
  29496. -else
  29497. - test -d ./-p && rmdir ./-p
  29498. - as_mkdir_p=false
  29499. -fi
  29500. +# LTCC compiler flags.
  29501. +LTCFLAGS=$lt_CFLAGS
  29502. -if test -x / >/dev/null 2>&1; then
  29503. - as_test_x='test -x'
  29504. -else
  29505. - if ls -dL / >/dev/null 2>&1; then
  29506. - as_ls_L_option=L
  29507. - else
  29508. - as_ls_L_option=
  29509. - fi
  29510. - as_test_x='
  29511. - eval sh -c '\''
  29512. - if test -d "$1"; then
  29513. - test -d "$1/.";
  29514. - else
  29515. - case $1 in #(
  29516. - -*)set "./$1";;
  29517. - esac;
  29518. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  29519. - ???[sx]*):;;*)false;;esac;fi
  29520. - '\'' sh
  29521. - '
  29522. -fi
  29523. -as_executable_p=$as_test_x
  29524. +# Take the output of nm and produce a listing of raw symbols and C names.
  29525. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29526. -# Sed expression to map a string onto a valid CPP name.
  29527. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  29528. +# Transform the output of nm in a proper C declaration.
  29529. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29530. -# Sed expression to map a string onto a valid variable name.
  29531. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  29532. +# Transform the output of nm in a C name address pair.
  29533. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29534. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  29535. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  29536. -exec 6>&1
  29537. -## ----------------------------------- ##
  29538. -## Main body of $CONFIG_STATUS script. ##
  29539. -## ----------------------------------- ##
  29540. -_ASEOF
  29541. -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  29542. +# The name of the directory that contains temporary libtool files.
  29543. +objdir=$objdir
  29544. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29545. -# Save the log message, to keep $0 and so on meaningful, and to
  29546. -# report actual input values of CONFIG_FILES etc. instead of their
  29547. -# values after options handling.
  29548. -ac_log="
  29549. -This file was extended by libgcrypt $as_me 1.4.5, which was
  29550. -generated by GNU Autoconf 2.64. Invocation command line was
  29551. +# Shell to use when invoking shell scripts.
  29552. +SHELL=$lt_SHELL
  29553. - CONFIG_FILES = $CONFIG_FILES
  29554. - CONFIG_HEADERS = $CONFIG_HEADERS
  29555. - CONFIG_LINKS = $CONFIG_LINKS
  29556. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  29557. - $ $0 $@
  29558. +# An echo program that does not interpret backslashes.
  29559. +ECHO=$lt_ECHO
  29560. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  29561. -"
  29562. +# Used to examine libraries when file_magic_cmd begins with "file".
  29563. +MAGIC_CMD=$MAGIC_CMD
  29564. -_ACEOF
  29565. +# Must we lock files when doing compilation?
  29566. +need_locks=$lt_need_locks
  29567. -case $ac_config_files in *"
  29568. -"*) set x $ac_config_files; shift; ac_config_files=$*;;
  29569. -esac
  29570. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  29571. +DSYMUTIL=$lt_DSYMUTIL
  29572. -case $ac_config_headers in *"
  29573. -"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  29574. -esac
  29575. +# Tool to change global to local symbols on Mac OS X.
  29576. +NMEDIT=$lt_NMEDIT
  29577. +# Tool to manipulate fat objects and archives on Mac OS X.
  29578. +LIPO=$lt_LIPO
  29579. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29580. -# Files that config.status was made for.
  29581. -config_files="$ac_config_files"
  29582. -config_headers="$ac_config_headers"
  29583. -config_links="$ac_config_links"
  29584. -config_commands="$ac_config_commands"
  29585. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  29586. +OTOOL=$lt_OTOOL
  29587. -_ACEOF
  29588. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  29589. +OTOOL64=$lt_OTOOL64
  29590. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29591. -ac_cs_usage="\
  29592. -\`$as_me' instantiates files and other configuration actions
  29593. -from templates according to the current configuration. Unless the files
  29594. -and actions are specified as TAGs, all are instantiated by default.
  29595. +# Old archive suffix (normally "a").
  29596. +libext=$libext
  29597. -Usage: $0 [OPTION]... [TAG]...
  29598. +# Shared library suffix (normally ".so").
  29599. +shrext_cmds=$lt_shrext_cmds
  29600. - -h, --help print this help, then exit
  29601. - -V, --version print version number and configuration settings, then exit
  29602. - -q, --quiet, --silent
  29603. - do not print progress messages
  29604. - -d, --debug don't remove temporary files
  29605. - --recheck update $as_me by reconfiguring in the same conditions
  29606. - --file=FILE[:TEMPLATE]
  29607. - instantiate the configuration file FILE
  29608. - --header=FILE[:TEMPLATE]
  29609. - instantiate the configuration header FILE
  29610. +# The commands to extract the exported symbol list from a shared archive.
  29611. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29612. -Configuration files:
  29613. -$config_files
  29614. +# Variables whose values should be saved in libtool wrapper scripts and
  29615. +# restored at link time.
  29616. +variables_saved_for_relink=$lt_variables_saved_for_relink
  29617. -Configuration headers:
  29618. -$config_headers
  29619. +# Do we need the "lib" prefix for modules?
  29620. +need_lib_prefix=$need_lib_prefix
  29621. -Configuration links:
  29622. -$config_links
  29623. +# Do we need a version for libraries?
  29624. +need_version=$need_version
  29625. -Configuration commands:
  29626. -$config_commands
  29627. +# Library versioning type.
  29628. +version_type=$version_type
  29629. -Report bugs to <bug-libgcrypt@gnupg.org>."
  29630. +# Shared library runtime path variable.
  29631. +runpath_var=$runpath_var
  29632. -_ACEOF
  29633. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29634. -ac_cs_version="\\
  29635. -libgcrypt config.status 1.4.5
  29636. -configured by $0, generated by GNU Autoconf 2.64,
  29637. - with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  29638. +# Shared library path variable.
  29639. +shlibpath_var=$shlibpath_var
  29640. -Copyright (C) 2009 Free Software Foundation, Inc.
  29641. -This config.status script is free software; the Free Software Foundation
  29642. -gives unlimited permission to copy, distribute and modify it."
  29643. +# Is shlibpath searched before the hard-coded library search path?
  29644. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29645. -ac_pwd='$ac_pwd'
  29646. -srcdir='$srcdir'
  29647. -INSTALL='$INSTALL'
  29648. -MKDIR_P='$MKDIR_P'
  29649. -AWK='$AWK'
  29650. -test -n "\$AWK" || AWK=awk
  29651. -_ACEOF
  29652. +# Format of library name prefix.
  29653. +libname_spec=$lt_libname_spec
  29654. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29655. -# The default lists apply if the user does not specify any file.
  29656. -ac_need_defaults=:
  29657. -while test $# != 0
  29658. -do
  29659. - case $1 in
  29660. - --*=*)
  29661. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  29662. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  29663. - ac_shift=:
  29664. - ;;
  29665. - *)
  29666. - ac_option=$1
  29667. - ac_optarg=$2
  29668. - ac_shift=shift
  29669. - ;;
  29670. - esac
  29671. +# List of archive names. First name is the real one, the rest are links.
  29672. +# The last name is the one that the linker finds with -lNAME
  29673. +library_names_spec=$lt_library_names_spec
  29674. - case $ac_option in
  29675. - # Handling of the options.
  29676. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  29677. - ac_cs_recheck=: ;;
  29678. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  29679. - $as_echo "$ac_cs_version"; exit ;;
  29680. - --debug | --debu | --deb | --de | --d | -d )
  29681. - debug=: ;;
  29682. - --file | --fil | --fi | --f )
  29683. - $ac_shift
  29684. - case $ac_optarg in
  29685. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29686. - esac
  29687. - as_fn_append CONFIG_FILES " '$ac_optarg'"
  29688. - ac_need_defaults=false;;
  29689. - --header | --heade | --head | --hea )
  29690. - $ac_shift
  29691. - case $ac_optarg in
  29692. - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  29693. - esac
  29694. - as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  29695. - ac_need_defaults=false;;
  29696. - --he | --h)
  29697. - # Conflict between --help and --header
  29698. - as_fn_error "ambiguous option: \`$1'
  29699. -Try \`$0 --help' for more information.";;
  29700. - --help | --hel | -h )
  29701. - $as_echo "$ac_cs_usage"; exit ;;
  29702. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  29703. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  29704. - ac_cs_silent=: ;;
  29705. +# The coded name of the library, if different from the real name.
  29706. +soname_spec=$lt_soname_spec
  29707. - # This is an error.
  29708. - -*) as_fn_error "unrecognized option: \`$1'
  29709. -Try \`$0 --help' for more information." ;;
  29710. +# Command to use after installation of a shared archive.
  29711. +postinstall_cmds=$lt_postinstall_cmds
  29712. - *) as_fn_append ac_config_targets " $1"
  29713. - ac_need_defaults=false ;;
  29714. +# Command to use after uninstallation of a shared archive.
  29715. +postuninstall_cmds=$lt_postuninstall_cmds
  29716. - esac
  29717. - shift
  29718. -done
  29719. +# Commands used to finish a libtool library installation in a directory.
  29720. +finish_cmds=$lt_finish_cmds
  29721. -ac_configure_extra_args=
  29722. +# As "finish_cmds", except a single script fragment to be evaled but
  29723. +# not shown.
  29724. +finish_eval=$lt_finish_eval
  29725. -if $ac_cs_silent; then
  29726. - exec 6>/dev/null
  29727. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  29728. -fi
  29729. +# Whether we should hardcode library paths into libraries.
  29730. +hardcode_into_libs=$hardcode_into_libs
  29731. -_ACEOF
  29732. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29733. -if \$ac_cs_recheck; then
  29734. - set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  29735. - shift
  29736. - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  29737. - CONFIG_SHELL='$SHELL'
  29738. - export CONFIG_SHELL
  29739. - exec "\$@"
  29740. -fi
  29741. +# Compile-time system search path for libraries.
  29742. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29743. -_ACEOF
  29744. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29745. -exec 5>>config.log
  29746. -{
  29747. - echo
  29748. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  29749. -## Running $as_me. ##
  29750. -_ASBOX
  29751. - $as_echo "$ac_log"
  29752. -} >&5
  29753. +# Run-time system search path for libraries.
  29754. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29755. -_ACEOF
  29756. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29757. -#
  29758. -# INIT-COMMANDS
  29759. -#
  29760. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  29761. +# Whether dlopen is supported.
  29762. +dlopen_support=$enable_dlopen
  29763. +
  29764. +# Whether dlopen of programs is supported.
  29765. +dlopen_self=$enable_dlopen_self
  29766. +
  29767. +# Whether dlopen of statically linked programs is supported.
  29768. +dlopen_self_static=$enable_dlopen_self_static
  29769. +
  29770. +# Commands to strip libraries.
  29771. +old_striplib=$lt_old_striplib
  29772. +striplib=$lt_striplib
  29773. +
  29774. +
  29775. +# The linker used to build libraries.
  29776. +LD=$lt_LD
  29777. +
  29778. +# Commands used to build an old-style archive.
  29779. +old_archive_cmds=$lt_old_archive_cmds
  29780. +
  29781. +# A language specific compiler.
  29782. +CC=$lt_compiler
  29783. +
  29784. +# Is the compiler the GNU compiler?
  29785. +with_gcc=$GCC
  29786. -prefix=$prefix
  29787. -exec_prefix=$exec_prefix
  29788. -libdir=$libdir
  29789. -datadir=$datadir
  29790. -DATADIRNAME=$DATADIRNAME
  29791. +# Compiler flag to turn off builtin functions.
  29792. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  29793. +# How to pass a linker flag through the compiler.
  29794. +wl=$lt_lt_prog_compiler_wl
  29795. -_ACEOF
  29796. +# Additional compiler flags for building library objects.
  29797. +pic_flag=$lt_lt_prog_compiler_pic
  29798. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  29799. +# Compiler flag to prevent dynamic linking.
  29800. +link_static_flag=$lt_lt_prog_compiler_static
  29801. -# Handling of arguments.
  29802. -for ac_config_target in $ac_config_targets
  29803. -do
  29804. - case $ac_config_target in
  29805. - "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  29806. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  29807. - ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
  29808. - "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
  29809. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  29810. - "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  29811. - "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
  29812. - "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
  29813. - "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
  29814. - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  29815. - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  29816. - "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
  29817. - "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
  29818. - "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
  29819. - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  29820. +# Does compiler simultaneously support -c and -o options?
  29821. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  29822. - *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  29823. - esac
  29824. -done
  29825. +# Whether or not to add -lc for building shared libraries.
  29826. +build_libtool_need_lc=$archive_cmds_need_lc
  29827. +# Whether or not to disallow shared libs when runtime libs are static.
  29828. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  29829. -# If the user did not use the arguments to specify the items to instantiate,
  29830. -# then the envvar interface is used. Set only those that are not.
  29831. -# We use the long form for the default assignment because of an extremely
  29832. -# bizarre bug on SunOS 4.1.3.
  29833. -if $ac_need_defaults; then
  29834. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  29835. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  29836. - test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  29837. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  29838. -fi
  29839. +# Compiler flag to allow reflexive dlopens.
  29840. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  29841. -# Have a temporary directory for convenience. Make it in the build tree
  29842. -# simply because there is no reason against having it here, and in addition,
  29843. -# creating and moving files from /tmp can sometimes cause problems.
  29844. -# Hook for its removal unless debugging.
  29845. -# Note that there is a small window in which the directory will not be cleaned:
  29846. -# after its creation but before its name has been assigned to `$tmp'.
  29847. -$debug ||
  29848. -{
  29849. - tmp=
  29850. - trap 'exit_status=$?
  29851. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  29852. -' 0
  29853. - trap 'as_fn_exit 1' 1 2 13 15
  29854. -}
  29855. -# Create a (secure) tmp directory for tmp files.
  29856. +# Compiler flag to generate shared objects directly from archives.
  29857. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  29858. -{
  29859. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  29860. - test -n "$tmp" && test -d "$tmp"
  29861. -} ||
  29862. -{
  29863. - tmp=./conf$$-$RANDOM
  29864. - (umask 077 && mkdir "$tmp")
  29865. -} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  29866. +# Whether the compiler copes with passing no objects directly.
  29867. +compiler_needs_object=$lt_compiler_needs_object
  29868. -# Set up the scripts for CONFIG_FILES section.
  29869. -# No need to generate them if there are no CONFIG_FILES.
  29870. -# This happens for instance with `./config.status config.h'.
  29871. -if test -n "$CONFIG_FILES"; then
  29872. +# Create an old-style archive from a shared archive.
  29873. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  29874. +# Create a temporary old-style archive to link instead of a shared archive.
  29875. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  29876. -ac_cr=`echo X | tr X '\015'`
  29877. -# On cygwin, bash can eat \r inside `` if the user requested igncr.
  29878. -# But we know of no other shell where ac_cr would be empty at this
  29879. -# point, so we can use a bashism as a fallback.
  29880. -if test "x$ac_cr" = x; then
  29881. - eval ac_cr=\$\'\\r\'
  29882. -fi
  29883. -ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  29884. -if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  29885. - ac_cs_awk_cr='\r'
  29886. -else
  29887. - ac_cs_awk_cr=$ac_cr
  29888. -fi
  29889. +# Commands used to build a shared archive.
  29890. +archive_cmds=$lt_archive_cmds
  29891. +archive_expsym_cmds=$lt_archive_expsym_cmds
  29892. -echo 'BEGIN {' >"$tmp/subs1.awk" &&
  29893. -_ACEOF
  29894. +# Commands used to build a loadable module if different from building
  29895. +# a shared archive.
  29896. +module_cmds=$lt_module_cmds
  29897. +module_expsym_cmds=$lt_module_expsym_cmds
  29898. +# Whether we are building with GNU ld or not.
  29899. +with_gnu_ld=$lt_with_gnu_ld
  29900. -{
  29901. - echo "cat >conf$$subs.awk <<_ACEOF" &&
  29902. - echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  29903. - echo "_ACEOF"
  29904. -} >conf$$subs.sh ||
  29905. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  29906. -ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  29907. -ac_delim='%!_!# '
  29908. -for ac_last_try in false false false false false :; do
  29909. - . ./conf$$subs.sh ||
  29910. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  29911. +# Flag that allows shared libraries with undefined symbols to be built.
  29912. +allow_undefined_flag=$lt_allow_undefined_flag
  29913. - ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  29914. - if test $ac_delim_n = $ac_delim_num; then
  29915. - break
  29916. - elif $ac_last_try; then
  29917. - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  29918. - else
  29919. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  29920. - fi
  29921. -done
  29922. -rm -f conf$$subs.sh
  29923. +# Flag that enforces no undefined symbols.
  29924. +no_undefined_flag=$lt_no_undefined_flag
  29925. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29926. -cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  29927. -_ACEOF
  29928. -sed -n '
  29929. -h
  29930. -s/^/S["/; s/!.*/"]=/
  29931. -p
  29932. -g
  29933. -s/^[^!]*!//
  29934. -:repl
  29935. -t repl
  29936. -s/'"$ac_delim"'$//
  29937. -t delim
  29938. -:nl
  29939. -h
  29940. -s/\(.\{148\}\).*/\1/
  29941. -t more1
  29942. -s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  29943. -p
  29944. -n
  29945. -b repl
  29946. -:more1
  29947. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29948. -p
  29949. -g
  29950. -s/.\{148\}//
  29951. -t nl
  29952. -:delim
  29953. -h
  29954. -s/\(.\{148\}\).*/\1/
  29955. -t more2
  29956. -s/["\\]/\\&/g; s/^/"/; s/$/"/
  29957. -p
  29958. -b
  29959. -:more2
  29960. -s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  29961. -p
  29962. -g
  29963. -s/.\{148\}//
  29964. -t delim
  29965. -' <conf$$subs.awk | sed '
  29966. -/^[^""]/{
  29967. - N
  29968. - s/\n//
  29969. -}
  29970. -' >>$CONFIG_STATUS || ac_write_fail=1
  29971. -rm -f conf$$subs.awk
  29972. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  29973. -_ACAWK
  29974. -cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  29975. - for (key in S) S_is_set[key] = 1
  29976. - FS = ""
  29977. +# Flag to hardcode \$libdir into a binary during linking.
  29978. +# This must work even if \$libdir does not exist
  29979. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  29980. -}
  29981. -{
  29982. - line = $ 0
  29983. - nfields = split(line, field, "@")
  29984. - substed = 0
  29985. - len = length(field[1])
  29986. - for (i = 2; i < nfields; i++) {
  29987. - key = field[i]
  29988. - keylen = length(key)
  29989. - if (S_is_set[key]) {
  29990. - value = S[key]
  29991. - line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  29992. - len += length(value) + length(field[++i])
  29993. - substed = 1
  29994. - } else
  29995. - len += 1 + keylen
  29996. - }
  29997. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  29998. +# during linking. This must work even if \$libdir does not exist.
  29999. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30000. - print line
  30001. -}
  30002. +# Whether we need a single "-rpath" flag with a separated argument.
  30003. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30004. -_ACAWK
  30005. -_ACEOF
  30006. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30007. -if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  30008. - sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  30009. -else
  30010. - cat
  30011. -fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  30012. - || as_fn_error "could not setup config files machinery" "$LINENO" 5
  30013. -_ACEOF
  30014. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30015. +# DIR into the resulting binary.
  30016. +hardcode_direct=$hardcode_direct
  30017. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  30018. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  30019. -# trailing colons and then remove the whole line if VPATH becomes empty
  30020. -# (actually we leave an empty line to preserve line numbers).
  30021. -if test "x$srcdir" = x.; then
  30022. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  30023. -s/:*\$(srcdir):*/:/
  30024. -s/:*\${srcdir}:*/:/
  30025. -s/:*@srcdir@:*/:/
  30026. -s/^\([^=]*=[ ]*\):*/\1/
  30027. -s/:*$//
  30028. -s/^[^=]*=[ ]*$//
  30029. -}'
  30030. -fi
  30031. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  30032. +# DIR into the resulting binary and the resulting library dependency is
  30033. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  30034. +# library is relocated.
  30035. +hardcode_direct_absolute=$hardcode_direct_absolute
  30036. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30037. -fi # test -n "$CONFIG_FILES"
  30038. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  30039. +# into the resulting binary.
  30040. +hardcode_minus_L=$hardcode_minus_L
  30041. -# Set up the scripts for CONFIG_HEADERS section.
  30042. -# No need to generate them if there are no CONFIG_HEADERS.
  30043. -# This happens for instance with `./config.status Makefile'.
  30044. -if test -n "$CONFIG_HEADERS"; then
  30045. -cat >"$tmp/defines.awk" <<\_ACAWK ||
  30046. -BEGIN {
  30047. -_ACEOF
  30048. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  30049. +# into the resulting binary.
  30050. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  30051. -# Transform confdefs.h into an awk script `defines.awk', embedded as
  30052. -# here-document in config.status, that substitutes the proper values into
  30053. -# config.h.in to produce config.h.
  30054. +# Set to "yes" if building a shared library automatically hardcodes DIR
  30055. +# into the library and all subsequent libraries and executables linked
  30056. +# against it.
  30057. +hardcode_automatic=$hardcode_automatic
  30058. -# Create a delimiter string that does not exist in confdefs.h, to ease
  30059. -# handling of long lines.
  30060. -ac_delim='%!_!# '
  30061. -for ac_last_try in false false :; do
  30062. - ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  30063. - if test -z "$ac_t"; then
  30064. - break
  30065. - elif $ac_last_try; then
  30066. - as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  30067. - else
  30068. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  30069. - fi
  30070. -done
  30071. +# Set to yes if linker adds runtime paths of dependent libraries
  30072. +# to runtime path list.
  30073. +inherit_rpath=$inherit_rpath
  30074. -# For the awk script, D is an array of macro values keyed by name,
  30075. -# likewise P contains macro parameters if any. Preserve backslash
  30076. -# newline sequences.
  30077. +# Whether libtool must link a program against all its dependency libraries.
  30078. +link_all_deplibs=$link_all_deplibs
  30079. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  30080. -sed -n '
  30081. -s/.\{148\}/&'"$ac_delim"'/g
  30082. -t rset
  30083. -:rset
  30084. -s/^[ ]*#[ ]*define[ ][ ]*/ /
  30085. -t def
  30086. -d
  30087. -:def
  30088. -s/\\$//
  30089. -t bsnl
  30090. -s/["\\]/\\&/g
  30091. -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  30092. -D["\1"]=" \3"/p
  30093. -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  30094. -d
  30095. -:bsnl
  30096. -s/["\\]/\\&/g
  30097. -s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  30098. -D["\1"]=" \3\\\\\\n"\\/p
  30099. -t cont
  30100. -s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  30101. -t cont
  30102. -d
  30103. -:cont
  30104. -n
  30105. -s/.\{148\}/&'"$ac_delim"'/g
  30106. -t clear
  30107. -:clear
  30108. -s/\\$//
  30109. -t bsnlc
  30110. -s/["\\]/\\&/g; s/^/"/; s/$/"/p
  30111. -d
  30112. -:bsnlc
  30113. -s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  30114. -b cont
  30115. -' <confdefs.h | sed '
  30116. -s/'"$ac_delim"'/"\\\
  30117. -"/g' >>$CONFIG_STATUS || ac_write_fail=1
  30118. +# Fix the shell variable \$srcfile for the compiler.
  30119. +fix_srcfile_path=$lt_fix_srcfile_path
  30120. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30121. - for (key in D) D_is_set[key] = 1
  30122. - FS = ""
  30123. -}
  30124. -/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  30125. - line = \$ 0
  30126. - split(line, arg, " ")
  30127. - if (arg[1] == "#") {
  30128. - defundef = arg[2]
  30129. - mac1 = arg[3]
  30130. - } else {
  30131. - defundef = substr(arg[1], 2)
  30132. - mac1 = arg[2]
  30133. - }
  30134. - split(mac1, mac2, "(") #)
  30135. - macro = mac2[1]
  30136. - prefix = substr(line, 1, index(line, defundef) - 1)
  30137. - if (D_is_set[macro]) {
  30138. - # Preserve the white space surrounding the "#".
  30139. - print prefix "define", macro P[macro] D[macro]
  30140. - next
  30141. - } else {
  30142. - # Replace #undef with comments. This is necessary, for example,
  30143. - # in the case of _POSIX_SOURCE, which is predefined and required
  30144. - # on some systems where configure will not decide to define it.
  30145. - if (defundef == "undef") {
  30146. - print "/*", prefix defundef, macro, "*/"
  30147. - next
  30148. - }
  30149. - }
  30150. -}
  30151. -{ print }
  30152. -_ACAWK
  30153. -_ACEOF
  30154. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30155. - as_fn_error "could not setup config headers machinery" "$LINENO" 5
  30156. -fi # test -n "$CONFIG_HEADERS"
  30157. +# Set to "yes" if exported symbols are required.
  30158. +always_export_symbols=$always_export_symbols
  30159. +# The commands to list exported symbols.
  30160. +export_symbols_cmds=$lt_export_symbols_cmds
  30161. -eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  30162. -shift
  30163. -for ac_tag
  30164. -do
  30165. - case $ac_tag in
  30166. - :[FHLC]) ac_mode=$ac_tag; continue;;
  30167. - esac
  30168. - case $ac_mode$ac_tag in
  30169. - :[FHL]*:*);;
  30170. - :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  30171. - :[FH]-) ac_tag=-:-;;
  30172. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  30173. - esac
  30174. - ac_save_IFS=$IFS
  30175. - IFS=:
  30176. - set x $ac_tag
  30177. - IFS=$ac_save_IFS
  30178. - shift
  30179. - ac_file=$1
  30180. - shift
  30181. +# Symbols that should not be listed in the preloaded symbols.
  30182. +exclude_expsyms=$lt_exclude_expsyms
  30183. - case $ac_mode in
  30184. - :L) ac_source=$1;;
  30185. - :[FH])
  30186. - ac_file_inputs=
  30187. - for ac_f
  30188. - do
  30189. - case $ac_f in
  30190. - -) ac_f="$tmp/stdin";;
  30191. - *) # Look for the file first in the build tree, then in the source tree
  30192. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  30193. - # because $ac_f cannot contain `:'.
  30194. - test -f "$ac_f" ||
  30195. - case $ac_f in
  30196. - [\\/$]*) false;;
  30197. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  30198. - esac ||
  30199. - as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  30200. - esac
  30201. - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  30202. - as_fn_append ac_file_inputs " '$ac_f'"
  30203. - done
  30204. +# Symbols that must always be exported.
  30205. +include_expsyms=$lt_include_expsyms
  30206. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  30207. - # use $as_me), people would be surprised to read:
  30208. - # /* config.h. Generated by config.status. */
  30209. - configure_input='Generated from '`
  30210. - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  30211. - `' by configure.'
  30212. - if test x"$ac_file" != x-; then
  30213. - configure_input="$ac_file. $configure_input"
  30214. - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  30215. -$as_echo "$as_me: creating $ac_file" >&6;}
  30216. - fi
  30217. - # Neutralize special characters interpreted by sed in replacement strings.
  30218. - case $configure_input in #(
  30219. - *\&* | *\|* | *\\* )
  30220. - ac_sed_conf_input=`$as_echo "$configure_input" |
  30221. - sed 's/[\\\\&|]/\\\\&/g'`;; #(
  30222. - *) ac_sed_conf_input=$configure_input;;
  30223. - esac
  30224. +# Commands necessary for linking programs (against libraries) with templates.
  30225. +prelink_cmds=$lt_prelink_cmds
  30226. - case $ac_tag in
  30227. - *:-:* | *:-) cat >"$tmp/stdin" \
  30228. - || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  30229. - esac
  30230. +# Specify filename containing input files.
  30231. +file_list_spec=$lt_file_list_spec
  30232. +
  30233. +# How to hardcode a shared library path into an executable.
  30234. +hardcode_action=$hardcode_action
  30235. +
  30236. +# ### END LIBTOOL CONFIG
  30237. +
  30238. +_LT_EOF
  30239. +
  30240. + case $host_os in
  30241. + aix3*)
  30242. + cat <<\_LT_EOF >> "$cfgfile"
  30243. +# AIX sometimes has problems with the GCC collect2 program. For some
  30244. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  30245. +# vanish in a puff of smoke.
  30246. +if test "X${COLLECT_NAMES+set}" != Xset; then
  30247. + COLLECT_NAMES=
  30248. + export COLLECT_NAMES
  30249. +fi
  30250. +_LT_EOF
  30251. ;;
  30252. esac
  30253. - ac_dir=`$as_dirname -- "$ac_file" ||
  30254. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30255. - X"$ac_file" : 'X\(//\)[^/]' \| \
  30256. - X"$ac_file" : 'X\(//\)$' \| \
  30257. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  30258. -$as_echo X"$ac_file" |
  30259. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30260. - s//\1/
  30261. - q
  30262. - }
  30263. - /^X\(\/\/\)[^/].*/{
  30264. - s//\1/
  30265. - q
  30266. - }
  30267. - /^X\(\/\/\)$/{
  30268. - s//\1/
  30269. - q
  30270. - }
  30271. - /^X\(\/\).*/{
  30272. - s//\1/
  30273. - q
  30274. - }
  30275. - s/.*/./; q'`
  30276. - as_dir="$ac_dir"; as_fn_mkdir_p
  30277. - ac_builddir=.
  30278. -case "$ac_dir" in
  30279. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30280. -*)
  30281. - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  30282. - # A ".." for each directory in $ac_dir_suffix.
  30283. - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  30284. - case $ac_top_builddir_sub in
  30285. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  30286. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  30287. - esac ;;
  30288. -esac
  30289. -ac_abs_top_builddir=$ac_pwd
  30290. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  30291. -# for backward compatibility:
  30292. -ac_top_builddir=$ac_top_build_prefix
  30293. +ltmain="$ac_aux_dir/ltmain.sh"
  30294. -case $srcdir in
  30295. - .) # We are building in place.
  30296. - ac_srcdir=.
  30297. - ac_top_srcdir=$ac_top_builddir_sub
  30298. - ac_abs_top_srcdir=$ac_pwd ;;
  30299. - [\\/]* | ?:[\\/]* ) # Absolute name.
  30300. - ac_srcdir=$srcdir$ac_dir_suffix;
  30301. - ac_top_srcdir=$srcdir
  30302. - ac_abs_top_srcdir=$srcdir ;;
  30303. - *) # Relative name.
  30304. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  30305. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  30306. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  30307. -esac
  30308. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  30309. + # We use sed instead of cat because bash on DJGPP gets confused if
  30310. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30311. + # text mode, it properly converts lines to CR/LF. This bash problem
  30312. + # is reportedly fixed, but why not run on old versions too?
  30313. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  30314. + || (rm -f "$cfgfile"; exit 1)
  30315. - case $ac_mode in
  30316. - :F)
  30317. - #
  30318. - # CONFIG_FILE
  30319. - #
  30320. + case $xsi_shell in
  30321. + yes)
  30322. + cat << \_LT_EOF >> "$cfgfile"
  30323. - case $INSTALL in
  30324. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  30325. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  30326. +# func_dirname file append nondir_replacement
  30327. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  30328. +# otherwise set result to NONDIR_REPLACEMENT.
  30329. +func_dirname ()
  30330. +{
  30331. + case ${1} in
  30332. + */*) func_dirname_result="${1%/*}${2}" ;;
  30333. + * ) func_dirname_result="${3}" ;;
  30334. esac
  30335. - ac_MKDIR_P=$MKDIR_P
  30336. - case $MKDIR_P in
  30337. - [\\/$]* | ?:[\\/]* ) ;;
  30338. - */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  30339. +}
  30340. +
  30341. +# func_basename file
  30342. +func_basename ()
  30343. +{
  30344. + func_basename_result="${1##*/}"
  30345. +}
  30346. +
  30347. +# func_dirname_and_basename file append nondir_replacement
  30348. +# perform func_basename and func_dirname in a single function
  30349. +# call:
  30350. +# dirname: Compute the dirname of FILE. If nonempty,
  30351. +# add APPEND to the result, otherwise set result
  30352. +# to NONDIR_REPLACEMENT.
  30353. +# value returned in "$func_dirname_result"
  30354. +# basename: Compute filename of FILE.
  30355. +# value retuned in "$func_basename_result"
  30356. +# Implementation must be kept synchronized with func_dirname
  30357. +# and func_basename. For efficiency, we do not delegate to
  30358. +# those functions but instead duplicate the functionality here.
  30359. +func_dirname_and_basename ()
  30360. +{
  30361. + case ${1} in
  30362. + */*) func_dirname_result="${1%/*}${2}" ;;
  30363. + * ) func_dirname_result="${3}" ;;
  30364. + esac
  30365. + func_basename_result="${1##*/}"
  30366. +}
  30367. +
  30368. +# func_stripname prefix suffix name
  30369. +# strip PREFIX and SUFFIX off of NAME.
  30370. +# PREFIX and SUFFIX must not contain globbing or regex special
  30371. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  30372. +# dot (in which case that matches only a dot).
  30373. +func_stripname ()
  30374. +{
  30375. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  30376. + # positional parameters, so assign one to ordinary parameter first.
  30377. + func_stripname_result=${3}
  30378. + func_stripname_result=${func_stripname_result#"${1}"}
  30379. + func_stripname_result=${func_stripname_result%"${2}"}
  30380. +}
  30381. +
  30382. +# func_opt_split
  30383. +func_opt_split ()
  30384. +{
  30385. + func_opt_split_opt=${1%%=*}
  30386. + func_opt_split_arg=${1#*=}
  30387. +}
  30388. +
  30389. +# func_lo2o object
  30390. +func_lo2o ()
  30391. +{
  30392. + case ${1} in
  30393. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  30394. + *) func_lo2o_result=${1} ;;
  30395. esac
  30396. -_ACEOF
  30397. +}
  30398. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30399. -# If the template does not know about datarootdir, expand it.
  30400. -# FIXME: This hack should be removed a few years after 2.60.
  30401. -ac_datarootdir_hack=; ac_datarootdir_seen=
  30402. -ac_sed_dataroot='
  30403. -/datarootdir/ {
  30404. - p
  30405. - q
  30406. +# func_xform libobj-or-source
  30407. +func_xform ()
  30408. +{
  30409. + func_xform_result=${1%.*}.lo
  30410. }
  30411. -/@datadir@/p
  30412. -/@docdir@/p
  30413. -/@infodir@/p
  30414. -/@localedir@/p
  30415. -/@mandir@/p'
  30416. -case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  30417. -*datarootdir*) ac_datarootdir_seen=yes;;
  30418. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  30419. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  30420. -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  30421. -_ACEOF
  30422. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30423. - ac_datarootdir_hack='
  30424. - s&@datadir@&$datadir&g
  30425. - s&@docdir@&$docdir&g
  30426. - s&@infodir@&$infodir&g
  30427. - s&@localedir@&$localedir&g
  30428. - s&@mandir@&$mandir&g
  30429. - s&\\\${datarootdir}&$datarootdir&g' ;;
  30430. -esac
  30431. -_ACEOF
  30432. -# Neutralize VPATH when `$srcdir' = `.'.
  30433. -# Shell code in configure.ac might set extrasub.
  30434. -# FIXME: do we really want to maintain this feature?
  30435. -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  30436. -ac_sed_extra="$ac_vpsub
  30437. -$extrasub
  30438. -_ACEOF
  30439. -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  30440. -:t
  30441. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  30442. -s|@configure_input@|$ac_sed_conf_input|;t t
  30443. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  30444. -s&@top_build_prefix@&$ac_top_build_prefix&;t t
  30445. -s&@srcdir@&$ac_srcdir&;t t
  30446. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  30447. -s&@top_srcdir@&$ac_top_srcdir&;t t
  30448. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  30449. -s&@builddir@&$ac_builddir&;t t
  30450. -s&@abs_builddir@&$ac_abs_builddir&;t t
  30451. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  30452. -s&@INSTALL@&$ac_INSTALL&;t t
  30453. -s&@MKDIR_P@&$ac_MKDIR_P&;t t
  30454. -$ac_datarootdir_hack
  30455. -"
  30456. -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  30457. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  30458. +# func_arith arithmetic-term...
  30459. +func_arith ()
  30460. +{
  30461. + func_arith_result=$(( $* ))
  30462. +}
  30463. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  30464. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  30465. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  30466. - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30467. -which seems to be undefined. Please make sure it is defined." >&5
  30468. -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  30469. -which seems to be undefined. Please make sure it is defined." >&2;}
  30470. +# func_len string
  30471. +# STRING may not start with a hyphen.
  30472. +func_len ()
  30473. +{
  30474. + func_len_result=${#1}
  30475. +}
  30476. - rm -f "$tmp/stdin"
  30477. - case $ac_file in
  30478. - -) cat "$tmp/out" && rm -f "$tmp/out";;
  30479. - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  30480. - esac \
  30481. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  30482. - ;;
  30483. - :H)
  30484. - #
  30485. - # CONFIG_HEADER
  30486. - #
  30487. - if test x"$ac_file" != x-; then
  30488. - {
  30489. - $as_echo "/* $configure_input */" \
  30490. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  30491. - } >"$tmp/config.h" \
  30492. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  30493. - if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  30494. - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  30495. -$as_echo "$as_me: $ac_file is unchanged" >&6;}
  30496. - else
  30497. - rm -f "$ac_file"
  30498. - mv "$tmp/config.h" "$ac_file" \
  30499. - || as_fn_error "could not create $ac_file" "$LINENO" 5
  30500. - fi
  30501. +_LT_EOF
  30502. + ;;
  30503. + *) # Bourne compatible functions.
  30504. + cat << \_LT_EOF >> "$cfgfile"
  30505. +
  30506. +# func_dirname file append nondir_replacement
  30507. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  30508. +# otherwise set result to NONDIR_REPLACEMENT.
  30509. +func_dirname ()
  30510. +{
  30511. + # Extract subdirectory from the argument.
  30512. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  30513. + if test "X$func_dirname_result" = "X${1}"; then
  30514. + func_dirname_result="${3}"
  30515. else
  30516. - $as_echo "/* $configure_input */" \
  30517. - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  30518. - || as_fn_error "could not create -" "$LINENO" 5
  30519. + func_dirname_result="$func_dirname_result${2}"
  30520. fi
  30521. -# Compute "$ac_file"'s index in $config_headers.
  30522. -_am_arg="$ac_file"
  30523. -_am_stamp_count=1
  30524. -for _am_header in $config_headers :; do
  30525. - case $_am_header in
  30526. - $_am_arg | $_am_arg:* )
  30527. - break ;;
  30528. - * )
  30529. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  30530. +}
  30531. +
  30532. +# func_basename file
  30533. +func_basename ()
  30534. +{
  30535. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  30536. +}
  30537. +
  30538. +
  30539. +# func_stripname prefix suffix name
  30540. +# strip PREFIX and SUFFIX off of NAME.
  30541. +# PREFIX and SUFFIX must not contain globbing or regex special
  30542. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  30543. +# dot (in which case that matches only a dot).
  30544. +# func_strip_suffix prefix name
  30545. +func_stripname ()
  30546. +{
  30547. + case ${2} in
  30548. + .*) func_stripname_result=`$ECHO "X${3}" \
  30549. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  30550. + *) func_stripname_result=`$ECHO "X${3}" \
  30551. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  30552. esac
  30553. -done
  30554. -echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  30555. -$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30556. - X"$_am_arg" : 'X\(//\)[^/]' \| \
  30557. - X"$_am_arg" : 'X\(//\)$' \| \
  30558. - X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  30559. -$as_echo X"$_am_arg" |
  30560. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30561. - s//\1/
  30562. - q
  30563. - }
  30564. - /^X\(\/\/\)[^/].*/{
  30565. - s//\1/
  30566. - q
  30567. - }
  30568. - /^X\(\/\/\)$/{
  30569. - s//\1/
  30570. - q
  30571. - }
  30572. - /^X\(\/\).*/{
  30573. - s//\1/
  30574. - q
  30575. - }
  30576. - s/.*/./; q'`/stamp-h$_am_stamp_count
  30577. - ;;
  30578. - :L)
  30579. - #
  30580. - # CONFIG_LINK
  30581. - #
  30582. +}
  30583. - if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  30584. - :
  30585. - else
  30586. - # Prefer the file from the source tree if names are identical.
  30587. - if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  30588. - ac_source=$srcdir/$ac_source
  30589. - fi
  30590. +# sed scripts:
  30591. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  30592. +my_sed_long_arg='1s/^-[^=]*=//'
  30593. - { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  30594. -$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  30595. +# func_opt_split
  30596. +func_opt_split ()
  30597. +{
  30598. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  30599. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  30600. +}
  30601. - if test ! -r "$ac_source"; then
  30602. - as_fn_error "$ac_source: file not found" "$LINENO" 5
  30603. - fi
  30604. - rm -f "$ac_file"
  30605. +# func_lo2o object
  30606. +func_lo2o ()
  30607. +{
  30608. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  30609. +}
  30610. - # Try a relative symlink, then a hard link, then a copy.
  30611. - case $srcdir in
  30612. - [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  30613. - *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  30614. - esac
  30615. - ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  30616. - ln "$ac_source" "$ac_file" 2>/dev/null ||
  30617. - cp -p "$ac_source" "$ac_file" ||
  30618. - as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  30619. - fi
  30620. - ;;
  30621. - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  30622. -$as_echo "$as_me: executing $ac_file commands" >&6;}
  30623. - ;;
  30624. - esac
  30625. +# func_xform libobj-or-source
  30626. +func_xform ()
  30627. +{
  30628. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  30629. +}
  30630. +# func_arith arithmetic-term...
  30631. +func_arith ()
  30632. +{
  30633. + func_arith_result=`expr "$@"`
  30634. +}
  30635. - case $ac_file$ac_mode in
  30636. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  30637. -# are listed without --file. Let's play safe and only enable the eval
  30638. -# if we detect the quoting.
  30639. -case $CONFIG_FILES in
  30640. -*\'*) eval set x "$CONFIG_FILES" ;;
  30641. -*) set x $CONFIG_FILES ;;
  30642. +# func_len string
  30643. +# STRING may not start with a hyphen.
  30644. +func_len ()
  30645. +{
  30646. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  30647. +}
  30648. +
  30649. +_LT_EOF
  30650. esac
  30651. -shift
  30652. -for mf
  30653. -do
  30654. - # Strip MF so we end up with the name of the file.
  30655. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  30656. - # Check whether this is an Automake generated Makefile or not.
  30657. - # We used to match only the files named `Makefile.in', but
  30658. - # some people rename them; so instead we look at the file content.
  30659. - # Grep'ing the first line is not enough: some people post-process
  30660. - # each Makefile.in and add a new line on top of each file to say so.
  30661. - # Grep'ing the whole file is not good either: AIX grep has a line
  30662. - # limit of 2048, but all sed's we know have understand at least 4000.
  30663. - if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  30664. - dirpart=`$as_dirname -- "$mf" ||
  30665. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30666. - X"$mf" : 'X\(//\)[^/]' \| \
  30667. - X"$mf" : 'X\(//\)$' \| \
  30668. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  30669. -$as_echo X"$mf" |
  30670. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30671. - s//\1/
  30672. - q
  30673. - }
  30674. - /^X\(\/\/\)[^/].*/{
  30675. - s//\1/
  30676. - q
  30677. - }
  30678. - /^X\(\/\/\)$/{
  30679. - s//\1/
  30680. - q
  30681. - }
  30682. - /^X\(\/\).*/{
  30683. - s//\1/
  30684. - q
  30685. - }
  30686. - s/.*/./; q'`
  30687. - else
  30688. - continue
  30689. - fi
  30690. - # Extract the definition of DEPDIR, am__include, and am__quote
  30691. - # from the Makefile without running `make'.
  30692. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  30693. - test -z "$DEPDIR" && continue
  30694. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  30695. - test -z "am__include" && continue
  30696. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  30697. - # When using ansi2knr, U may be empty or an underscore; expand it
  30698. - U=`sed -n 's/^U = //p' < "$mf"`
  30699. - # Find all dependency output files, they are included files with
  30700. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  30701. - # simplest approach to changing $(DEPDIR) to its actual value in the
  30702. - # expansion.
  30703. - for file in `sed -n "
  30704. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  30705. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  30706. - # Make sure the directory exists.
  30707. - test -f "$dirpart/$file" && continue
  30708. - fdir=`$as_dirname -- "$file" ||
  30709. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  30710. - X"$file" : 'X\(//\)[^/]' \| \
  30711. - X"$file" : 'X\(//\)$' \| \
  30712. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  30713. -$as_echo X"$file" |
  30714. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  30715. - s//\1/
  30716. - q
  30717. - }
  30718. - /^X\(\/\/\)[^/].*/{
  30719. - s//\1/
  30720. - q
  30721. - }
  30722. - /^X\(\/\/\)$/{
  30723. - s//\1/
  30724. - q
  30725. - }
  30726. - /^X\(\/\).*/{
  30727. - s//\1/
  30728. - q
  30729. - }
  30730. - s/.*/./; q'`
  30731. - as_dir=$dirpart/$fdir; as_fn_mkdir_p
  30732. - # echo "creating $dirpart/$file"
  30733. - echo '# dummy' > "$dirpart/$file"
  30734. - done
  30735. -done
  30736. +
  30737. +case $lt_shell_append in
  30738. + yes)
  30739. + cat << \_LT_EOF >> "$cfgfile"
  30740. +
  30741. +# func_append var value
  30742. +# Append VALUE to the end of shell variable VAR.
  30743. +func_append ()
  30744. +{
  30745. + eval "$1+=\$2"
  30746. +}
  30747. +_LT_EOF
  30748. + ;;
  30749. + *)
  30750. + cat << \_LT_EOF >> "$cfgfile"
  30751. +
  30752. +# func_append var value
  30753. +# Append VALUE to the end of shell variable VAR.
  30754. +func_append ()
  30755. +{
  30756. + eval "$1=\$$1\$2"
  30757. +}
  30758. +
  30759. +_LT_EOF
  30760. + ;;
  30761. + esac
  30762. +
  30763. +
  30764. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  30765. + || (rm -f "$cfgfile"; exit 1)
  30766. +
  30767. + mv -f "$cfgfile" "$ofile" ||
  30768. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  30769. + chmod +x "$ofile"
  30770. +
  30771. ;;
  30772. "gcrypt-conf":C)
  30773. chmod +x src/libgcrypt-config
  30774. diff -Nur libgcrypt-1.4.5.orig/depcomp libgcrypt-1.4.5/depcomp
  30775. --- libgcrypt-1.4.5.orig/depcomp 2009-04-02 11:25:34.000000000 +0200
  30776. +++ libgcrypt-1.4.5/depcomp 2011-02-16 16:00:45.714802422 +0100
  30777. @@ -1,10 +1,10 @@
  30778. #! /bin/sh
  30779. # depcomp - compile a program generating dependencies as side-effects
  30780. -scriptversion=2006-10-15.18
  30781. +scriptversion=2009-04-28.21; # UTC
  30782. -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
  30783. -# Foundation, Inc.
  30784. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  30785. +# Software Foundation, Inc.
  30786. # This program is free software; you can redistribute it and/or modify
  30787. # it under the terms of the GNU General Public License as published by
  30788. @@ -17,9 +17,7 @@
  30789. # GNU General Public License for more details.
  30790. # You should have received a copy of the GNU General Public License
  30791. -# along with this program; if not, write to the Free Software
  30792. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  30793. -# 02110-1301, USA.
  30794. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  30795. # As a special exception to the GNU General Public License, if you
  30796. # distribute this file as part of a program that contains a
  30797. @@ -87,6 +85,15 @@
  30798. depmode=dashmstdout
  30799. fi
  30800. +cygpath_u="cygpath -u -f -"
  30801. +if test "$depmode" = msvcmsys; then
  30802. + # This is just like msvisualcpp but w/o cygpath translation.
  30803. + # Just convert the backslash-escaped backslashes to single forward
  30804. + # slashes to satisfy depend.m4
  30805. + cygpath_u="sed s,\\\\\\\\,/,g"
  30806. + depmode=msvisualcpp
  30807. +fi
  30808. +
  30809. case "$depmode" in
  30810. gcc3)
  30811. ## gcc 3 implements dependency tracking that does exactly what
  30812. @@ -192,14 +199,14 @@
  30813. ' < "$tmpdepfile" \
  30814. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  30815. tr '
  30816. -' ' ' >> $depfile
  30817. - echo >> $depfile
  30818. +' ' ' >> "$depfile"
  30819. + echo >> "$depfile"
  30820. # The second pass generates a dummy entry for each header file.
  30821. tr ' ' '
  30822. ' < "$tmpdepfile" \
  30823. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  30824. - >> $depfile
  30825. + >> "$depfile"
  30826. else
  30827. # The sourcefile does not contain any dependencies, so just
  30828. # store a dummy comment line, to avoid errors with the Makefile
  30829. @@ -215,34 +222,39 @@
  30830. # current directory. Also, the AIX compiler puts `$object:' at the
  30831. # start of each line; $object doesn't have directory information.
  30832. # Version 6 uses the directory in both cases.
  30833. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  30834. - tmpdepfile="$stripped.u"
  30835. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  30836. + test "x$dir" = "x$object" && dir=
  30837. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  30838. if test "$libtool" = yes; then
  30839. + tmpdepfile1=$dir$base.u
  30840. + tmpdepfile2=$base.u
  30841. + tmpdepfile3=$dir.libs/$base.u
  30842. "$@" -Wc,-M
  30843. else
  30844. + tmpdepfile1=$dir$base.u
  30845. + tmpdepfile2=$dir$base.u
  30846. + tmpdepfile3=$dir$base.u
  30847. "$@" -M
  30848. fi
  30849. stat=$?
  30850. - if test -f "$tmpdepfile"; then :
  30851. - else
  30852. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  30853. - tmpdepfile="$stripped.u"
  30854. - fi
  30855. -
  30856. if test $stat -eq 0; then :
  30857. else
  30858. - rm -f "$tmpdepfile"
  30859. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  30860. exit $stat
  30861. fi
  30862. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  30863. + do
  30864. + test -f "$tmpdepfile" && break
  30865. + done
  30866. if test -f "$tmpdepfile"; then
  30867. - outname="$stripped.o"
  30868. # Each line is of the form `foo.o: dependent.h'.
  30869. # Do two passes, one to just change these to
  30870. # `$object: dependent.h' and one to simply `dependent.h:'.
  30871. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  30872. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  30873. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  30874. + # That's a tab and a space in the [].
  30875. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  30876. else
  30877. # The sourcefile does not contain any dependencies, so just
  30878. # store a dummy comment line, to avoid errors with the Makefile
  30879. @@ -323,7 +335,12 @@
  30880. if test -f "$tmpdepfile"; then
  30881. sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  30882. # Add `dependent.h:' lines.
  30883. - sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
  30884. + sed -ne '2,${
  30885. + s/^ *//
  30886. + s/ \\*$//
  30887. + s/$/:/
  30888. + p
  30889. + }' "$tmpdepfile" >> "$depfile"
  30890. else
  30891. echo "#dummy" > "$depfile"
  30892. fi
  30893. @@ -399,7 +416,7 @@
  30894. # Remove the call to Libtool.
  30895. if test "$libtool" = yes; then
  30896. - while test $1 != '--mode=compile'; do
  30897. + while test "X$1" != 'X--mode=compile'; do
  30898. shift
  30899. done
  30900. shift
  30901. @@ -450,32 +467,39 @@
  30902. "$@" || exit $?
  30903. # Remove any Libtool call
  30904. if test "$libtool" = yes; then
  30905. - while test $1 != '--mode=compile'; do
  30906. + while test "X$1" != 'X--mode=compile'; do
  30907. shift
  30908. done
  30909. shift
  30910. fi
  30911. # X makedepend
  30912. shift
  30913. - cleared=no
  30914. - for arg in "$@"; do
  30915. + cleared=no eat=no
  30916. + for arg
  30917. + do
  30918. case $cleared in
  30919. no)
  30920. set ""; shift
  30921. cleared=yes ;;
  30922. esac
  30923. + if test $eat = yes; then
  30924. + eat=no
  30925. + continue
  30926. + fi
  30927. case "$arg" in
  30928. -D*|-I*)
  30929. set fnord "$@" "$arg"; shift ;;
  30930. # Strip any option that makedepend may not understand. Remove
  30931. # the object too, otherwise makedepend will parse it as a source file.
  30932. + -arch)
  30933. + eat=yes ;;
  30934. -*|$object)
  30935. ;;
  30936. *)
  30937. set fnord "$@" "$arg"; shift ;;
  30938. esac
  30939. done
  30940. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  30941. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  30942. touch "$tmpdepfile"
  30943. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  30944. rm -f "$depfile"
  30945. @@ -495,7 +519,7 @@
  30946. # Remove the call to Libtool.
  30947. if test "$libtool" = yes; then
  30948. - while test $1 != '--mode=compile'; do
  30949. + while test "X$1" != 'X--mode=compile'; do
  30950. shift
  30951. done
  30952. shift
  30953. @@ -533,13 +557,27 @@
  30954. msvisualcpp)
  30955. # Important note: in order to support this mode, a compiler *must*
  30956. - # always write the preprocessed file to stdout, regardless of -o,
  30957. - # because we must use -o when running libtool.
  30958. + # always write the preprocessed file to stdout.
  30959. "$@" || exit $?
  30960. +
  30961. + # Remove the call to Libtool.
  30962. + if test "$libtool" = yes; then
  30963. + while test "X$1" != 'X--mode=compile'; do
  30964. + shift
  30965. + done
  30966. + shift
  30967. + fi
  30968. +
  30969. IFS=" "
  30970. for arg
  30971. do
  30972. case "$arg" in
  30973. + -o)
  30974. + shift
  30975. + ;;
  30976. + $object)
  30977. + shift
  30978. + ;;
  30979. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  30980. set fnord "$@"
  30981. shift
  30982. @@ -552,16 +590,23 @@
  30983. ;;
  30984. esac
  30985. done
  30986. - "$@" -E |
  30987. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  30988. + "$@" -E 2>/dev/null |
  30989. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  30990. rm -f "$depfile"
  30991. echo "$object : \\" > "$depfile"
  30992. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  30993. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  30994. echo " " >> "$depfile"
  30995. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  30996. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  30997. rm -f "$tmpdepfile"
  30998. ;;
  30999. +msvcmsys)
  31000. + # This case exists only to let depend.m4 do its work. It works by
  31001. + # looking at the text of this script. This case will never be run,
  31002. + # since it is checked for above.
  31003. + exit 1
  31004. + ;;
  31005. +
  31006. none)
  31007. exec "$@"
  31008. ;;
  31009. @@ -580,5 +625,6 @@
  31010. # eval: (add-hook 'write-file-hooks 'time-stamp)
  31011. # time-stamp-start: "scriptversion="
  31012. # time-stamp-format: "%:y-%02m-%02d.%02H"
  31013. -# time-stamp-end: "$"
  31014. +# time-stamp-time-zone: "UTC"
  31015. +# time-stamp-end: "; # UTC"
  31016. # End:
  31017. diff -Nur libgcrypt-1.4.5.orig/doc/Makefile.in libgcrypt-1.4.5/doc/Makefile.in
  31018. --- libgcrypt-1.4.5.orig/doc/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  31019. +++ libgcrypt-1.4.5/doc/Makefile.in 2011-02-16 16:00:45.334802598 +0100
  31020. @@ -1,8 +1,9 @@
  31021. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  31022. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  31023. # @configure_input@
  31024. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  31025. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  31026. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  31027. +# Inc.
  31028. # This Makefile.in is free software; the Free Software Foundation
  31029. # gives unlimited permission to copy and/or distribute it,
  31030. # with or without modifications, as long as this notice is preserved.
  31031. @@ -33,8 +34,9 @@
  31032. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  31033. VPATH = @srcdir@
  31034. pkgdatadir = $(datadir)/@PACKAGE@
  31035. -pkglibdir = $(libdir)/@PACKAGE@
  31036. pkgincludedir = $(includedir)/@PACKAGE@
  31037. +pkglibdir = $(libdir)/@PACKAGE@
  31038. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  31039. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  31040. install_sh_DATA = $(install_sh) -c -m 644
  31041. install_sh_PROGRAM = $(install_sh) -c
  31042. @@ -55,6 +57,8 @@
  31043. $(srcdir)/version.texi ChangeLog mdate-sh texinfo.tex
  31044. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  31045. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  31046. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  31047. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  31048. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  31049. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  31050. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  31051. @@ -63,6 +67,7 @@
  31052. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  31053. CONFIG_HEADER = $(top_builddir)/config.h
  31054. CONFIG_CLEAN_FILES =
  31055. +CONFIG_CLEAN_VPATH_FILES =
  31056. SOURCES =
  31057. DIST_SOURCES =
  31058. INFO_DEPS = $(srcdir)/gcrypt.info
  31059. @@ -83,7 +88,22 @@
  31060. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  31061. *) f=$$p;; \
  31062. esac;
  31063. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  31064. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  31065. +am__install_max = 40
  31066. +am__nobase_strip_setup = \
  31067. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  31068. +am__nobase_strip = \
  31069. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  31070. +am__nobase_list = $(am__nobase_strip_setup); \
  31071. + for p in $$list; do echo "$$p $$p"; done | \
  31072. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  31073. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  31074. + if (++n[$$2] == $(am__install_max)) \
  31075. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  31076. + END { for (dir in files) print dir, files[dir] }'
  31077. +am__base_list = \
  31078. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  31079. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  31080. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  31081. ACLOCAL = @ACLOCAL@
  31082. AMTAR = @AMTAR@
  31083. @@ -104,24 +124,20 @@
  31084. CFLAGS = @CFLAGS@
  31085. CPP = @CPP@
  31086. CPPFLAGS = @CPPFLAGS@
  31087. -CXX = @CXX@
  31088. -CXXCPP = @CXXCPP@
  31089. -CXXDEPMODE = @CXXDEPMODE@
  31090. -CXXFLAGS = @CXXFLAGS@
  31091. CYGPATH_W = @CYGPATH_W@
  31092. DEFS = @DEFS@
  31093. DEPDIR = @DEPDIR@
  31094. DLLTOOL = @DLLTOOL@
  31095. DL_LIBS = @DL_LIBS@
  31096. -ECHO = @ECHO@
  31097. +DSYMUTIL = @DSYMUTIL@
  31098. +DUMPBIN = @DUMPBIN@
  31099. ECHO_C = @ECHO_C@
  31100. ECHO_N = @ECHO_N@
  31101. ECHO_T = @ECHO_T@
  31102. EGREP = @EGREP@
  31103. EXEEXT = @EXEEXT@
  31104. -F77 = @F77@
  31105. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  31106. -FFLAGS = @FFLAGS@
  31107. +FGREP = @FGREP@
  31108. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  31109. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  31110. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  31111. @@ -135,6 +151,7 @@
  31112. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  31113. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  31114. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  31115. +LD = @LD@
  31116. LDFLAGS = @LDFLAGS@
  31117. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  31118. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  31119. @@ -149,15 +166,20 @@
  31120. LIBOBJS = @LIBOBJS@
  31121. LIBS = @LIBS@
  31122. LIBTOOL = @LIBTOOL@
  31123. +LIPO = @LIPO@
  31124. LN_S = @LN_S@
  31125. LTLIBOBJS = @LTLIBOBJS@
  31126. MAINT = @MAINT@
  31127. MAKEINFO = @MAKEINFO@
  31128. MKDIR_P = @MKDIR_P@
  31129. MPI_SFLAGS = @MPI_SFLAGS@
  31130. +NM = @NM@
  31131. +NMEDIT = @NMEDIT@
  31132. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  31133. OBJDUMP = @OBJDUMP@
  31134. OBJEXT = @OBJEXT@
  31135. +OTOOL = @OTOOL@
  31136. +OTOOL64 = @OTOOL64@
  31137. PACKAGE = @PACKAGE@
  31138. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  31139. PACKAGE_NAME = @PACKAGE_NAME@
  31140. @@ -170,7 +192,7 @@
  31141. PTH_CONFIG = @PTH_CONFIG@
  31142. PTH_LIBS = @PTH_LIBS@
  31143. RANLIB = @RANLIB@
  31144. -RC = @RC@
  31145. +SED = @SED@
  31146. SET_MAKE = @SET_MAKE@
  31147. SHELL = @SHELL@
  31148. STRIP = @STRIP@
  31149. @@ -181,8 +203,7 @@
  31150. abs_top_builddir = @abs_top_builddir@
  31151. abs_top_srcdir = @abs_top_srcdir@
  31152. ac_ct_CC = @ac_ct_CC@
  31153. -ac_ct_CXX = @ac_ct_CXX@
  31154. -ac_ct_F77 = @ac_ct_F77@
  31155. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  31156. am__include = @am__include@
  31157. am__leading_dot = @am__leading_dot@
  31158. am__quote = @am__quote@
  31159. @@ -213,6 +234,7 @@
  31160. libexecdir = @libexecdir@
  31161. localedir = @localedir@
  31162. localstatedir = @localstatedir@
  31163. +lt_ECHO = @lt_ECHO@
  31164. mandir = @mandir@
  31165. mkdir_p = @mkdir_p@
  31166. oldincludedir = @oldincludedir@
  31167. @@ -254,9 +276,9 @@
  31168. exit 1;; \
  31169. esac; \
  31170. done; \
  31171. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  31172. - cd $(top_srcdir) && \
  31173. - $(AUTOMAKE) --gnu doc/Makefile
  31174. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  31175. + $(am__cd) $(top_srcdir) && \
  31176. + $(AUTOMAKE) --gnu doc/Makefile
  31177. .PRECIOUS: Makefile
  31178. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  31179. @case '$?' in \
  31180. @@ -274,6 +296,7 @@
  31181. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  31182. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  31183. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  31184. +$(am__aclocal_m4_deps):
  31185. mostlyclean-libtool:
  31186. -rm -f *.lo
  31187. @@ -283,7 +306,7 @@
  31188. .texi.info:
  31189. restore=: && backupdir="$(am__leading_dot)am$$$$" && \
  31190. - am__cwd=`pwd` && cd $(srcdir) && \
  31191. + am__cwd=`pwd` && $(am__cd) $(srcdir) && \
  31192. rm -rf $$backupdir && mkdir $$backupdir && \
  31193. if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
  31194. for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \
  31195. @@ -295,10 +318,10 @@
  31196. -o $@ $<; \
  31197. then \
  31198. rc=0; \
  31199. - cd $(srcdir); \
  31200. + $(am__cd) $(srcdir); \
  31201. else \
  31202. rc=$$?; \
  31203. - cd $(srcdir) && \
  31204. + $(am__cd) $(srcdir) && \
  31205. $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \
  31206. fi; \
  31207. rm -rf $$backupdir; exit $$rc
  31208. @@ -355,16 +378,18 @@
  31209. uninstall-dvi-am:
  31210. @$(NORMAL_UNINSTALL)
  31211. - @list='$(DVIS)'; for p in $$list; do \
  31212. - f=$(am__strip_dir) \
  31213. + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \
  31214. + for p in $$list; do \
  31215. + $(am__strip_dir) \
  31216. echo " rm -f '$(DESTDIR)$(dvidir)/$$f'"; \
  31217. rm -f "$(DESTDIR)$(dvidir)/$$f"; \
  31218. done
  31219. uninstall-html-am:
  31220. @$(NORMAL_UNINSTALL)
  31221. - @list='$(HTMLS)'; for p in $$list; do \
  31222. - f=$(am__strip_dir) \
  31223. + @list='$(HTMLS)'; test -n "$(htmldir)" || list=; \
  31224. + for p in $$list; do \
  31225. + $(am__strip_dir) \
  31226. echo " rm -rf '$(DESTDIR)$(htmldir)/$$f'"; \
  31227. rm -rf "$(DESTDIR)$(htmldir)/$$f"; \
  31228. done
  31229. @@ -378,7 +403,8 @@
  31230. for file in $$list; do \
  31231. relfile=`echo "$$file" | sed 's|^.*/||'`; \
  31232. echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
  31233. - install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
  31234. + if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
  31235. + then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \
  31236. done; \
  31237. else :; fi
  31238. @$(NORMAL_UNINSTALL)
  31239. @@ -394,16 +420,18 @@
  31240. uninstall-pdf-am:
  31241. @$(NORMAL_UNINSTALL)
  31242. - @list='$(PDFS)'; for p in $$list; do \
  31243. - f=$(am__strip_dir) \
  31244. + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
  31245. + for p in $$list; do \
  31246. + $(am__strip_dir) \
  31247. echo " rm -f '$(DESTDIR)$(pdfdir)/$$f'"; \
  31248. rm -f "$(DESTDIR)$(pdfdir)/$$f"; \
  31249. done
  31250. uninstall-ps-am:
  31251. @$(NORMAL_UNINSTALL)
  31252. - @list='$(PSS)'; for p in $$list; do \
  31253. - f=$(am__strip_dir) \
  31254. + @list='$(PSS)'; test -n "$(psdir)" || list=; \
  31255. + for p in $$list; do \
  31256. + $(am__strip_dir) \
  31257. echo " rm -f '$(DESTDIR)$(psdir)/$$f'"; \
  31258. rm -f "$(DESTDIR)$(psdir)/$$f"; \
  31259. done
  31260. @@ -420,8 +448,8 @@
  31261. for file in $$d/$$base $$d/$$base-[0-9] $$d/$$base-[0-9][0-9] $$d/$$base_i[0-9] $$d/$$base_i[0-9][0-9]; do \
  31262. if test -f $$file; then \
  31263. relfile=`expr "$$file" : "$$d/\(.*\)"`; \
  31264. - test -f $(distdir)/$$relfile || \
  31265. - cp -p $$file $(distdir)/$$relfile; \
  31266. + test -f "$(distdir)/$$relfile" || \
  31267. + cp -p $$file "$(distdir)/$$relfile"; \
  31268. else :; fi; \
  31269. done; \
  31270. done
  31271. @@ -429,8 +457,11 @@
  31272. mostlyclean-aminfo:
  31273. -rm -rf gcrypt.aux gcrypt.cp gcrypt.cps gcrypt.fn gcrypt.fns gcrypt.ky \
  31274. gcrypt.kys gcrypt.log gcrypt.pg gcrypt.tmp gcrypt.toc \
  31275. - gcrypt.tp gcrypt.vr gcrypt.vrs gcrypt.dvi gcrypt.pdf \
  31276. - gcrypt.ps gcrypt.html
  31277. + gcrypt.tp gcrypt.vr gcrypt.vrs
  31278. +
  31279. +clean-aminfo:
  31280. + -test -z "gcrypt.dvi gcrypt.pdf gcrypt.ps gcrypt.html" \
  31281. + || rm -rf gcrypt.dvi gcrypt.pdf gcrypt.ps gcrypt.html
  31282. maintainer-clean-aminfo:
  31283. @list='$(INFO_DEPS)'; for i in $$list; do \
  31284. @@ -461,13 +492,17 @@
  31285. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  31286. if test -d $$d/$$file; then \
  31287. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  31288. + if test -d "$(distdir)/$$file"; then \
  31289. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  31290. + fi; \
  31291. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  31292. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  31293. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  31294. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  31295. fi; \
  31296. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  31297. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  31298. else \
  31299. - test -f $(distdir)/$$file \
  31300. - || cp -p $$d/$$file $(distdir)/$$file \
  31301. + test -f "$(distdir)/$$file" \
  31302. + || cp -p $$d/$$file "$(distdir)/$$file" \
  31303. || exit 1; \
  31304. fi; \
  31305. done
  31306. @@ -503,6 +538,7 @@
  31307. distclean-generic:
  31308. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  31309. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  31310. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  31311. maintainer-clean-generic:
  31312. @@ -511,7 +547,7 @@
  31313. -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
  31314. clean: clean-am
  31315. -clean-am: clean-generic clean-libtool mostlyclean-am
  31316. +clean-am: clean-aminfo clean-generic clean-libtool mostlyclean-am
  31317. distclean: distclean-am
  31318. -rm -f Makefile
  31319. @@ -536,11 +572,14 @@
  31320. install-dvi-am: $(DVIS)
  31321. @$(NORMAL_INSTALL)
  31322. test -z "$(dvidir)" || $(MKDIR_P) "$(DESTDIR)$(dvidir)"
  31323. - @list='$(DVIS)'; for p in $$list; do \
  31324. + @list='$(DVIS)'; test -n "$(dvidir)" || list=; \
  31325. + for p in $$list; do \
  31326. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  31327. - f=$(am__strip_dir) \
  31328. - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(dvidir)/$$f'"; \
  31329. - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(dvidir)/$$f"; \
  31330. + echo "$$d$$p"; \
  31331. + done | $(am__base_list) | \
  31332. + while read files; do \
  31333. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dvidir)'"; \
  31334. + $(INSTALL_DATA) $$files "$(DESTDIR)$(dvidir)" || exit $$?; \
  31335. done
  31336. install-exec-am:
  31337. @@ -549,26 +588,31 @@
  31338. install-html-am: $(HTMLS)
  31339. @$(NORMAL_INSTALL)
  31340. test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
  31341. - @list='$(HTMLS)'; for p in $$list; do \
  31342. + @list='$(HTMLS)'; list2=; test -n "$(htmldir)" || list=; \
  31343. + for p in $$list; do \
  31344. if test -f "$$p" || test -d "$$p"; then d=; else d="$(srcdir)/"; fi; \
  31345. - f=$(am__strip_dir) \
  31346. + $(am__strip_dir) \
  31347. if test -d "$$d$$p"; then \
  31348. echo " $(MKDIR_P) '$(DESTDIR)$(htmldir)/$$f'"; \
  31349. $(MKDIR_P) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
  31350. echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
  31351. - $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
  31352. + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f" || exit $$?; \
  31353. else \
  31354. - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
  31355. - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
  31356. + list2="$$list2 $$d$$p"; \
  31357. fi; \
  31358. - done
  31359. + done; \
  31360. + test -z "$$list2" || { echo "$$list2" | $(am__base_list) | \
  31361. + while read files; do \
  31362. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \
  31363. + $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \
  31364. + done; }
  31365. install-info: install-info-am
  31366. install-info-am: $(INFO_DEPS)
  31367. @$(NORMAL_INSTALL)
  31368. test -z "$(infodir)" || $(MKDIR_P) "$(DESTDIR)$(infodir)"
  31369. @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  31370. - list='$(INFO_DEPS)'; \
  31371. + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
  31372. for file in $$list; do \
  31373. case $$file in \
  31374. $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  31375. @@ -576,18 +620,19 @@
  31376. if test -f $$file; then d=.; else d=$(srcdir); fi; \
  31377. file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \
  31378. for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \
  31379. - $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
  31380. + $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \
  31381. if test -f $$ifile; then \
  31382. - relfile=`echo "$$ifile" | sed 's|^.*/||'`; \
  31383. - echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \
  31384. - $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \
  31385. + echo "$$ifile"; \
  31386. else : ; fi; \
  31387. done; \
  31388. - done
  31389. + done | $(am__base_list) | \
  31390. + while read files; do \
  31391. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(infodir)'"; \
  31392. + $(INSTALL_DATA) $$files "$(DESTDIR)$(infodir)" || exit $$?; done
  31393. @$(POST_INSTALL)
  31394. @if (install-info --version && \
  31395. install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
  31396. - list='$(INFO_DEPS)'; \
  31397. + list='$(INFO_DEPS)'; test -n "$(infodir)" || list=; \
  31398. for file in $$list; do \
  31399. relfile=`echo "$$file" | sed 's|^.*/||'`; \
  31400. echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
  31401. @@ -601,23 +646,27 @@
  31402. install-pdf-am: $(PDFS)
  31403. @$(NORMAL_INSTALL)
  31404. test -z "$(pdfdir)" || $(MKDIR_P) "$(DESTDIR)$(pdfdir)"
  31405. - @list='$(PDFS)'; for p in $$list; do \
  31406. + @list='$(PDFS)'; test -n "$(pdfdir)" || list=; \
  31407. + for p in $$list; do \
  31408. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  31409. - f=$(am__strip_dir) \
  31410. - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
  31411. - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
  31412. - done
  31413. + echo "$$d$$p"; \
  31414. + done | $(am__base_list) | \
  31415. + while read files; do \
  31416. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pdfdir)'"; \
  31417. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pdfdir)" || exit $$?; done
  31418. install-ps: install-ps-am
  31419. install-ps-am: $(PSS)
  31420. @$(NORMAL_INSTALL)
  31421. test -z "$(psdir)" || $(MKDIR_P) "$(DESTDIR)$(psdir)"
  31422. - @list='$(PSS)'; for p in $$list; do \
  31423. + @list='$(PSS)'; test -n "$(psdir)" || list=; \
  31424. + for p in $$list; do \
  31425. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  31426. - f=$(am__strip_dir) \
  31427. - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(psdir)/$$f'"; \
  31428. - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(psdir)/$$f"; \
  31429. - done
  31430. + echo "$$d$$p"; \
  31431. + done | $(am__base_list) | \
  31432. + while read files; do \
  31433. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(psdir)'"; \
  31434. + $(INSTALL_DATA) $$files "$(DESTDIR)$(psdir)" || exit $$?; done
  31435. installcheck-am:
  31436. maintainer-clean: maintainer-clean-am
  31437. @@ -641,12 +690,12 @@
  31438. uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \
  31439. uninstall-pdf-am uninstall-ps-am
  31440. -.MAKE: install-am install-strip
  31441. +.MAKE: all check install install-am install-strip
  31442. -.PHONY: all all-am check check-am clean clean-generic clean-libtool \
  31443. - dist-info distclean distclean-generic distclean-libtool \
  31444. - distdir dvi dvi-am html html-am info info-am install \
  31445. - install-am install-data install-data-am install-dvi \
  31446. +.PHONY: all all-am check check-am clean clean-aminfo clean-generic \
  31447. + clean-libtool dist-info distclean distclean-generic \
  31448. + distclean-libtool distdir dvi dvi-am html html-am info info-am \
  31449. + install install-am install-data install-data-am install-dvi \
  31450. install-dvi-am install-exec install-exec-am install-html \
  31451. install-html-am install-info install-info-am install-man \
  31452. install-pdf install-pdf-am install-ps install-ps-am \
  31453. @@ -694,6 +743,7 @@
  31454. cd gcrypt.html ; \
  31455. rsync -vr --exclude='.svn' . \
  31456. $${user}@trithemius.gnupg.org:webspace/manuals/gcrypt$${dashdevel}/
  31457. +
  31458. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  31459. # Otherwise a system limit (for SysV at least) may be exceeded.
  31460. .NOEXPORT:
  31461. diff -Nur libgcrypt-1.4.5.orig/doc/mdate-sh libgcrypt-1.4.5/doc/mdate-sh
  31462. --- libgcrypt-1.4.5.orig/doc/mdate-sh 2009-04-02 11:25:34.000000000 +0200
  31463. +++ libgcrypt-1.4.5/doc/mdate-sh 2011-02-16 16:00:45.244801789 +0100
  31464. @@ -1,10 +1,10 @@
  31465. #!/bin/sh
  31466. # Get modification time of a file or directory and pretty-print it.
  31467. -scriptversion=2005-06-29.22
  31468. +scriptversion=2009-04-28.21; # UTC
  31469. -# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software
  31470. -# Foundation, Inc.
  31471. +# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009 Free
  31472. +# Software Foundation, Inc.
  31473. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
  31474. #
  31475. # This program is free software; you can redistribute it and/or modify
  31476. @@ -18,8 +18,7 @@
  31477. # GNU General Public License for more details.
  31478. #
  31479. # You should have received a copy of the GNU General Public License
  31480. -# along with this program; if not, write to the Free Software Foundation,
  31481. -# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  31482. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  31483. # As a special exception to the GNU General Public License, if you
  31484. # distribute this file as part of a program that contains a
  31485. @@ -75,6 +74,10 @@
  31486. else
  31487. ls_command='ls -l -d'
  31488. fi
  31489. +# Avoid user/group names that might have spaces, when possible.
  31490. +if ls -n /dev/null 1>/dev/null 2>&1; then
  31491. + ls_command="$ls_command -n"
  31492. +fi
  31493. # A `ls -l' line looks as follows on OS/2.
  31494. # drwxrwx--- 0 Aug 11 2001 foo
  31495. @@ -89,7 +92,7 @@
  31496. # words should be skipped to get the date.
  31497. # On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
  31498. -set x`ls -l -d /`
  31499. +set x`$ls_command /`
  31500. # Find which argument is the month.
  31501. month=
  31502. @@ -197,5 +200,6 @@
  31503. # eval: (add-hook 'write-file-hooks 'time-stamp)
  31504. # time-stamp-start: "scriptversion="
  31505. # time-stamp-format: "%:y-%02m-%02d.%02H"
  31506. -# time-stamp-end: "$"
  31507. +# time-stamp-time-zone: "UTC"
  31508. +# time-stamp-end: "; # UTC"
  31509. # End:
  31510. diff -Nur libgcrypt-1.4.5.orig/doc/texinfo.tex libgcrypt-1.4.5/doc/texinfo.tex
  31511. --- libgcrypt-1.4.5.orig/doc/texinfo.tex 2009-04-02 11:25:34.000000000 +0200
  31512. +++ libgcrypt-1.4.5/doc/texinfo.tex 2011-02-16 16:00:45.284802041 +0100
  31513. @@ -1,18 +1,18 @@
  31514. % texinfo.tex -- TeX macros to handle Texinfo files.
  31515. -%
  31516. +%
  31517. % Load plain if necessary, i.e., if running under initex.
  31518. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
  31519. %
  31520. -\def\texinfoversion{2006-10-04.17}
  31521. +\def\texinfoversion{2009-08-14.15}
  31522. %
  31523. -% Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
  31524. -% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
  31525. -% Software Foundation, Inc.
  31526. +% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
  31527. +% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
  31528. +% 2007, 2008, 2009 Free Software Foundation, Inc.
  31529. %
  31530. -% This texinfo.tex file is free software; you can redistribute it and/or
  31531. +% This texinfo.tex file is free software: you can redistribute it and/or
  31532. % modify it under the terms of the GNU General Public License as
  31533. -% published by the Free Software Foundation; either version 2, or (at
  31534. -% your option) any later version.
  31535. +% published by the Free Software Foundation, either version 3 of the
  31536. +% License, or (at your option) any later version.
  31537. %
  31538. % This texinfo.tex file is distributed in the hope that it will be
  31539. % useful, but WITHOUT ANY WARRANTY; without even the implied warranty
  31540. @@ -20,9 +20,7 @@
  31541. % General Public License for more details.
  31542. %
  31543. % You should have received a copy of the GNU General Public License
  31544. -% along with this texinfo.tex file; see the file COPYING. If not, write
  31545. -% to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  31546. -% Boston, MA 02110-1301, USA.
  31547. +% along with this program. If not, see <http://www.gnu.org/licenses/>.
  31548. %
  31549. % As a special exception, when this file is read by TeX when processing
  31550. % a Texinfo source document, you may use the result without
  31551. @@ -67,7 +65,7 @@
  31552. \everyjob{\message{[Texinfo version \texinfoversion]}%
  31553. \catcode`+=\active \catcode`\_=\active}
  31554. -\message{Basics,}
  31555. +
  31556. \chardef\other=12
  31557. % We never want plain's \outer definition of \+ in Texinfo.
  31558. @@ -99,6 +97,10 @@
  31559. \let\ptexslash=\/
  31560. \let\ptexstar=\*
  31561. \let\ptext=\t
  31562. +\let\ptextop=\top
  31563. +{\catcode`\'=\active
  31564. +\global\let\ptexquoteright'}% Math-mode def from plain.tex.
  31565. +\let\ptexraggedright=\raggedright
  31566. % If this character appears in an error message or help string, it
  31567. % starts a new line in the output.
  31568. @@ -279,6 +281,50 @@
  31569. \newdimen\cornerthick \cornerthick=.3pt
  31570. \newdimen\topandbottommargin \topandbottommargin=.75in
  31571. +% Output a mark which sets \thischapter, \thissection and \thiscolor.
  31572. +% We dump everything together because we only have one kind of mark.
  31573. +% This works because we only use \botmark / \topmark, not \firstmark.
  31574. +%
  31575. +% A mark contains a subexpression of the \ifcase ... \fi construct.
  31576. +% \get*marks macros below extract the needed part using \ifcase.
  31577. +%
  31578. +% Another complication is to let the user choose whether \thischapter
  31579. +% (\thissection) refers to the chapter (section) in effect at the top
  31580. +% of a page, or that at the bottom of a page. The solution is
  31581. +% described on page 260 of The TeXbook. It involves outputting two
  31582. +% marks for the sectioning macros, one before the section break, and
  31583. +% one after. I won't pretend I can describe this better than DEK...
  31584. +\def\domark{%
  31585. + \toks0=\expandafter{\lastchapterdefs}%
  31586. + \toks2=\expandafter{\lastsectiondefs}%
  31587. + \toks4=\expandafter{\prevchapterdefs}%
  31588. + \toks6=\expandafter{\prevsectiondefs}%
  31589. + \toks8=\expandafter{\lastcolordefs}%
  31590. + \mark{%
  31591. + \the\toks0 \the\toks2
  31592. + \noexpand\or \the\toks4 \the\toks6
  31593. + \noexpand\else \the\toks8
  31594. + }%
  31595. +}
  31596. +% \topmark doesn't work for the very first chapter (after the title
  31597. +% page or the contents), so we use \firstmark there -- this gets us
  31598. +% the mark with the chapter defs, unless the user sneaks in, e.g.,
  31599. +% @setcolor (or @url, or @link, etc.) between @contents and the very
  31600. +% first @chapter.
  31601. +\def\gettopheadingmarks{%
  31602. + \ifcase0\topmark\fi
  31603. + \ifx\thischapter\empty \ifcase0\firstmark\fi \fi
  31604. +}
  31605. +\def\getbottomheadingmarks{\ifcase1\botmark\fi}
  31606. +\def\getcolormarks{\ifcase2\topmark\fi}
  31607. +
  31608. +% Avoid "undefined control sequence" errors.
  31609. +\def\lastchapterdefs{}
  31610. +\def\lastsectiondefs{}
  31611. +\def\prevchapterdefs{}
  31612. +\def\prevsectiondefs{}
  31613. +\def\lastcolordefs{}
  31614. +
  31615. % Main output routine.
  31616. \chardef\PAGE = 255
  31617. \output = {\onepageout{\pagecontents\PAGE}}
  31618. @@ -296,7 +342,9 @@
  31619. %
  31620. % Do this outside of the \shipout so @code etc. will be expanded in
  31621. % the headline as they should be, not taken literally (outputting ''code).
  31622. + \ifodd\pageno \getoddheadingmarks \else \getevenheadingmarks \fi
  31623. \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
  31624. + \ifodd\pageno \getoddfootingmarks \else \getevenfootingmarks \fi
  31625. \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
  31626. %
  31627. {%
  31628. @@ -310,7 +358,7 @@
  31629. % We don't want .vr (or whatever) entries like this:
  31630. % \entry{{\tt \indexbackslash }acronym}{32}{\code {\acronym}}
  31631. % "\acronym" won't work when it's read back in;
  31632. - % it needs to be
  31633. + % it needs to be
  31634. % {\code {{\tt \backslashcurfont }acronym}
  31635. \shipout\vbox{%
  31636. % Do this early so pdf references go to the beginning of the page.
  31637. @@ -375,7 +423,7 @@
  31638. % marginal hacks, juha@viisa.uucp (Juha Takala)
  31639. \ifvoid\margin\else % marginal info is present
  31640. \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi
  31641. -\dimen@=\dp#1 \unvbox#1
  31642. +\dimen@=\dp#1\relax \unvbox#1\relax
  31643. \ifvoid\footins\else\vskip\skip\footins\footnoterule \unvbox\footins\fi
  31644. \ifr@ggedbottom \kern-\dimen@ \vfil \fi}
  31645. }
  31646. @@ -416,7 +464,7 @@
  31647. \def\argremovecomment#1\comment#2\ArgTerm{\argremovec #1\c\ArgTerm}
  31648. \def\argremovec#1\c#2\ArgTerm{\argcheckspaces#1\^^M\ArgTerm}
  31649. -% Each occurence of `\^^M' or `<space>\^^M' is replaced by a single space.
  31650. +% Each occurrence of `\^^M' or `<space>\^^M' is replaced by a single space.
  31651. %
  31652. % \argremovec might leave us with trailing space, e.g.,
  31653. % @end itemize @c foo
  31654. @@ -441,7 +489,7 @@
  31655. % to get _exactly_ the rest of the line, we had to prevent such situation.
  31656. % We prepended an \empty token at the very beginning and we expand it now,
  31657. % just before passing the control to \argtorun.
  31658. -% (Similarily, we have to think about #3 of \argcheckspacesY above: it is
  31659. +% (Similarly, we have to think about #3 of \argcheckspacesY above: it is
  31660. % either the null string, or it ends with \^^M---thus there is no danger
  31661. % that a pair of braces would be stripped.
  31662. %
  31663. @@ -498,12 +546,12 @@
  31664. % used to check whether the current environment is the one expected.
  31665. %
  31666. % Non-false conditionals (@iftex, @ifset) don't fit into this, so they
  31667. -% are not treated as enviroments; they don't open a group. (The
  31668. +% are not treated as environments; they don't open a group. (The
  31669. % implementation of @end takes care not to call \endgroup in this
  31670. % special case.)
  31671. -% At runtime, environments start with this:
  31672. +% At run-time, environments start with this:
  31673. \def\startenvironment#1{\begingroup\def\thisenv{#1}}
  31674. % initialize
  31675. \let\thisenv\empty
  31676. @@ -521,7 +569,7 @@
  31677. \fi
  31678. }
  31679. -% Evironment mismatch, #1 expected:
  31680. +% Environment mismatch, #1 expected:
  31681. \def\badenverr{%
  31682. \errhelp = \EMsimple
  31683. \errmessage{This command can appear only \inenvironment\temp,
  31684. @@ -605,8 +653,8 @@
  31685. \def\jmacro{j}
  31686. \def\dotless#1{%
  31687. \def\temp{#1}%
  31688. - \ifx\temp\imacro \ptexi
  31689. - \else\ifx\temp\jmacro \j
  31690. + \ifx\temp\imacro \ifmmode\imath \else\ptexi \fi
  31691. + \else\ifx\temp\jmacro \ifmmode\jmath \else\j \fi
  31692. \else \errmessage{@dotless can be used only with i or j}%
  31693. \fi\fi
  31694. }
  31695. @@ -661,7 +709,7 @@
  31696. \def\?{?\spacefactor=\endofsentencespacefactor\space}
  31697. % @frenchspacing on|off says whether to put extra space after punctuation.
  31698. -%
  31699. +%
  31700. \def\onword{on}
  31701. \def\offword{off}
  31702. %
  31703. @@ -872,15 +920,20 @@
  31704. \temp
  31705. }
  31706. -% @include file insert text of that file as input.
  31707. +% @include FILE -- \input text of FILE.
  31708. %
  31709. \def\include{\parseargusing\filenamecatcodes\includezzz}
  31710. \def\includezzz#1{%
  31711. \pushthisfilestack
  31712. \def\thisfile{#1}%
  31713. {%
  31714. - \makevalueexpandable
  31715. - \def\temp{\input #1 }%
  31716. + \makevalueexpandable % we want to expand any @value in FILE.
  31717. + \turnoffactive % and allow special characters in the expansion
  31718. + \indexnofonts % Allow `@@' and other weird things in file names.
  31719. + \edef\temp{\noexpand\input #1 }%
  31720. + %
  31721. + % This trickery is to read FILE outside of a group, in case it makes
  31722. + % definitions, etc.
  31723. \expandafter
  31724. }\temp
  31725. \popthisfilestack
  31726. @@ -895,6 +948,8 @@
  31727. \catcode`>=\other
  31728. \catcode`+=\other
  31729. \catcode`-=\other
  31730. + \catcode`\`=\other
  31731. + \catcode`\'=\other
  31732. }
  31733. \def\pushthisfilestack{%
  31734. @@ -1070,6 +1125,16 @@
  31735. \mathunderscore
  31736. \let\\ = \mathbackslash
  31737. \mathactive
  31738. + % make the texinfo accent commands work in math mode
  31739. + \let\"=\ddot
  31740. + \let\'=\acute
  31741. + \let\==\bar
  31742. + \let\^=\hat
  31743. + \let\`=\grave
  31744. + \let\u=\breve
  31745. + \let\v=\check
  31746. + \let\~=\tilde
  31747. + \let\dotaccent=\dot
  31748. $\finishmath
  31749. }
  31750. \def\finishmath#1{#1$\endgroup} % Close the group opened by \tex.
  31751. @@ -1083,17 +1148,21 @@
  31752. \catcode`< = \active
  31753. \catcode`> = \active
  31754. \catcode`+ = \active
  31755. + \catcode`' = \active
  31756. \gdef\mathactive{%
  31757. \let^ = \ptexhat
  31758. \let< = \ptexless
  31759. \let> = \ptexgtr
  31760. \let+ = \ptexplus
  31761. + \let' = \ptexquoteright
  31762. }
  31763. }
  31764. -% @bullet and @minus need the same treatment as @math, just above.
  31765. +% Some math mode symbols.
  31766. \def\bullet{$\ptexbullet$}
  31767. -\def\minus{$-$}
  31768. +\def\geq{\ifmmode \ge\else $\ge$\fi}
  31769. +\def\leq{\ifmmode \le\else $\le$\fi}
  31770. +\def\minus{\ifmmode -\else $-$\fi}
  31771. % @dots{} outputs an ellipsis using the current font.
  31772. % We do .5em per period so that it has the same spacing in the cm
  31773. @@ -1216,7 +1285,7 @@
  31774. % that's what we do).
  31775. % double active backslashes.
  31776. -%
  31777. +%
  31778. {\catcode`\@=0 \catcode`\\=\active
  31779. @gdef@activebackslashdouble{%
  31780. @catcode`@\=@active
  31781. @@ -1225,13 +1294,14 @@
  31782. % To handle parens, we must adopt a different approach, since parens are
  31783. % not active characters. hyperref.dtx (which has the same problem as
  31784. -% us) handles it with this amazing macro to replace tokens. I've
  31785. -% tinkered with it a little for texinfo, but it's definitely from there.
  31786. -%
  31787. +% us) handles it with this amazing macro to replace tokens, with minor
  31788. +% changes for Texinfo. It is included here under the GPL by permission
  31789. +% from the author, Heiko Oberdiek.
  31790. +%
  31791. % #1 is the tokens to replace.
  31792. % #2 is the replacement.
  31793. % #3 is the control sequence with the string.
  31794. -%
  31795. +%
  31796. \def\HyPsdSubst#1#2#3{%
  31797. \def\HyPsdReplace##1#1##2\END{%
  31798. ##1%
  31799. @@ -1255,14 +1325,93 @@
  31800. \HyPsdSubst{)}{\realbackslash)}{#1}%
  31801. }
  31802. +\newhelp\nopdfimagehelp{Texinfo supports .png, .jpg, .jpeg, and .pdf images
  31803. +with PDF output, and none of those formats could be found. (.eps cannot
  31804. +be supported due to the design of the PDF format; use regular TeX (DVI
  31805. +output) for that.)}
  31806. +
  31807. \ifpdf
  31808. - \input pdfcolor
  31809. - \pdfcatalog{/PageMode /UseOutlines}%
  31810. + %
  31811. + % Color manipulation macros based on pdfcolor.tex,
  31812. + % except using rgb instead of cmyk; the latter is said to render as a
  31813. + % very dark gray on-screen and a very dark halftone in print, instead
  31814. + % of actual black.
  31815. + \def\rgbDarkRed{0.50 0.09 0.12}
  31816. + \def\rgbBlack{0 0 0}
  31817. + %
  31818. + % k sets the color for filling (usual text, etc.);
  31819. + % K sets the color for stroking (thin rules, e.g., normal _'s).
  31820. + \def\pdfsetcolor#1{\pdfliteral{#1 rg #1 RG}}
  31821. + %
  31822. + % Set color, and create a mark which defines \thiscolor accordingly,
  31823. + % so that \makeheadline knows which color to restore.
  31824. + \def\setcolor#1{%
  31825. + \xdef\lastcolordefs{\gdef\noexpand\thiscolor{#1}}%
  31826. + \domark
  31827. + \pdfsetcolor{#1}%
  31828. + }
  31829. + %
  31830. + \def\maincolor{\rgbBlack}
  31831. + \pdfsetcolor{\maincolor}
  31832. + \edef\thiscolor{\maincolor}
  31833. + \def\lastcolordefs{}
  31834. + %
  31835. + \def\makefootline{%
  31836. + \baselineskip24pt
  31837. + \line{\pdfsetcolor{\maincolor}\the\footline}%
  31838. + }
  31839. + %
  31840. + \def\makeheadline{%
  31841. + \vbox to 0pt{%
  31842. + \vskip-22.5pt
  31843. + \line{%
  31844. + \vbox to8.5pt{}%
  31845. + % Extract \thiscolor definition from the marks.
  31846. + \getcolormarks
  31847. + % Typeset the headline with \maincolor, then restore the color.
  31848. + \pdfsetcolor{\maincolor}\the\headline\pdfsetcolor{\thiscolor}%
  31849. + }%
  31850. + \vss
  31851. + }%
  31852. + \nointerlineskip
  31853. + }
  31854. + %
  31855. + %
  31856. + \pdfcatalog{/PageMode /UseOutlines}
  31857. + %
  31858. % #1 is image name, #2 width (might be empty/whitespace), #3 height (ditto).
  31859. \def\dopdfimage#1#2#3{%
  31860. \def\imagewidth{#2}\setbox0 = \hbox{\ignorespaces #2}%
  31861. \def\imageheight{#3}\setbox2 = \hbox{\ignorespaces #3}%
  31862. - % without \immediate, pdftex seg faults when the same image is
  31863. + %
  31864. + % pdftex (and the PDF format) support .png, .jpg, .pdf (among
  31865. + % others). Let's try in that order.
  31866. + \let\pdfimgext=\empty
  31867. + \begingroup
  31868. + \openin 1 #1.png \ifeof 1
  31869. + \openin 1 #1.jpg \ifeof 1
  31870. + \openin 1 #1.jpeg \ifeof 1
  31871. + \openin 1 #1.JPG \ifeof 1
  31872. + \openin 1 #1.pdf \ifeof 1
  31873. + \openin 1 #1.PDF \ifeof 1
  31874. + \errhelp = \nopdfimagehelp
  31875. + \errmessage{Could not find image file #1 for pdf}%
  31876. + \else \gdef\pdfimgext{PDF}%
  31877. + \fi
  31878. + \else \gdef\pdfimgext{pdf}%
  31879. + \fi
  31880. + \else \gdef\pdfimgext{JPG}%
  31881. + \fi
  31882. + \else \gdef\pdfimgext{jpeg}%
  31883. + \fi
  31884. + \else \gdef\pdfimgext{jpg}%
  31885. + \fi
  31886. + \else \gdef\pdfimgext{png}%
  31887. + \fi
  31888. + \closein 1
  31889. + \endgroup
  31890. + %
  31891. + % without \immediate, ancient pdftex seg faults when the same image is
  31892. % included twice. (Version 3.14159-pre-1.0-unofficial-20010704.)
  31893. \ifnum\pdftexversion < 14
  31894. \immediate\pdfimage
  31895. @@ -1272,28 +1421,35 @@
  31896. \ifdim \wd0 >0pt width \imagewidth \fi
  31897. \ifdim \wd2 >0pt height \imageheight \fi
  31898. \ifnum\pdftexversion<13
  31899. - #1.pdf%
  31900. + #1.\pdfimgext
  31901. \else
  31902. - {#1.pdf}%
  31903. + {#1.\pdfimgext}%
  31904. \fi
  31905. \ifnum\pdftexversion < 14 \else
  31906. \pdfrefximage \pdflastximage
  31907. \fi}
  31908. + %
  31909. \def\pdfmkdest#1{{%
  31910. % We have to set dummies so commands such as @code, and characters
  31911. % such as \, aren't expanded when present in a section title.
  31912. - \atdummies
  31913. + \indexnofonts
  31914. + \turnoffactive
  31915. \activebackslashdouble
  31916. + \makevalueexpandable
  31917. \def\pdfdestname{#1}%
  31918. \backslashparens\pdfdestname
  31919. - \pdfdest name{\pdfdestname} xyz%
  31920. - }}%
  31921. + \safewhatsit{\pdfdest name{\pdfdestname} xyz}%
  31922. + }}
  31923. %
  31924. % used to mark target names; must be expandable.
  31925. - \def\pdfmkpgn#1{#1}%
  31926. + \def\pdfmkpgn#1{#1}
  31927. + %
  31928. + % by default, use a color that is dark enough to print on paper as
  31929. + % nearly black, but still distinguishable for online viewing.
  31930. + \def\urlcolor{\rgbDarkRed}
  31931. + \def\linkcolor{\rgbDarkRed}
  31932. + \def\endlink{\setcolor{\maincolor}\pdfendlink}
  31933. %
  31934. - \let\linkcolor = \Blue % was Cyan, but that seems light?
  31935. - \def\endlink{\Black\pdfendlink}
  31936. % Adding outlines to PDF; macros for calculating structure of outlines
  31937. % come from Petr Olsak
  31938. \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0%
  31939. @@ -1395,7 +1551,7 @@
  31940. \indexnofonts
  31941. \setupdatafile
  31942. \catcode`\\=\active \otherbackslash
  31943. - \input \jobname.toc
  31944. + \input \tocreadfilename
  31945. \endgroup
  31946. }
  31947. %
  31948. @@ -1420,12 +1576,16 @@
  31949. % tried to figure out what each command should do in the context
  31950. % of @url. for now, just make @/ a no-op, that's the only one
  31951. % people have actually reported a problem with.
  31952. - %
  31953. + %
  31954. \normalturnoffactive
  31955. \def\@{@}%
  31956. \let\/=\empty
  31957. \makevalueexpandable
  31958. - \leavevmode\Red
  31959. + % do we want to go so far as to use \indexnofonts instead of just
  31960. + % special-casing \var here?
  31961. + \def\var##1{##1}%
  31962. + %
  31963. + \leavevmode\setcolor{\urlcolor}%
  31964. \startlink attr{/Border [0 0 0]}%
  31965. user{/Subtype /Link /A << /S /URI /URI (#1) >>}%
  31966. \endgroup}
  31967. @@ -1452,13 +1612,15 @@
  31968. {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0}
  31969. \def\pdflink#1{%
  31970. \startlink attr{/Border [0 0 0]} goto name{\pdfmkpgn{#1}}
  31971. - \linkcolor #1\endlink}
  31972. + \setcolor{\linkcolor}#1\endlink}
  31973. \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st}
  31974. \else
  31975. + % non-pdf mode
  31976. \let\pdfmkdest = \gobble
  31977. \let\pdfurl = \gobble
  31978. \let\endlink = \relax
  31979. - \let\linkcolor = \relax
  31980. + \let\setcolor = \gobble
  31981. + \let\pdfsetcolor = \gobble
  31982. \let\pdfmakeoutlines = \relax
  31983. \fi % \ifx\pdfoutput
  31984. @@ -1484,6 +1646,10 @@
  31985. \def\bf{\fam=\bffam \setfontstyle{bf}}\def\bfstylename{bf}
  31986. \def\tt{\fam=\ttfam \setfontstyle{tt}}
  31987. +% Unfortunately, we have to override this for titles and the like, since
  31988. +% in those cases "rm" is bold. Sigh.
  31989. +\def\rmisbold{\rm\def\curfontstyle{bf}}
  31990. +
  31991. % Texinfo sort of supports the sans serif font style, which plain TeX does not.
  31992. % So we set up a \sf.
  31993. \newfam\sffam
  31994. @@ -1505,8 +1671,12 @@
  31995. \def\strutheightpercent{.70833}
  31996. \def\strutdepthpercent {.29167}
  31997. %
  31998. +% can get a sort of poor man's double spacing by redefining this.
  31999. +\def\baselinefactor{1}
  32000. +%
  32001. \def\setleading#1{%
  32002. - \normalbaselineskip = #1\relax
  32003. + \dimen0 = #1\relax
  32004. + \normalbaselineskip = \baselinefactor\dimen0
  32005. \normallineskip = \lineskipfactor\normalbaselineskip
  32006. \normalbaselines
  32007. \setbox\strutbox =\hbox{%
  32008. @@ -1515,12 +1685,279 @@
  32009. }%
  32010. }
  32011. +% PDF CMaps. See also LaTeX's t1.cmap.
  32012. +%
  32013. +% do nothing with this by default.
  32014. +\expandafter\let\csname cmapOT1\endcsname\gobble
  32015. +\expandafter\let\csname cmapOT1IT\endcsname\gobble
  32016. +\expandafter\let\csname cmapOT1TT\endcsname\gobble
  32017. +
  32018. +% if we are producing pdf, and we have \pdffontattr, then define cmaps.
  32019. +% (\pdffontattr was introduced many years ago, but people still run
  32020. +% older pdftex's; it's easy to conditionalize, so we do.)
  32021. +\ifpdf \ifx\pdffontattr\undefined \else
  32022. + \begingroup
  32023. + \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char.
  32024. + \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap
  32025. +%%DocumentNeededResources: ProcSet (CIDInit)
  32026. +%%IncludeResource: ProcSet (CIDInit)
  32027. +%%BeginResource: CMap (TeX-OT1-0)
  32028. +%%Title: (TeX-OT1-0 TeX OT1 0)
  32029. +%%Version: 1.000
  32030. +%%EndComments
  32031. +/CIDInit /ProcSet findresource begin
  32032. +12 dict begin
  32033. +begincmap
  32034. +/CIDSystemInfo
  32035. +<< /Registry (TeX)
  32036. +/Ordering (OT1)
  32037. +/Supplement 0
  32038. +>> def
  32039. +/CMapName /TeX-OT1-0 def
  32040. +/CMapType 2 def
  32041. +1 begincodespacerange
  32042. +<00> <7F>
  32043. +endcodespacerange
  32044. +8 beginbfrange
  32045. +<00> <01> <0393>
  32046. +<09> <0A> <03A8>
  32047. +<23> <26> <0023>
  32048. +<28> <3B> <0028>
  32049. +<3F> <5B> <003F>
  32050. +<5D> <5E> <005D>
  32051. +<61> <7A> <0061>
  32052. +<7B> <7C> <2013>
  32053. +endbfrange
  32054. +40 beginbfchar
  32055. +<02> <0398>
  32056. +<03> <039B>
  32057. +<04> <039E>
  32058. +<05> <03A0>
  32059. +<06> <03A3>
  32060. +<07> <03D2>
  32061. +<08> <03A6>
  32062. +<0B> <00660066>
  32063. +<0C> <00660069>
  32064. +<0D> <0066006C>
  32065. +<0E> <006600660069>
  32066. +<0F> <00660066006C>
  32067. +<10> <0131>
  32068. +<11> <0237>
  32069. +<12> <0060>
  32070. +<13> <00B4>
  32071. +<14> <02C7>
  32072. +<15> <02D8>
  32073. +<16> <00AF>
  32074. +<17> <02DA>
  32075. +<18> <00B8>
  32076. +<19> <00DF>
  32077. +<1A> <00E6>
  32078. +<1B> <0153>
  32079. +<1C> <00F8>
  32080. +<1D> <00C6>
  32081. +<1E> <0152>
  32082. +<1F> <00D8>
  32083. +<21> <0021>
  32084. +<22> <201D>
  32085. +<27> <2019>
  32086. +<3C> <00A1>
  32087. +<3D> <003D>
  32088. +<3E> <00BF>
  32089. +<5C> <201C>
  32090. +<5F> <02D9>
  32091. +<60> <2018>
  32092. +<7D> <02DD>
  32093. +<7E> <007E>
  32094. +<7F> <00A8>
  32095. +endbfchar
  32096. +endcmap
  32097. +CMapName currentdict /CMap defineresource pop
  32098. +end
  32099. +end
  32100. +%%EndResource
  32101. +%%EOF
  32102. + }\endgroup
  32103. + \expandafter\edef\csname cmapOT1\endcsname#1{%
  32104. + \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}%
  32105. + }%
  32106. +%
  32107. +% \cmapOT1IT
  32108. + \begingroup
  32109. + \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char.
  32110. + \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap
  32111. +%%DocumentNeededResources: ProcSet (CIDInit)
  32112. +%%IncludeResource: ProcSet (CIDInit)
  32113. +%%BeginResource: CMap (TeX-OT1IT-0)
  32114. +%%Title: (TeX-OT1IT-0 TeX OT1IT 0)
  32115. +%%Version: 1.000
  32116. +%%EndComments
  32117. +/CIDInit /ProcSet findresource begin
  32118. +12 dict begin
  32119. +begincmap
  32120. +/CIDSystemInfo
  32121. +<< /Registry (TeX)
  32122. +/Ordering (OT1IT)
  32123. +/Supplement 0
  32124. +>> def
  32125. +/CMapName /TeX-OT1IT-0 def
  32126. +/CMapType 2 def
  32127. +1 begincodespacerange
  32128. +<00> <7F>
  32129. +endcodespacerange
  32130. +8 beginbfrange
  32131. +<00> <01> <0393>
  32132. +<09> <0A> <03A8>
  32133. +<25> <26> <0025>
  32134. +<28> <3B> <0028>
  32135. +<3F> <5B> <003F>
  32136. +<5D> <5E> <005D>
  32137. +<61> <7A> <0061>
  32138. +<7B> <7C> <2013>
  32139. +endbfrange
  32140. +42 beginbfchar
  32141. +<02> <0398>
  32142. +<03> <039B>
  32143. +<04> <039E>
  32144. +<05> <03A0>
  32145. +<06> <03A3>
  32146. +<07> <03D2>
  32147. +<08> <03A6>
  32148. +<0B> <00660066>
  32149. +<0C> <00660069>
  32150. +<0D> <0066006C>
  32151. +<0E> <006600660069>
  32152. +<0F> <00660066006C>
  32153. +<10> <0131>
  32154. +<11> <0237>
  32155. +<12> <0060>
  32156. +<13> <00B4>
  32157. +<14> <02C7>
  32158. +<15> <02D8>
  32159. +<16> <00AF>
  32160. +<17> <02DA>
  32161. +<18> <00B8>
  32162. +<19> <00DF>
  32163. +<1A> <00E6>
  32164. +<1B> <0153>
  32165. +<1C> <00F8>
  32166. +<1D> <00C6>
  32167. +<1E> <0152>
  32168. +<1F> <00D8>
  32169. +<21> <0021>
  32170. +<22> <201D>
  32171. +<23> <0023>
  32172. +<24> <00A3>
  32173. +<27> <2019>
  32174. +<3C> <00A1>
  32175. +<3D> <003D>
  32176. +<3E> <00BF>
  32177. +<5C> <201C>
  32178. +<5F> <02D9>
  32179. +<60> <2018>
  32180. +<7D> <02DD>
  32181. +<7E> <007E>
  32182. +<7F> <00A8>
  32183. +endbfchar
  32184. +endcmap
  32185. +CMapName currentdict /CMap defineresource pop
  32186. +end
  32187. +end
  32188. +%%EndResource
  32189. +%%EOF
  32190. + }\endgroup
  32191. + \expandafter\edef\csname cmapOT1IT\endcsname#1{%
  32192. + \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}%
  32193. + }%
  32194. +%
  32195. +% \cmapOT1TT
  32196. + \begingroup
  32197. + \catcode`\^^M=\active \def^^M{^^J}% Output line endings as the ^^J char.
  32198. + \catcode`\%=12 \immediate\pdfobj stream {%!PS-Adobe-3.0 Resource-CMap
  32199. +%%DocumentNeededResources: ProcSet (CIDInit)
  32200. +%%IncludeResource: ProcSet (CIDInit)
  32201. +%%BeginResource: CMap (TeX-OT1TT-0)
  32202. +%%Title: (TeX-OT1TT-0 TeX OT1TT 0)
  32203. +%%Version: 1.000
  32204. +%%EndComments
  32205. +/CIDInit /ProcSet findresource begin
  32206. +12 dict begin
  32207. +begincmap
  32208. +/CIDSystemInfo
  32209. +<< /Registry (TeX)
  32210. +/Ordering (OT1TT)
  32211. +/Supplement 0
  32212. +>> def
  32213. +/CMapName /TeX-OT1TT-0 def
  32214. +/CMapType 2 def
  32215. +1 begincodespacerange
  32216. +<00> <7F>
  32217. +endcodespacerange
  32218. +5 beginbfrange
  32219. +<00> <01> <0393>
  32220. +<09> <0A> <03A8>
  32221. +<21> <26> <0021>
  32222. +<28> <5F> <0028>
  32223. +<61> <7E> <0061>
  32224. +endbfrange
  32225. +32 beginbfchar
  32226. +<02> <0398>
  32227. +<03> <039B>
  32228. +<04> <039E>
  32229. +<05> <03A0>
  32230. +<06> <03A3>
  32231. +<07> <03D2>
  32232. +<08> <03A6>
  32233. +<0B> <2191>
  32234. +<0C> <2193>
  32235. +<0D> <0027>
  32236. +<0E> <00A1>
  32237. +<0F> <00BF>
  32238. +<10> <0131>
  32239. +<11> <0237>
  32240. +<12> <0060>
  32241. +<13> <00B4>
  32242. +<14> <02C7>
  32243. +<15> <02D8>
  32244. +<16> <00AF>
  32245. +<17> <02DA>
  32246. +<18> <00B8>
  32247. +<19> <00DF>
  32248. +<1A> <00E6>
  32249. +<1B> <0153>
  32250. +<1C> <00F8>
  32251. +<1D> <00C6>
  32252. +<1E> <0152>
  32253. +<1F> <00D8>
  32254. +<20> <2423>
  32255. +<27> <2019>
  32256. +<60> <2018>
  32257. +<7F> <00A8>
  32258. +endbfchar
  32259. +endcmap
  32260. +CMapName currentdict /CMap defineresource pop
  32261. +end
  32262. +end
  32263. +%%EndResource
  32264. +%%EOF
  32265. + }\endgroup
  32266. + \expandafter\edef\csname cmapOT1TT\endcsname#1{%
  32267. + \pdffontattr#1{/ToUnicode \the\pdflastobj\space 0 R}%
  32268. + }%
  32269. +\fi\fi
  32270. +
  32271. % Set the font macro #1 to the font named #2, adding on the
  32272. % specified font prefix (normally `cm').
  32273. -% #3 is the font's design size, #4 is a scale factor
  32274. -\def\setfont#1#2#3#4{\font#1=\fontprefix#2#3 scaled #4}
  32275. -
  32276. +% #3 is the font's design size, #4 is a scale factor, #5 is the CMap
  32277. +% encoding (currently only OT1, OT1IT and OT1TT are allowed, pass
  32278. +% empty to omit).
  32279. +\def\setfont#1#2#3#4#5{%
  32280. + \font#1=\fontprefix#2#3 scaled #4
  32281. + \csname cmap#5\endcsname#1%
  32282. +}
  32283. +% This is what gets called when #5 of \setfont is empty.
  32284. +\let\cmap\gobble
  32285. +% emacs-page end of cmaps
  32286. % Use cm as the default font prefix.
  32287. % To specify the font prefix, you must define \fontprefix
  32288. @@ -1547,120 +1984,126 @@
  32289. % Definitions for a main text size of 11pt. This is the default in
  32290. % Texinfo.
  32291. -%
  32292. -\def\definetextfontsizexi{
  32293. +%
  32294. +\def\definetextfontsizexi{%
  32295. % Text fonts (11.2pt, magstep1).
  32296. \def\textnominalsize{11pt}
  32297. \edef\mainmagstep{\magstephalf}
  32298. -\setfont\textrm\rmshape{10}{\mainmagstep}
  32299. -\setfont\texttt\ttshape{10}{\mainmagstep}
  32300. -\setfont\textbf\bfshape{10}{\mainmagstep}
  32301. -\setfont\textit\itshape{10}{\mainmagstep}
  32302. -\setfont\textsl\slshape{10}{\mainmagstep}
  32303. -\setfont\textsf\sfshape{10}{\mainmagstep}
  32304. -\setfont\textsc\scshape{10}{\mainmagstep}
  32305. -\setfont\textttsl\ttslshape{10}{\mainmagstep}
  32306. +\setfont\textrm\rmshape{10}{\mainmagstep}{OT1}
  32307. +\setfont\texttt\ttshape{10}{\mainmagstep}{OT1TT}
  32308. +\setfont\textbf\bfshape{10}{\mainmagstep}{OT1}
  32309. +\setfont\textit\itshape{10}{\mainmagstep}{OT1IT}
  32310. +\setfont\textsl\slshape{10}{\mainmagstep}{OT1}
  32311. +\setfont\textsf\sfshape{10}{\mainmagstep}{OT1}
  32312. +\setfont\textsc\scshape{10}{\mainmagstep}{OT1}
  32313. +\setfont\textttsl\ttslshape{10}{\mainmagstep}{OT1TT}
  32314. \font\texti=cmmi10 scaled \mainmagstep
  32315. \font\textsy=cmsy10 scaled \mainmagstep
  32316. +\def\textecsize{1095}
  32317. % A few fonts for @defun names and args.
  32318. -\setfont\defbf\bfshape{10}{\magstep1}
  32319. -\setfont\deftt\ttshape{10}{\magstep1}
  32320. -\setfont\defttsl\ttslshape{10}{\magstep1}
  32321. +\setfont\defbf\bfshape{10}{\magstep1}{OT1}
  32322. +\setfont\deftt\ttshape{10}{\magstep1}{OT1TT}
  32323. +\setfont\defttsl\ttslshape{10}{\magstep1}{OT1TT}
  32324. \def\df{\let\tentt=\deftt \let\tenbf = \defbf \let\tenttsl=\defttsl \bf}
  32325. % Fonts for indices, footnotes, small examples (9pt).
  32326. \def\smallnominalsize{9pt}
  32327. -\setfont\smallrm\rmshape{9}{1000}
  32328. -\setfont\smalltt\ttshape{9}{1000}
  32329. -\setfont\smallbf\bfshape{10}{900}
  32330. -\setfont\smallit\itshape{9}{1000}
  32331. -\setfont\smallsl\slshape{9}{1000}
  32332. -\setfont\smallsf\sfshape{9}{1000}
  32333. -\setfont\smallsc\scshape{10}{900}
  32334. -\setfont\smallttsl\ttslshape{10}{900}
  32335. +\setfont\smallrm\rmshape{9}{1000}{OT1}
  32336. +\setfont\smalltt\ttshape{9}{1000}{OT1TT}
  32337. +\setfont\smallbf\bfshape{10}{900}{OT1}
  32338. +\setfont\smallit\itshape{9}{1000}{OT1IT}
  32339. +\setfont\smallsl\slshape{9}{1000}{OT1}
  32340. +\setfont\smallsf\sfshape{9}{1000}{OT1}
  32341. +\setfont\smallsc\scshape{10}{900}{OT1}
  32342. +\setfont\smallttsl\ttslshape{10}{900}{OT1TT}
  32343. \font\smalli=cmmi9
  32344. \font\smallsy=cmsy9
  32345. +\def\smallecsize{0900}
  32346. % Fonts for small examples (8pt).
  32347. \def\smallernominalsize{8pt}
  32348. -\setfont\smallerrm\rmshape{8}{1000}
  32349. -\setfont\smallertt\ttshape{8}{1000}
  32350. -\setfont\smallerbf\bfshape{10}{800}
  32351. -\setfont\smallerit\itshape{8}{1000}
  32352. -\setfont\smallersl\slshape{8}{1000}
  32353. -\setfont\smallersf\sfshape{8}{1000}
  32354. -\setfont\smallersc\scshape{10}{800}
  32355. -\setfont\smallerttsl\ttslshape{10}{800}
  32356. +\setfont\smallerrm\rmshape{8}{1000}{OT1}
  32357. +\setfont\smallertt\ttshape{8}{1000}{OT1TT}
  32358. +\setfont\smallerbf\bfshape{10}{800}{OT1}
  32359. +\setfont\smallerit\itshape{8}{1000}{OT1IT}
  32360. +\setfont\smallersl\slshape{8}{1000}{OT1}
  32361. +\setfont\smallersf\sfshape{8}{1000}{OT1}
  32362. +\setfont\smallersc\scshape{10}{800}{OT1}
  32363. +\setfont\smallerttsl\ttslshape{10}{800}{OT1TT}
  32364. \font\smalleri=cmmi8
  32365. \font\smallersy=cmsy8
  32366. +\def\smallerecsize{0800}
  32367. % Fonts for title page (20.4pt):
  32368. \def\titlenominalsize{20pt}
  32369. -\setfont\titlerm\rmbshape{12}{\magstep3}
  32370. -\setfont\titleit\itbshape{10}{\magstep4}
  32371. -\setfont\titlesl\slbshape{10}{\magstep4}
  32372. -\setfont\titlett\ttbshape{12}{\magstep3}
  32373. -\setfont\titlettsl\ttslshape{10}{\magstep4}
  32374. -\setfont\titlesf\sfbshape{17}{\magstep1}
  32375. +\setfont\titlerm\rmbshape{12}{\magstep3}{OT1}
  32376. +\setfont\titleit\itbshape{10}{\magstep4}{OT1IT}
  32377. +\setfont\titlesl\slbshape{10}{\magstep4}{OT1}
  32378. +\setfont\titlett\ttbshape{12}{\magstep3}{OT1TT}
  32379. +\setfont\titlettsl\ttslshape{10}{\magstep4}{OT1TT}
  32380. +\setfont\titlesf\sfbshape{17}{\magstep1}{OT1}
  32381. \let\titlebf=\titlerm
  32382. -\setfont\titlesc\scbshape{10}{\magstep4}
  32383. +\setfont\titlesc\scbshape{10}{\magstep4}{OT1}
  32384. \font\titlei=cmmi12 scaled \magstep3
  32385. \font\titlesy=cmsy10 scaled \magstep4
  32386. -\def\authorrm{\secrm}
  32387. -\def\authortt{\sectt}
  32388. +\def\titleecsize{2074}
  32389. % Chapter (and unnumbered) fonts (17.28pt).
  32390. \def\chapnominalsize{17pt}
  32391. -\setfont\chaprm\rmbshape{12}{\magstep2}
  32392. -\setfont\chapit\itbshape{10}{\magstep3}
  32393. -\setfont\chapsl\slbshape{10}{\magstep3}
  32394. -\setfont\chaptt\ttbshape{12}{\magstep2}
  32395. -\setfont\chapttsl\ttslshape{10}{\magstep3}
  32396. -\setfont\chapsf\sfbshape{17}{1000}
  32397. +\setfont\chaprm\rmbshape{12}{\magstep2}{OT1}
  32398. +\setfont\chapit\itbshape{10}{\magstep3}{OT1IT}
  32399. +\setfont\chapsl\slbshape{10}{\magstep3}{OT1}
  32400. +\setfont\chaptt\ttbshape{12}{\magstep2}{OT1TT}
  32401. +\setfont\chapttsl\ttslshape{10}{\magstep3}{OT1TT}
  32402. +\setfont\chapsf\sfbshape{17}{1000}{OT1}
  32403. \let\chapbf=\chaprm
  32404. -\setfont\chapsc\scbshape{10}{\magstep3}
  32405. +\setfont\chapsc\scbshape{10}{\magstep3}{OT1}
  32406. \font\chapi=cmmi12 scaled \magstep2
  32407. \font\chapsy=cmsy10 scaled \magstep3
  32408. +\def\chapecsize{1728}
  32409. % Section fonts (14.4pt).
  32410. \def\secnominalsize{14pt}
  32411. -\setfont\secrm\rmbshape{12}{\magstep1}
  32412. -\setfont\secit\itbshape{10}{\magstep2}
  32413. -\setfont\secsl\slbshape{10}{\magstep2}
  32414. -\setfont\sectt\ttbshape{12}{\magstep1}
  32415. -\setfont\secttsl\ttslshape{10}{\magstep2}
  32416. -\setfont\secsf\sfbshape{12}{\magstep1}
  32417. +\setfont\secrm\rmbshape{12}{\magstep1}{OT1}
  32418. +\setfont\secit\itbshape{10}{\magstep2}{OT1IT}
  32419. +\setfont\secsl\slbshape{10}{\magstep2}{OT1}
  32420. +\setfont\sectt\ttbshape{12}{\magstep1}{OT1TT}
  32421. +\setfont\secttsl\ttslshape{10}{\magstep2}{OT1TT}
  32422. +\setfont\secsf\sfbshape{12}{\magstep1}{OT1}
  32423. \let\secbf\secrm
  32424. -\setfont\secsc\scbshape{10}{\magstep2}
  32425. +\setfont\secsc\scbshape{10}{\magstep2}{OT1}
  32426. \font\seci=cmmi12 scaled \magstep1
  32427. \font\secsy=cmsy10 scaled \magstep2
  32428. +\def\sececsize{1440}
  32429. % Subsection fonts (13.15pt).
  32430. \def\ssecnominalsize{13pt}
  32431. -\setfont\ssecrm\rmbshape{12}{\magstephalf}
  32432. -\setfont\ssecit\itbshape{10}{1315}
  32433. -\setfont\ssecsl\slbshape{10}{1315}
  32434. -\setfont\ssectt\ttbshape{12}{\magstephalf}
  32435. -\setfont\ssecttsl\ttslshape{10}{1315}
  32436. -\setfont\ssecsf\sfbshape{12}{\magstephalf}
  32437. +\setfont\ssecrm\rmbshape{12}{\magstephalf}{OT1}
  32438. +\setfont\ssecit\itbshape{10}{1315}{OT1IT}
  32439. +\setfont\ssecsl\slbshape{10}{1315}{OT1}
  32440. +\setfont\ssectt\ttbshape{12}{\magstephalf}{OT1TT}
  32441. +\setfont\ssecttsl\ttslshape{10}{1315}{OT1TT}
  32442. +\setfont\ssecsf\sfbshape{12}{\magstephalf}{OT1}
  32443. \let\ssecbf\ssecrm
  32444. -\setfont\ssecsc\scbshape{10}{1315}
  32445. +\setfont\ssecsc\scbshape{10}{1315}{OT1}
  32446. \font\sseci=cmmi12 scaled \magstephalf
  32447. \font\ssecsy=cmsy10 scaled 1315
  32448. +\def\ssececsize{1200}
  32449. % Reduced fonts for @acro in text (10pt).
  32450. \def\reducednominalsize{10pt}
  32451. -\setfont\reducedrm\rmshape{10}{1000}
  32452. -\setfont\reducedtt\ttshape{10}{1000}
  32453. -\setfont\reducedbf\bfshape{10}{1000}
  32454. -\setfont\reducedit\itshape{10}{1000}
  32455. -\setfont\reducedsl\slshape{10}{1000}
  32456. -\setfont\reducedsf\sfshape{10}{1000}
  32457. -\setfont\reducedsc\scshape{10}{1000}
  32458. -\setfont\reducedttsl\ttslshape{10}{1000}
  32459. +\setfont\reducedrm\rmshape{10}{1000}{OT1}
  32460. +\setfont\reducedtt\ttshape{10}{1000}{OT1TT}
  32461. +\setfont\reducedbf\bfshape{10}{1000}{OT1}
  32462. +\setfont\reducedit\itshape{10}{1000}{OT1IT}
  32463. +\setfont\reducedsl\slshape{10}{1000}{OT1}
  32464. +\setfont\reducedsf\sfshape{10}{1000}{OT1}
  32465. +\setfont\reducedsc\scshape{10}{1000}{OT1}
  32466. +\setfont\reducedttsl\ttslshape{10}{1000}{OT1TT}
  32467. \font\reducedi=cmmi10
  32468. \font\reducedsy=cmsy10
  32469. +\def\reducedecsize{1000}
  32470. % reset the current fonts
  32471. \textfonts
  32472. @@ -1672,120 +2115,126 @@
  32473. % section, chapter, etc., sizes following suit. This is for the GNU
  32474. % Press printing of the Emacs 22 manual. Maybe other manuals in the
  32475. % future. Used with @smallbook, which sets the leading to 12pt.
  32476. -%
  32477. +%
  32478. \def\definetextfontsizex{%
  32479. % Text fonts (10pt).
  32480. \def\textnominalsize{10pt}
  32481. \edef\mainmagstep{1000}
  32482. -\setfont\textrm\rmshape{10}{\mainmagstep}
  32483. -\setfont\texttt\ttshape{10}{\mainmagstep}
  32484. -\setfont\textbf\bfshape{10}{\mainmagstep}
  32485. -\setfont\textit\itshape{10}{\mainmagstep}
  32486. -\setfont\textsl\slshape{10}{\mainmagstep}
  32487. -\setfont\textsf\sfshape{10}{\mainmagstep}
  32488. -\setfont\textsc\scshape{10}{\mainmagstep}
  32489. -\setfont\textttsl\ttslshape{10}{\mainmagstep}
  32490. +\setfont\textrm\rmshape{10}{\mainmagstep}{OT1}
  32491. +\setfont\texttt\ttshape{10}{\mainmagstep}{OT1TT}
  32492. +\setfont\textbf\bfshape{10}{\mainmagstep}{OT1}
  32493. +\setfont\textit\itshape{10}{\mainmagstep}{OT1IT}
  32494. +\setfont\textsl\slshape{10}{\mainmagstep}{OT1}
  32495. +\setfont\textsf\sfshape{10}{\mainmagstep}{OT1}
  32496. +\setfont\textsc\scshape{10}{\mainmagstep}{OT1}
  32497. +\setfont\textttsl\ttslshape{10}{\mainmagstep}{OT1TT}
  32498. \font\texti=cmmi10 scaled \mainmagstep
  32499. \font\textsy=cmsy10 scaled \mainmagstep
  32500. +\def\textecsize{1000}
  32501. % A few fonts for @defun names and args.
  32502. -\setfont\defbf\bfshape{10}{\magstephalf}
  32503. -\setfont\deftt\ttshape{10}{\magstephalf}
  32504. -\setfont\defttsl\ttslshape{10}{\magstephalf}
  32505. +\setfont\defbf\bfshape{10}{\magstephalf}{OT1}
  32506. +\setfont\deftt\ttshape{10}{\magstephalf}{OT1TT}
  32507. +\setfont\defttsl\ttslshape{10}{\magstephalf}{OT1TT}
  32508. \def\df{\let\tentt=\deftt \let\tenbf = \defbf \let\tenttsl=\defttsl \bf}
  32509. % Fonts for indices, footnotes, small examples (9pt).
  32510. \def\smallnominalsize{9pt}
  32511. -\setfont\smallrm\rmshape{9}{1000}
  32512. -\setfont\smalltt\ttshape{9}{1000}
  32513. -\setfont\smallbf\bfshape{10}{900}
  32514. -\setfont\smallit\itshape{9}{1000}
  32515. -\setfont\smallsl\slshape{9}{1000}
  32516. -\setfont\smallsf\sfshape{9}{1000}
  32517. -\setfont\smallsc\scshape{10}{900}
  32518. -\setfont\smallttsl\ttslshape{10}{900}
  32519. +\setfont\smallrm\rmshape{9}{1000}{OT1}
  32520. +\setfont\smalltt\ttshape{9}{1000}{OT1TT}
  32521. +\setfont\smallbf\bfshape{10}{900}{OT1}
  32522. +\setfont\smallit\itshape{9}{1000}{OT1IT}
  32523. +\setfont\smallsl\slshape{9}{1000}{OT1}
  32524. +\setfont\smallsf\sfshape{9}{1000}{OT1}
  32525. +\setfont\smallsc\scshape{10}{900}{OT1}
  32526. +\setfont\smallttsl\ttslshape{10}{900}{OT1TT}
  32527. \font\smalli=cmmi9
  32528. \font\smallsy=cmsy9
  32529. +\def\smallecsize{0900}
  32530. % Fonts for small examples (8pt).
  32531. \def\smallernominalsize{8pt}
  32532. -\setfont\smallerrm\rmshape{8}{1000}
  32533. -\setfont\smallertt\ttshape{8}{1000}
  32534. -\setfont\smallerbf\bfshape{10}{800}
  32535. -\setfont\smallerit\itshape{8}{1000}
  32536. -\setfont\smallersl\slshape{8}{1000}
  32537. -\setfont\smallersf\sfshape{8}{1000}
  32538. -\setfont\smallersc\scshape{10}{800}
  32539. -\setfont\smallerttsl\ttslshape{10}{800}
  32540. +\setfont\smallerrm\rmshape{8}{1000}{OT1}
  32541. +\setfont\smallertt\ttshape{8}{1000}{OT1TT}
  32542. +\setfont\smallerbf\bfshape{10}{800}{OT1}
  32543. +\setfont\smallerit\itshape{8}{1000}{OT1IT}
  32544. +\setfont\smallersl\slshape{8}{1000}{OT1}
  32545. +\setfont\smallersf\sfshape{8}{1000}{OT1}
  32546. +\setfont\smallersc\scshape{10}{800}{OT1}
  32547. +\setfont\smallerttsl\ttslshape{10}{800}{OT1TT}
  32548. \font\smalleri=cmmi8
  32549. \font\smallersy=cmsy8
  32550. +\def\smallerecsize{0800}
  32551. % Fonts for title page (20.4pt):
  32552. \def\titlenominalsize{20pt}
  32553. -\setfont\titlerm\rmbshape{12}{\magstep3}
  32554. -\setfont\titleit\itbshape{10}{\magstep4}
  32555. -\setfont\titlesl\slbshape{10}{\magstep4}
  32556. -\setfont\titlett\ttbshape{12}{\magstep3}
  32557. -\setfont\titlettsl\ttslshape{10}{\magstep4}
  32558. -\setfont\titlesf\sfbshape{17}{\magstep1}
  32559. +\setfont\titlerm\rmbshape{12}{\magstep3}{OT1}
  32560. +\setfont\titleit\itbshape{10}{\magstep4}{OT1IT}
  32561. +\setfont\titlesl\slbshape{10}{\magstep4}{OT1}
  32562. +\setfont\titlett\ttbshape{12}{\magstep3}{OT1TT}
  32563. +\setfont\titlettsl\ttslshape{10}{\magstep4}{OT1TT}
  32564. +\setfont\titlesf\sfbshape{17}{\magstep1}{OT1}
  32565. \let\titlebf=\titlerm
  32566. -\setfont\titlesc\scbshape{10}{\magstep4}
  32567. +\setfont\titlesc\scbshape{10}{\magstep4}{OT1}
  32568. \font\titlei=cmmi12 scaled \magstep3
  32569. \font\titlesy=cmsy10 scaled \magstep4
  32570. -\def\authorrm{\secrm}
  32571. -\def\authortt{\sectt}
  32572. +\def\titleecsize{2074}
  32573. % Chapter fonts (14.4pt).
  32574. \def\chapnominalsize{14pt}
  32575. -\setfont\chaprm\rmbshape{12}{\magstep1}
  32576. -\setfont\chapit\itbshape{10}{\magstep2}
  32577. -\setfont\chapsl\slbshape{10}{\magstep2}
  32578. -\setfont\chaptt\ttbshape{12}{\magstep1}
  32579. -\setfont\chapttsl\ttslshape{10}{\magstep2}
  32580. -\setfont\chapsf\sfbshape{12}{\magstep1}
  32581. +\setfont\chaprm\rmbshape{12}{\magstep1}{OT1}
  32582. +\setfont\chapit\itbshape{10}{\magstep2}{OT1IT}
  32583. +\setfont\chapsl\slbshape{10}{\magstep2}{OT1}
  32584. +\setfont\chaptt\ttbshape{12}{\magstep1}{OT1TT}
  32585. +\setfont\chapttsl\ttslshape{10}{\magstep2}{OT1TT}
  32586. +\setfont\chapsf\sfbshape{12}{\magstep1}{OT1}
  32587. \let\chapbf\chaprm
  32588. -\setfont\chapsc\scbshape{10}{\magstep2}
  32589. +\setfont\chapsc\scbshape{10}{\magstep2}{OT1}
  32590. \font\chapi=cmmi12 scaled \magstep1
  32591. \font\chapsy=cmsy10 scaled \magstep2
  32592. +\def\chapecsize{1440}
  32593. % Section fonts (12pt).
  32594. \def\secnominalsize{12pt}
  32595. -\setfont\secrm\rmbshape{12}{1000}
  32596. -\setfont\secit\itbshape{10}{\magstep1}
  32597. -\setfont\secsl\slbshape{10}{\magstep1}
  32598. -\setfont\sectt\ttbshape{12}{1000}
  32599. -\setfont\secttsl\ttslshape{10}{\magstep1}
  32600. -\setfont\secsf\sfbshape{12}{1000}
  32601. +\setfont\secrm\rmbshape{12}{1000}{OT1}
  32602. +\setfont\secit\itbshape{10}{\magstep1}{OT1IT}
  32603. +\setfont\secsl\slbshape{10}{\magstep1}{OT1}
  32604. +\setfont\sectt\ttbshape{12}{1000}{OT1TT}
  32605. +\setfont\secttsl\ttslshape{10}{\magstep1}{OT1TT}
  32606. +\setfont\secsf\sfbshape{12}{1000}{OT1}
  32607. \let\secbf\secrm
  32608. -\setfont\secsc\scbshape{10}{\magstep1}
  32609. -\font\seci=cmmi12
  32610. +\setfont\secsc\scbshape{10}{\magstep1}{OT1}
  32611. +\font\seci=cmmi12
  32612. \font\secsy=cmsy10 scaled \magstep1
  32613. +\def\sececsize{1200}
  32614. % Subsection fonts (10pt).
  32615. \def\ssecnominalsize{10pt}
  32616. -\setfont\ssecrm\rmbshape{10}{1000}
  32617. -\setfont\ssecit\itbshape{10}{1000}
  32618. -\setfont\ssecsl\slbshape{10}{1000}
  32619. -\setfont\ssectt\ttbshape{10}{1000}
  32620. -\setfont\ssecttsl\ttslshape{10}{1000}
  32621. -\setfont\ssecsf\sfbshape{10}{1000}
  32622. +\setfont\ssecrm\rmbshape{10}{1000}{OT1}
  32623. +\setfont\ssecit\itbshape{10}{1000}{OT1IT}
  32624. +\setfont\ssecsl\slbshape{10}{1000}{OT1}
  32625. +\setfont\ssectt\ttbshape{10}{1000}{OT1TT}
  32626. +\setfont\ssecttsl\ttslshape{10}{1000}{OT1TT}
  32627. +\setfont\ssecsf\sfbshape{10}{1000}{OT1}
  32628. \let\ssecbf\ssecrm
  32629. -\setfont\ssecsc\scbshape{10}{1000}
  32630. +\setfont\ssecsc\scbshape{10}{1000}{OT1}
  32631. \font\sseci=cmmi10
  32632. \font\ssecsy=cmsy10
  32633. +\def\ssececsize{1000}
  32634. % Reduced fonts for @acro in text (9pt).
  32635. \def\reducednominalsize{9pt}
  32636. -\setfont\reducedrm\rmshape{9}{1000}
  32637. -\setfont\reducedtt\ttshape{9}{1000}
  32638. -\setfont\reducedbf\bfshape{10}{900}
  32639. -\setfont\reducedit\itshape{9}{1000}
  32640. -\setfont\reducedsl\slshape{9}{1000}
  32641. -\setfont\reducedsf\sfshape{9}{1000}
  32642. -\setfont\reducedsc\scshape{10}{900}
  32643. -\setfont\reducedttsl\ttslshape{10}{900}
  32644. +\setfont\reducedrm\rmshape{9}{1000}{OT1}
  32645. +\setfont\reducedtt\ttshape{9}{1000}{OT1TT}
  32646. +\setfont\reducedbf\bfshape{10}{900}{OT1}
  32647. +\setfont\reducedit\itshape{9}{1000}{OT1IT}
  32648. +\setfont\reducedsl\slshape{9}{1000}{OT1}
  32649. +\setfont\reducedsf\sfshape{9}{1000}{OT1}
  32650. +\setfont\reducedsc\scshape{10}{900}{OT1}
  32651. +\setfont\reducedttsl\ttslshape{10}{900}{OT1TT}
  32652. \font\reducedi=cmmi9
  32653. \font\reducedsy=cmsy9
  32654. +\def\reducedecsize{0900}
  32655. % reduce space between paragraphs
  32656. \divide\parskip by 2
  32657. @@ -1799,7 +2248,7 @@
  32658. % We provide the user-level command
  32659. % @fonttextsize 10
  32660. % (or 11) to redefine the text font size. pt is assumed.
  32661. -%
  32662. +%
  32663. \def\xword{10}
  32664. \def\xiword{11}
  32665. %
  32666. @@ -1809,7 +2258,7 @@
  32667. %
  32668. % Set \globaldefs so that documents can use this inside @tex, since
  32669. % makeinfo 4.8 does not support it, but we need it nonetheless.
  32670. - %
  32671. + %
  32672. \begingroup \globaldefs=1
  32673. \ifx\textsizearg\xword \definetextfontsizex
  32674. \else \ifx\textsizearg\xiword \definetextfontsizexi
  32675. @@ -1860,7 +2309,7 @@
  32676. \def\curfontsize{title}%
  32677. \def\lsize{chap}\def\lllsize{subsec}%
  32678. \resetmathfonts \setleading{25pt}}
  32679. -\def\titlefont#1{{\titlefonts\rm #1}}
  32680. +\def\titlefont#1{{\titlefonts\rmisbold #1}}
  32681. \def\chapfonts{%
  32682. \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl
  32683. \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc
  32684. @@ -1911,6 +2360,16 @@
  32685. \def\lsize{smaller}\def\lllsize{smaller}%
  32686. \resetmathfonts \setleading{9.5pt}}
  32687. +% Fonts for short table of contents.
  32688. +\setfont\shortcontrm\rmshape{12}{1000}{OT1}
  32689. +\setfont\shortcontbf\bfshape{10}{\magstep1}{OT1} % no cmb12
  32690. +\setfont\shortcontsl\slshape{12}{1000}{OT1}
  32691. +\setfont\shortconttt\ttshape{12}{1000}{OT1TT}
  32692. +
  32693. +% Define these just so they can be easily changed for other fonts.
  32694. +\def\angleleft{$\langle$}
  32695. +\def\angleright{$\rangle$}
  32696. +
  32697. % Set the fonts to use with the @small... environments.
  32698. \let\smallexamplefonts = \smallfonts
  32699. @@ -1924,28 +2383,128 @@
  32700. %
  32701. % By the way, for comparison, here's what fits with @example (10pt):
  32702. % 8.5x11=71 smallbook=60 a4=75 a5=58
  32703. -%
  32704. -% I wish the USA used A4 paper.
  32705. % --karl, 24jan03.
  32706. -
  32707. % Set up the default fonts, so we can use them for creating boxes.
  32708. %
  32709. \definetextfontsizexi
  32710. -% Define these so they can be easily changed for other fonts.
  32711. -\def\angleleft{$\langle$}
  32712. -\def\angleright{$\rangle$}
  32713. +
  32714. +\message{markup,}
  32715. +
  32716. +% Check if we are currently using a typewriter font. Since all the
  32717. +% Computer Modern typewriter fonts have zero interword stretch (and
  32718. +% shrink), and it is reasonable to expect all typewriter fonts to have
  32719. +% this property, we can check that font parameter.
  32720. +%
  32721. +\def\ifmonospace{\ifdim\fontdimen3\font=0pt }
  32722. +
  32723. +% Markup style infrastructure. \defmarkupstylesetup\INITMACRO will
  32724. +% define and register \INITMACRO to be called on markup style changes.
  32725. +% \INITMACRO can check \currentmarkupstyle for the innermost
  32726. +% style and the set of \ifmarkupSTYLE switches for all styles
  32727. +% currently in effect.
  32728. +\newif\ifmarkupvar
  32729. +\newif\ifmarkupsamp
  32730. +\newif\ifmarkupkey
  32731. +%\newif\ifmarkupfile % @file == @samp.
  32732. +%\newif\ifmarkupoption % @option == @samp.
  32733. +\newif\ifmarkupcode
  32734. +\newif\ifmarkupkbd
  32735. +%\newif\ifmarkupenv % @env == @code.
  32736. +%\newif\ifmarkupcommand % @command == @code.
  32737. +\newif\ifmarkuptex % @tex (and part of @math, for now).
  32738. +\newif\ifmarkupexample
  32739. +\newif\ifmarkupverb
  32740. +\newif\ifmarkupverbatim
  32741. +
  32742. +\let\currentmarkupstyle\empty
  32743. +
  32744. +\def\setupmarkupstyle#1{%
  32745. + \csname markup#1true\endcsname
  32746. + \def\currentmarkupstyle{#1}%
  32747. + \markupstylesetup
  32748. +}
  32749. +
  32750. +\let\markupstylesetup\empty
  32751. +
  32752. +\def\defmarkupstylesetup#1{%
  32753. + \expandafter\def\expandafter\markupstylesetup
  32754. + \expandafter{\markupstylesetup #1}%
  32755. + \def#1%
  32756. +}
  32757. +
  32758. +% Markup style setup for left and right quotes.
  32759. +\defmarkupstylesetup\markupsetuplq{%
  32760. + \expandafter\let\expandafter \temp \csname markupsetuplq\currentmarkupstyle\endcsname
  32761. + \ifx\temp\relax \markupsetuplqdefault \else \temp \fi
  32762. +}
  32763. +
  32764. +\defmarkupstylesetup\markupsetuprq{%
  32765. + \expandafter\let\expandafter \temp \csname markupsetuprq\currentmarkupstyle\endcsname
  32766. + \ifx\temp\relax \markupsetuprqdefault \else \temp \fi
  32767. +}
  32768. +
  32769. +{
  32770. +\catcode`\'=\active
  32771. +\catcode`\`=\active
  32772. +
  32773. +\gdef\markupsetuplqdefault{\let`\lq}
  32774. +\gdef\markupsetuprqdefault{\let'\rq}
  32775. +
  32776. +\gdef\markupsetcodequoteleft{\let`\codequoteleft}
  32777. +\gdef\markupsetcodequoteright{\let'\codequoteright}
  32778. +
  32779. +\gdef\markupsetnoligaturesquoteleft{\let`\noligaturesquoteleft}
  32780. +}
  32781. +
  32782. +\let\markupsetuplqcode \markupsetcodequoteleft
  32783. +\let\markupsetuprqcode \markupsetcodequoteright
  32784. +\let\markupsetuplqexample \markupsetcodequoteleft
  32785. +\let\markupsetuprqexample \markupsetcodequoteright
  32786. +\let\markupsetuplqverb \markupsetcodequoteleft
  32787. +\let\markupsetuprqverb \markupsetcodequoteright
  32788. +\let\markupsetuplqverbatim \markupsetcodequoteleft
  32789. +\let\markupsetuprqverbatim \markupsetcodequoteright
  32790. +
  32791. +\let\markupsetuplqsamp \markupsetnoligaturesquoteleft
  32792. +\let\markupsetuplqkbd \markupsetnoligaturesquoteleft
  32793. +
  32794. +% Allow an option to not replace quotes with a regular directed right
  32795. +% quote/apostrophe (char 0x27), but instead use the undirected quote
  32796. +% from cmtt (char 0x0d). The undirected quote is ugly, so don't make it
  32797. +% the default, but it works for pasting with more pdf viewers (at least
  32798. +% evince), the lilypond developers report. xpdf does work with the
  32799. +% regular 0x27.
  32800. +%
  32801. +\def\codequoteright{%
  32802. + \expandafter\ifx\csname SETtxicodequoteundirected\endcsname\relax
  32803. + \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
  32804. + '%
  32805. + \else \char'15 \fi
  32806. + \else \char'15 \fi
  32807. +}
  32808. +%
  32809. +% and a similar option for the left quote char vs. a grave accent.
  32810. +% Modern fonts display ASCII 0x60 as a grave accent, so some people like
  32811. +% the code environments to do likewise.
  32812. +%
  32813. +\def\codequoteleft{%
  32814. + \expandafter\ifx\csname SETtxicodequotebacktick\endcsname\relax
  32815. + \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
  32816. + % [Knuth] pp. 380,381,391
  32817. + % \relax disables Spanish ligatures ?` and !` of \tt font.
  32818. + \relax`%
  32819. + \else \char'22 \fi
  32820. + \else \char'22 \fi
  32821. +}
  32822. +
  32823. +% [Knuth] pp. 380,381,391, disable Spanish ligatures ?` and !` of \tt font.
  32824. +\def\noligaturesquoteleft{\relax\lq}
  32825. % Count depth in font-changes, for error checks
  32826. \newcount\fontdepth \fontdepth=0
  32827. -% Fonts for short table of contents.
  32828. -\setfont\shortcontrm\rmshape{12}{1000}
  32829. -\setfont\shortcontbf\bfshape{10}{\magstep1} % no cmb12
  32830. -\setfont\shortcontsl\slshape{12}{1000}
  32831. -\setfont\shortconttt\ttshape{12}{1000}
  32832. -
  32833. %% Add scribe-like font environments, plus @l for inline lisp (usually sans
  32834. %% serif) and @ii for TeX italic
  32835. @@ -1960,17 +2519,22 @@
  32836. % @var is set to this for defun arguments.
  32837. \def\ttslanted#1{{\ttsl #1}\futurelet\next\smartitalicx}
  32838. -% like \smartslanted except unconditionally use \sl. We never want
  32839. +% @cite is like \smartslanted except unconditionally use \sl. We never want
  32840. % ttsl for book titles, do we?
  32841. \def\cite#1{{\sl #1}\futurelet\next\smartitalicx}
  32842. \let\i=\smartitalic
  32843. \let\slanted=\smartslanted
  32844. -\let\var=\smartslanted
  32845. +\def\var#1{{\setupmarkupstyle{var}\smartslanted{#1}}}
  32846. \let\dfn=\smartslanted
  32847. \let\emph=\smartitalic
  32848. -% @b, explicit bold.
  32849. +% Explicit font changes: @r, @sc, undocumented @ii.
  32850. +\def\r#1{{\rm #1}} % roman font
  32851. +\def\sc#1{{\smallcaps#1}} % smallcaps font
  32852. +\def\ii#1{{\it #1}} % italic font
  32853. +
  32854. +% @b, explicit bold. Also @strong.
  32855. \def\b#1{{\bf #1}}
  32856. \let\strong=\b
  32857. @@ -2002,21 +2566,35 @@
  32858. \catcode`@=\other
  32859. \def\endofsentencespacefactor{3000}% default
  32860. +% @t, explicit typewriter.
  32861. \def\t#1{%
  32862. {\tt \rawbackslash \plainfrenchspacing #1}%
  32863. \null
  32864. }
  32865. -\def\samp#1{`\tclose{#1}'\null}
  32866. -\setfont\keyrm\rmshape{8}{1000}
  32867. -\font\keysy=cmsy9
  32868. -\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{%
  32869. - \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{%
  32870. - \vbox{\hrule\kern-0.4pt
  32871. - \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}%
  32872. - \kern-0.4pt\hrule}%
  32873. - \kern-.06em\raise0.4pt\hbox{\angleright}}}}
  32874. -% The old definition, with no lozenge:
  32875. -%\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null}
  32876. +
  32877. +% @samp.
  32878. +\def\samp#1{{\setupmarkupstyle{samp}\lq\tclose{#1}\rq\null}}
  32879. +
  32880. +% definition of @key that produces a lozenge. Doesn't adjust to text size.
  32881. +%\setfont\keyrm\rmshape{8}{1000}{OT1}
  32882. +%\font\keysy=cmsy9
  32883. +%\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{%
  32884. +% \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{%
  32885. +% \vbox{\hrule\kern-0.4pt
  32886. +% \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}%
  32887. +% \kern-0.4pt\hrule}%
  32888. +% \kern-.06em\raise0.4pt\hbox{\angleright}}}}
  32889. +
  32890. +% definition of @key with no lozenge. If the current font is already
  32891. +% monospace, don't change it; that way, we respect @kbdinputstyle. But
  32892. +% if it isn't monospace, then use \tt.
  32893. +%
  32894. +\def\key#1{{\setupmarkupstyle{key}%
  32895. + \nohyphenation
  32896. + \ifmonospace\else\tt\fi
  32897. + #1}\null}
  32898. +
  32899. +% ctrl is no longer a Texinfo command.
  32900. \def\ctrl #1{{\tt \rawbackslash \hat}#1}
  32901. % @file, @option are the same as @samp.
  32902. @@ -2058,11 +2636,11 @@
  32903. {
  32904. \catcode`\-=\active \catcode`\_=\active
  32905. \catcode`\'=\active \catcode`\`=\active
  32906. + \global\let'=\rq \global\let`=\lq % default definitions
  32907. %
  32908. \global\def\code{\begingroup
  32909. - \catcode\rquoteChar=\active \catcode\lquoteChar=\active
  32910. - \let'\codequoteright \let`\codequoteleft
  32911. - %
  32912. + \setupmarkupstyle{code}%
  32913. + % The following should really be moved into \setupmarkupstyle handlers.
  32914. \catcode\dashChar=\active \catcode\underChar=\active
  32915. \ifallowcodebreaks
  32916. \let-\codedash
  32917. @@ -2094,7 +2672,7 @@
  32918. % each of the four underscores in __typeof__. This is undesirable in
  32919. % some manuals, especially if they don't have long identifiers in
  32920. % general. @allowcodebreaks provides a way to control this.
  32921. -%
  32922. +%
  32923. \newif\ifallowcodebreaks \allowcodebreakstrue
  32924. \def\keywordtrue{true}
  32925. @@ -2114,6 +2692,7 @@
  32926. % @kbd is like @code, except that if the argument is just one @key command,
  32927. % then @kbd has no effect.
  32928. +\def\kbd#1{{\setupmarkupstyle{kbd}\def\look{#1}\expandafter\kbdfoo\look??\par}}
  32929. % @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always),
  32930. % `example' (@kbd uses ttsl only inside of @example and friends),
  32931. @@ -2135,20 +2714,27 @@
  32932. \def\wordexample{example}
  32933. \def\wordcode{code}
  32934. -% Default is `distinct.'
  32935. +% Default is `distinct'.
  32936. \kbdinputstyle distinct
  32937. \def\xkey{\key}
  32938. \def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}%
  32939. \ifx\one\xkey\ifx\threex\three \key{#2}%
  32940. -\else{\tclose{\kbdfont\look}}\fi
  32941. -\else{\tclose{\kbdfont\look}}\fi}
  32942. +\else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi
  32943. +\else{\tclose{\kbdfont\setupmarkupstyle{kbd}\look}}\fi}
  32944. % For @indicateurl, @env, @command quotes seem unnecessary, so use \code.
  32945. \let\indicateurl=\code
  32946. \let\env=\code
  32947. \let\command=\code
  32948. +% @clicksequence{File @click{} Open ...}
  32949. +\def\clicksequence#1{\begingroup #1\endgroup}
  32950. +
  32951. +% @clickstyle @arrow (by default)
  32952. +\parseargdef\clickstyle{\def\click{#1}}
  32953. +\def\click{\arrow}
  32954. +
  32955. % @uref (abbreviation for `urlref') takes an optional (comma-separated)
  32956. % second argument specifying the text to display and an optional third
  32957. % arg as text to display instead of (rather than in addition to) the url
  32958. @@ -2198,34 +2784,20 @@
  32959. \let\email=\uref
  32960. \fi
  32961. -% Check if we are currently using a typewriter font. Since all the
  32962. -% Computer Modern typewriter fonts have zero interword stretch (and
  32963. -% shrink), and it is reasonable to expect all typewriter fonts to have
  32964. -% this property, we can check that font parameter.
  32965. -%
  32966. -\def\ifmonospace{\ifdim\fontdimen3\font=0pt }
  32967. -
  32968. % Typeset a dimension, e.g., `in' or `pt'. The only reason for the
  32969. % argument is to make the input look right: @dmn{pt} instead of @dmn{}pt.
  32970. %
  32971. \def\dmn#1{\thinspace #1}
  32972. -\def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par}
  32973. -
  32974. % @l was never documented to mean ``switch to the Lisp font'',
  32975. % and it is not used as such in any manual I can find. We need it for
  32976. % Polish suppressed-l. --karl, 22sep96.
  32977. %\def\l#1{{\li #1}\null}
  32978. -% Explicit font changes: @r, @sc, undocumented @ii.
  32979. -\def\r#1{{\rm #1}} % roman font
  32980. -\def\sc#1{{\smallcaps#1}} % smallcaps font
  32981. -\def\ii#1{{\it #1}} % italic font
  32982. -
  32983. % @acronym for "FBI", "NATO", and the like.
  32984. % We print this one point size smaller, since it's intended for
  32985. % all-uppercase.
  32986. -%
  32987. +%
  32988. \def\acronym#1{\doacronym #1,,\finish}
  32989. \def\doacronym#1,#2,#3\finish{%
  32990. {\selectfonts\lsize #1}%
  32991. @@ -2237,7 +2809,7 @@
  32992. % @abbr for "Comput. J." and the like.
  32993. % No font change, but don't do end-of-sentence spacing.
  32994. -%
  32995. +%
  32996. \def\abbr#1{\doabbr #1,,\finish}
  32997. \def\doabbr#1,#2,#3\finish{%
  32998. {\plainfrenchspacing #1}%
  32999. @@ -2247,6 +2819,44 @@
  33000. \fi
  33001. }
  33002. +
  33003. +\message{glyphs,}
  33004. +
  33005. +% @point{}, @result{}, @expansion{}, @print{}, @equiv{}.
  33006. +%
  33007. +% Since these characters are used in examples, they should be an even number of
  33008. +% \tt widths. Each \tt character is 1en, so two makes it 1em.
  33009. +%
  33010. +\def\point{$\star$}
  33011. +\def\arrow{\leavevmode\raise.05ex\hbox to 1em{\hfil$\rightarrow$\hfil}}
  33012. +\def\result{\leavevmode\raise.05ex\hbox to 1em{\hfil$\Rightarrow$\hfil}}
  33013. +\def\expansion{\leavevmode\hbox to 1em{\hfil$\mapsto$\hfil}}
  33014. +\def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}}
  33015. +\def\equiv{\leavevmode\hbox to 1em{\hfil$\ptexequiv$\hfil}}
  33016. +
  33017. +% The @error{} command.
  33018. +% Adapted from the TeXbook's \boxit.
  33019. +%
  33020. +\newbox\errorbox
  33021. +%
  33022. +{\tentt \global\dimen0 = 3em}% Width of the box.
  33023. +\dimen2 = .55pt % Thickness of rules
  33024. +% The text. (`r' is open on the right, `e' somewhat less so on the left.)
  33025. +\setbox0 = \hbox{\kern-.75pt \reducedsf error\kern-1.5pt}
  33026. +%
  33027. +\setbox\errorbox=\hbox to \dimen0{\hfil
  33028. + \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
  33029. + \advance\hsize by -2\dimen2 % Rules.
  33030. + \vbox{%
  33031. + \hrule height\dimen2
  33032. + \hbox{\vrule width\dimen2 \kern3pt % Space to left of text.
  33033. + \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below.
  33034. + \kern3pt\vrule width\dimen2}% Space to right.
  33035. + \hrule height\dimen2}
  33036. + \hfil}
  33037. +%
  33038. +\def\error{\leavevmode\lower.7ex\copy\errorbox}
  33039. +
  33040. % @pounds{} is a sterling sign, which Knuth put in the CM italic font.
  33041. %
  33042. \def\pounds{{\it\$}}
  33043. @@ -2256,49 +2866,113 @@
  33044. % Theiling, which support regular, slanted, bold and bold slanted (and
  33045. % "outlined" (blackboard board, sort of) versions, which we don't need).
  33046. % It is available from http://www.ctan.org/tex-archive/fonts/eurosym.
  33047. -%
  33048. +%
  33049. % Although only regular is the truly official Euro symbol, we ignore
  33050. % that. The Euro is designed to be slightly taller than the regular
  33051. % font height.
  33052. -%
  33053. +%
  33054. % feymr - regular
  33055. % feymo - slanted
  33056. % feybr - bold
  33057. % feybo - bold slanted
  33058. -%
  33059. +%
  33060. % There is no good (free) typewriter version, to my knowledge.
  33061. % A feymr10 euro is ~7.3pt wide, while a normal cmtt10 char is ~5.25pt wide.
  33062. % Hmm.
  33063. -%
  33064. +%
  33065. % Also doesn't work in math. Do we need to do math with euro symbols?
  33066. % Hope not.
  33067. -%
  33068. -%
  33069. +%
  33070. +%
  33071. \def\euro{{\eurofont e}}
  33072. \def\eurofont{%
  33073. % We set the font at each command, rather than predefining it in
  33074. % \textfonts and the other font-switching commands, so that
  33075. % installations which never need the symbol don't have to have the
  33076. % font installed.
  33077. - %
  33078. + %
  33079. % There is only one designed size (nominal 10pt), so we always scale
  33080. % that to the current nominal size.
  33081. - %
  33082. + %
  33083. % By the way, simply using "at 1em" works for cmr10 and the like, but
  33084. % does not work for cmbx10 and other extended/shrunken fonts.
  33085. - %
  33086. + %
  33087. \def\eurosize{\csname\curfontsize nominalsize\endcsname}%
  33088. %
  33089. - \ifx\curfontstyle\bfstylename
  33090. + \ifx\curfontstyle\bfstylename
  33091. % bold:
  33092. \font\thiseurofont = \ifusingit{feybo10}{feybr10} at \eurosize
  33093. - \else
  33094. + \else
  33095. % regular:
  33096. \font\thiseurofont = \ifusingit{feymo10}{feymr10} at \eurosize
  33097. \fi
  33098. \thiseurofont
  33099. }
  33100. +% Glyphs from the EC fonts. We don't use \let for the aliases, because
  33101. +% sometimes we redefine the original macro, and the alias should reflect
  33102. +% the redefinition.
  33103. +%
  33104. +% Use LaTeX names for the Icelandic letters.
  33105. +\def\DH{{\ecfont \char"D0}} % Eth
  33106. +\def\dh{{\ecfont \char"F0}} % eth
  33107. +\def\TH{{\ecfont \char"DE}} % Thorn
  33108. +\def\th{{\ecfont \char"FE}} % thorn
  33109. +%
  33110. +\def\guillemetleft{{\ecfont \char"13}}
  33111. +\def\guillemotleft{\guillemetleft}
  33112. +\def\guillemetright{{\ecfont \char"14}}
  33113. +\def\guillemotright{\guillemetright}
  33114. +\def\guilsinglleft{{\ecfont \char"0E}}
  33115. +\def\guilsinglright{{\ecfont \char"0F}}
  33116. +\def\quotedblbase{{\ecfont \char"12}}
  33117. +\def\quotesinglbase{{\ecfont \char"0D}}
  33118. +%
  33119. +% This positioning is not perfect (see the ogonek LaTeX package), but
  33120. +% we have the precomposed glyphs for the most common cases. We put the
  33121. +% tests to use those glyphs in the single \ogonek macro so we have fewer
  33122. +% dummy definitions to worry about for index entries, etc.
  33123. +%
  33124. +% ogonek is also used with other letters in Lithuanian (IOU), but using
  33125. +% the precomposed glyphs for those is not so easy since they aren't in
  33126. +% the same EC font.
  33127. +\def\ogonek#1{{%
  33128. + \def\temp{#1}%
  33129. + \ifx\temp\macrocharA\Aogonek
  33130. + \else\ifx\temp\macrochara\aogonek
  33131. + \else\ifx\temp\macrocharE\Eogonek
  33132. + \else\ifx\temp\macrochare\eogonek
  33133. + \else
  33134. + \ecfont \setbox0=\hbox{#1}%
  33135. + \ifdim\ht0=1ex\accent"0C #1%
  33136. + \else\ooalign{\unhbox0\crcr\hidewidth\char"0C \hidewidth}%
  33137. + \fi
  33138. + \fi\fi\fi\fi
  33139. + }%
  33140. +}
  33141. +\def\Aogonek{{\ecfont \char"81}}\def\macrocharA{A}
  33142. +\def\aogonek{{\ecfont \char"A1}}\def\macrochara{a}
  33143. +\def\Eogonek{{\ecfont \char"86}}\def\macrocharE{E}
  33144. +\def\eogonek{{\ecfont \char"A6}}\def\macrochare{e}
  33145. +%
  33146. +% Use the ec* fonts (cm-super in outline format) for non-CM glyphs.
  33147. +\def\ecfont{%
  33148. + % We can't distinguish serif/sans and italic/slanted, but this
  33149. + % is used for crude hacks anyway (like adding French and German
  33150. + % quotes to documents typeset with CM, where we lose kerning), so
  33151. + % hopefully nobody will notice/care.
  33152. + \edef\ecsize{\csname\curfontsize ecsize\endcsname}%
  33153. + \edef\nominalsize{\csname\curfontsize nominalsize\endcsname}%
  33154. + \ifx\curfontstyle\bfstylename
  33155. + % bold:
  33156. + \font\thisecfont = ecb\ifusingit{i}{x}\ecsize \space at \nominalsize
  33157. + \else
  33158. + % regular:
  33159. + \font\thisecfont = ec\ifusingit{ti}{rm}\ecsize \space at \nominalsize
  33160. + \fi
  33161. + \thisecfont
  33162. +}
  33163. +
  33164. % @registeredsymbol - R in a circle. The font for the R should really
  33165. % be smaller yet, but lllsize is the best we can do for now.
  33166. % Adapted from the plain.tex definition of \copyright.
  33167. @@ -2316,11 +2990,17 @@
  33168. % Laurent Siebenmann reports \Orb undefined with:
  33169. % Textures 1.7.7 (preloaded format=plain 93.10.14) (68K) 16 APR 2004 02:38
  33170. % so we'll define it if necessary.
  33171. -%
  33172. +%
  33173. \ifx\Orb\undefined
  33174. \def\Orb{\mathhexbox20D}
  33175. \fi
  33176. +% Quotes.
  33177. +\chardef\quotedblleft="5C
  33178. +\chardef\quotedblright=`\"
  33179. +\chardef\quoteleft=`\`
  33180. +\chardef\quoteright=`\'
  33181. +
  33182. \message{page headings,}
  33183. @@ -2405,12 +3085,9 @@
  33184. \let\subtitlerm=\tenrm
  33185. \def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}
  33186. -\def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines
  33187. - \let\tt=\authortt}
  33188. -
  33189. \parseargdef\title{%
  33190. \checkenv\titlepage
  33191. - \leftline{\titlefonts\rm #1}
  33192. + \leftline{\titlefonts\rmisbold #1}
  33193. % print a rule at the page bottom also.
  33194. \finishedtitlepagefalse
  33195. \vskip4pt \hrule height 4pt width \hsize \vskip4pt
  33196. @@ -2431,7 +3108,7 @@
  33197. \else
  33198. \checkenv\titlepage
  33199. \ifseenauthor\else \vskip 0pt plus 1filll \seenauthortrue \fi
  33200. - {\authorfont \leftline{#1}}%
  33201. + {\secfonts\rmisbold \leftline{#1}}%
  33202. \fi
  33203. }
  33204. @@ -2490,6 +3167,33 @@
  33205. \parseargdef\everyfooting{\oddfootingxxx{#1}\evenfootingxxx{#1}}
  33206. +% @evenheadingmarks top \thischapter <- chapter at the top of a page
  33207. +% @evenheadingmarks bottom \thischapter <- chapter at the bottom of a page
  33208. +%
  33209. +% The same set of arguments for:
  33210. +%
  33211. +% @oddheadingmarks
  33212. +% @evenfootingmarks
  33213. +% @oddfootingmarks
  33214. +% @everyheadingmarks
  33215. +% @everyfootingmarks
  33216. +
  33217. +\def\evenheadingmarks{\headingmarks{even}{heading}}
  33218. +\def\oddheadingmarks{\headingmarks{odd}{heading}}
  33219. +\def\evenfootingmarks{\headingmarks{even}{footing}}
  33220. +\def\oddfootingmarks{\headingmarks{odd}{footing}}
  33221. +\def\everyheadingmarks#1 {\headingmarks{even}{heading}{#1}
  33222. + \headingmarks{odd}{heading}{#1} }
  33223. +\def\everyfootingmarks#1 {\headingmarks{even}{footing}{#1}
  33224. + \headingmarks{odd}{footing}{#1} }
  33225. +% #1 = even/odd, #2 = heading/footing, #3 = top/bottom.
  33226. +\def\headingmarks#1#2#3 {%
  33227. + \expandafter\let\expandafter\temp \csname get#3headingmarks\endcsname
  33228. + \global\expandafter\let\csname get#1#2marks\endcsname \temp
  33229. +}
  33230. +
  33231. +\everyheadingmarks bottom
  33232. +\everyfootingmarks bottom
  33233. % @headings double turns headings on for double-sided printing.
  33234. % @headings single turns headings on for single-sided printing.
  33235. @@ -2632,7 +3336,7 @@
  33236. % cause the example and the item to crash together. So we use this
  33237. % bizarre value of 10001 as a signal to \aboveenvbreak to insert
  33238. % \parskip glue after all. Section titles are handled this way also.
  33239. - %
  33240. + %
  33241. \penalty 10001
  33242. \endgroup
  33243. \itemxneedsnegativevskipfalse
  33244. @@ -2726,9 +3430,18 @@
  33245. \parindent=0pt
  33246. \parskip=\smallskipamount
  33247. \ifdim\parskip=0pt \parskip=2pt \fi
  33248. + %
  33249. + % Try typesetting the item mark that if the document erroneously says
  33250. + % something like @itemize @samp (intending @table), there's an error
  33251. + % right away at the @itemize. It's not the best error message in the
  33252. + % world, but it's better than leaving it to the @item. This means if
  33253. + % the user wants an empty mark, they have to say @w{} not just @w.
  33254. \def\itemcontents{#1}%
  33255. + \setbox0 = \hbox{\itemcontents}%
  33256. + %
  33257. % @itemize with no arg is equivalent to @itemize @bullet.
  33258. \ifx\itemcontents\empty\def\itemcontents{\bullet}\fi
  33259. + %
  33260. \let\item=\itemizeitem
  33261. }
  33262. @@ -2749,6 +3462,7 @@
  33263. \ifnum\lastpenalty<10000 \parskip=0in \fi
  33264. \noindent
  33265. \hbox to 0pt{\hss \itemcontents \kern\itemmargin}%
  33266. + %
  33267. \vadjust{\penalty 1200}}% not good to break after first line of item.
  33268. \flushcr
  33269. }
  33270. @@ -2970,12 +3684,19 @@
  33271. %
  33272. % @headitem starts a heading row, which we typeset in bold.
  33273. % Assignments have to be global since we are inside the implicit group
  33274. -% of an alignment entry. Note that \everycr resets \everytab.
  33275. -\def\headitem{\checkenv\multitable \crcr \global\everytab={\bf}\the\everytab}%
  33276. +% of an alignment entry. \everycr resets \everytab so we don't have to
  33277. +% undo it ourselves.
  33278. +\def\headitemfont{\b}% for people to use in the template row; not changeable
  33279. +\def\headitem{%
  33280. + \checkenv\multitable
  33281. + \crcr
  33282. + \global\everytab={\bf}% can't use \headitemfont since the parsing differs
  33283. + \the\everytab % for the first item
  33284. +}%
  33285. %
  33286. % A \tab used to include \hskip1sp. But then the space in a template
  33287. % line is not enough. That is bad. So let's go back to just `&' until
  33288. -% we encounter the problem it was intended to solve again.
  33289. +% we again encounter the problem the 1sp was intended to solve.
  33290. % --karl, nathan@acm.org, 20apr99.
  33291. \def\tab{\checkenv\multitable &\the\everytab}%
  33292. @@ -3374,11 +4095,11 @@
  33293. \def\dosynindex#1#2#3{%
  33294. % Only do \closeout if we haven't already done it, else we'll end up
  33295. % closing the target index.
  33296. - \expandafter \ifx\csname donesynindex#2\endcsname \undefined
  33297. + \expandafter \ifx\csname donesynindex#2\endcsname \relax
  33298. % The \closeout helps reduce unnecessary open files; the limit on the
  33299. % Acorn RISC OS is a mere 16 files.
  33300. \expandafter\closeout\csname#2indfile\endcsname
  33301. - \expandafter\let\csname\donesynindex#2\endcsname = 1
  33302. + \expandafter\let\csname donesynindex#2\endcsname = 1
  33303. \fi
  33304. % redefine \fooindfile:
  33305. \expandafter\let\expandafter\temp\expandafter=\csname#3indfile\endcsname
  33306. @@ -3428,7 +4149,7 @@
  33307. % processing continues to some further point. On the other hand, it
  33308. % seems \endinput does not hurt in the printed index arg, since that
  33309. % is still getting written without apparent harm.
  33310. - %
  33311. + %
  33312. % Sample source (mac-idx3.tex, reported by Graham Percival to
  33313. % help-texinfo, 22may06):
  33314. % @macro funindex {WORD}
  33315. @@ -3436,12 +4157,12 @@
  33316. % @end macro
  33317. % ...
  33318. % @funindex commtest
  33319. - %
  33320. + %
  33321. % The above is not enough to reproduce the bug, but it gives the flavor.
  33322. - %
  33323. + %
  33324. % Sample whatsit resulting:
  33325. % .@write3{\entry{xyz}{@folio }{@code {xyz@endinput }}}
  33326. - %
  33327. + %
  33328. % So:
  33329. \let\endinput = \empty
  33330. %
  33331. @@ -3493,19 +4214,23 @@
  33332. % Non-English letters.
  33333. \definedummyword\AA
  33334. \definedummyword\AE
  33335. + \definedummyword\DH
  33336. \definedummyword\L
  33337. - \definedummyword\OE
  33338. \definedummyword\O
  33339. + \definedummyword\OE
  33340. + \definedummyword\TH
  33341. \definedummyword\aa
  33342. \definedummyword\ae
  33343. + \definedummyword\dh
  33344. + \definedummyword\exclamdown
  33345. \definedummyword\l
  33346. - \definedummyword\oe
  33347. \definedummyword\o
  33348. - \definedummyword\ss
  33349. - \definedummyword\exclamdown
  33350. - \definedummyword\questiondown
  33351. + \definedummyword\oe
  33352. \definedummyword\ordf
  33353. \definedummyword\ordm
  33354. + \definedummyword\questiondown
  33355. + \definedummyword\ss
  33356. + \definedummyword\th
  33357. %
  33358. % Although these internal commands shouldn't show up, sometimes they do.
  33359. \definedummyword\bf
  33360. @@ -3530,11 +4255,22 @@
  33361. \definedummyword\equiv
  33362. \definedummyword\error
  33363. \definedummyword\euro
  33364. + \definedummyword\guillemetleft
  33365. + \definedummyword\guillemetright
  33366. + \definedummyword\guilsinglleft
  33367. + \definedummyword\guilsinglright
  33368. \definedummyword\expansion
  33369. \definedummyword\minus
  33370. + \definedummyword\ogonek
  33371. \definedummyword\pounds
  33372. \definedummyword\point
  33373. \definedummyword\print
  33374. + \definedummyword\quotedblbase
  33375. + \definedummyword\quotedblleft
  33376. + \definedummyword\quotedblright
  33377. + \definedummyword\quoteleft
  33378. + \definedummyword\quoteright
  33379. + \definedummyword\quotesinglbase
  33380. \definedummyword\result
  33381. \definedummyword\textdegree
  33382. %
  33383. @@ -3569,6 +4305,7 @@
  33384. \definedummyword\v
  33385. \definedummyword\H
  33386. \definedummyword\dotaccent
  33387. + \definedummyword\ogonek
  33388. \definedummyword\ringaccent
  33389. \definedummyword\tieaccent
  33390. \definedummyword\ubaraccent
  33391. @@ -3588,6 +4325,7 @@
  33392. \definedummyword\code
  33393. \definedummyword\command
  33394. \definedummyword\dfn
  33395. + \definedummyword\email
  33396. \definedummyword\emph
  33397. \definedummyword\env
  33398. \definedummyword\file
  33399. @@ -3636,19 +4374,23 @@
  33400. % Non-English letters.
  33401. \def\AA{AA}%
  33402. \def\AE{AE}%
  33403. + \def\DH{DZZ}%
  33404. \def\L{L}%
  33405. \def\OE{OE}%
  33406. \def\O{O}%
  33407. + \def\TH{ZZZ}%
  33408. \def\aa{aa}%
  33409. \def\ae{ae}%
  33410. + \def\dh{dzz}%
  33411. + \def\exclamdown{!}%
  33412. \def\l{l}%
  33413. \def\oe{oe}%
  33414. - \def\o{o}%
  33415. - \def\ss{ss}%
  33416. - \def\exclamdown{!}%
  33417. - \def\questiondown{?}%
  33418. \def\ordf{a}%
  33419. \def\ordm{o}%
  33420. + \def\o{o}%
  33421. + \def\questiondown{?}%
  33422. + \def\ss{ss}%
  33423. + \def\th{zzz}%
  33424. %
  33425. \def\LaTeX{LaTeX}%
  33426. \def\TeX{TeX}%
  33427. @@ -3658,30 +4400,40 @@
  33428. \def\bullet{bullet}%
  33429. \def\comma{,}%
  33430. \def\copyright{copyright}%
  33431. - \def\registeredsymbol{R}%
  33432. \def\dots{...}%
  33433. \def\enddots{...}%
  33434. \def\equiv{==}%
  33435. \def\error{error}%
  33436. \def\euro{euro}%
  33437. \def\expansion{==>}%
  33438. + \def\guillemetleft{<<}%
  33439. + \def\guillemetright{>>}%
  33440. + \def\guilsinglleft{<}%
  33441. + \def\guilsinglright{>}%
  33442. \def\minus{-}%
  33443. - \def\pounds{pounds}%
  33444. \def\point{.}%
  33445. + \def\pounds{pounds}%
  33446. \def\print{-|}%
  33447. + \def\quotedblbase{"}%
  33448. + \def\quotedblleft{"}%
  33449. + \def\quotedblright{"}%
  33450. + \def\quoteleft{`}%
  33451. + \def\quoteright{'}%
  33452. + \def\quotesinglbase{,}%
  33453. + \def\registeredsymbol{R}%
  33454. \def\result{=>}%
  33455. - \def\textdegree{degrees}%
  33456. + \def\textdegree{o}%
  33457. %
  33458. % We need to get rid of all macros, leaving only the arguments (if present).
  33459. % Of course this is not nearly correct, but it is the best we can do for now.
  33460. % makeinfo does not expand macros in the argument to @deffn, which ends up
  33461. % writing an index entry, and texindex isn't prepared for an index sort entry
  33462. % that starts with \.
  33463. - %
  33464. + %
  33465. % Since macro invocations are followed by braces, we can just redefine them
  33466. % to take a single TeX argument. The case of a macro invocation that
  33467. % goes to end-of-line is not handled.
  33468. - %
  33469. + %
  33470. \macrolist
  33471. }
  33472. @@ -3710,11 +4462,7 @@
  33473. %
  33474. \edef\writeto{\csname#1indfile\endcsname}%
  33475. %
  33476. - \ifvmode
  33477. - \dosubindsanitize
  33478. - \else
  33479. - \dosubindwrite
  33480. - \fi
  33481. + \safewhatsit\dosubindwrite
  33482. }%
  33483. \fi
  33484. }
  33485. @@ -3751,13 +4499,13 @@
  33486. \temp
  33487. }
  33488. -% Take care of unwanted page breaks:
  33489. +% Take care of unwanted page breaks/skips around a whatsit:
  33490. %
  33491. % If a skip is the last thing on the list now, preserve it
  33492. % by backing up by \lastskip, doing the \write, then inserting
  33493. % the skip again. Otherwise, the whatsit generated by the
  33494. -% \write will make \lastskip zero. The result is that sequences
  33495. -% like this:
  33496. +% \write or \pdfdest will make \lastskip zero. The result is that
  33497. +% sequences like this:
  33498. % @end defun
  33499. % @tindex whatever
  33500. % @defun ...
  33501. @@ -3781,25 +4529,31 @@
  33502. %
  33503. \edef\zeroskipmacro{\expandafter\the\csname z@skip\endcsname}
  33504. %
  33505. +\newskip\whatsitskip
  33506. +\newcount\whatsitpenalty
  33507. +%
  33508. % ..., ready, GO:
  33509. %
  33510. -\def\dosubindsanitize{%
  33511. +\def\safewhatsit#1{%
  33512. +\ifhmode
  33513. + #1%
  33514. +\else
  33515. % \lastskip and \lastpenalty cannot both be nonzero simultaneously.
  33516. - \skip0 = \lastskip
  33517. + \whatsitskip = \lastskip
  33518. \edef\lastskipmacro{\the\lastskip}%
  33519. - \count255 = \lastpenalty
  33520. + \whatsitpenalty = \lastpenalty
  33521. %
  33522. % If \lastskip is nonzero, that means the last item was a
  33523. % skip. And since a skip is discardable, that means this
  33524. - % -\skip0 glue we're inserting is preceded by a
  33525. + % -\whatsitskip glue we're inserting is preceded by a
  33526. % non-discardable item, therefore it is not a potential
  33527. % breakpoint, therefore no \nobreak needed.
  33528. \ifx\lastskipmacro\zeroskipmacro
  33529. \else
  33530. - \vskip-\skip0
  33531. + \vskip-\whatsitskip
  33532. \fi
  33533. %
  33534. - \dosubindwrite
  33535. + #1%
  33536. %
  33537. \ifx\lastskipmacro\zeroskipmacro
  33538. % If \lastskip was zero, perhaps the last item was a penalty, and
  33539. @@ -3807,19 +4561,20 @@
  33540. % to re-insert the same penalty (values >10000 are used for various
  33541. % signals); since we just inserted a non-discardable item, any
  33542. % following glue (such as a \parskip) would be a breakpoint. For example:
  33543. - %
  33544. + %
  33545. % @deffn deffn-whatever
  33546. % @vindex index-whatever
  33547. % Description.
  33548. % would allow a break between the index-whatever whatsit
  33549. % and the "Description." paragraph.
  33550. - \ifnum\count255>9999 \penalty\count255 \fi
  33551. + \ifnum\whatsitpenalty>9999 \penalty\whatsitpenalty \fi
  33552. \else
  33553. % On the other hand, if we had a nonzero \lastskip,
  33554. % this make-up glue would be preceded by a non-discardable item
  33555. % (the whatsit from the \write), so we must insert a \nobreak.
  33556. - \nobreak\vskip\skip0
  33557. + \nobreak\vskip\whatsitskip
  33558. \fi
  33559. +\fi
  33560. }
  33561. % The index entry written in the file actually looks like
  33562. @@ -3862,6 +4617,7 @@
  33563. %
  33564. \smallfonts \rm
  33565. \tolerance = 9500
  33566. + \plainfrenchspacing
  33567. \everypar = {}% don't want the \kern\-parindent from indentation suppression.
  33568. %
  33569. % See if the index file exists and is nonempty.
  33570. @@ -3935,7 +4691,7 @@
  33571. %
  33572. % A straightforward implementation would start like this:
  33573. % \def\entry#1#2{...
  33574. -% But this frozes the catcodes in the argument, and can cause problems to
  33575. +% But this freezes the catcodes in the argument, and can cause problems to
  33576. % @code, which sets - active. This problem was fixed by a kludge---
  33577. % ``-'' was active throughout whole index, but this isn't really right.
  33578. %
  33579. @@ -3991,11 +4747,8 @@
  33580. % The following is kludged to not output a line of dots in the index if
  33581. % there are no page numbers. The next person who breaks this will be
  33582. % cursed by a Unix daemon.
  33583. - \def\tempa{{\rm }}%
  33584. - \def\tempb{#1}%
  33585. - \edef\tempc{\tempa}%
  33586. - \edef\tempd{\tempb}%
  33587. - \ifx\tempc\tempd
  33588. + \setbox\boxA = \hbox{#1}%
  33589. + \ifdim\wd\boxA = 0pt
  33590. \ %
  33591. \else
  33592. %
  33593. @@ -4131,6 +4884,34 @@
  33594. %
  33595. % All done with double columns.
  33596. \def\enddoublecolumns{%
  33597. + % The following penalty ensures that the page builder is exercised
  33598. + % _before_ we change the output routine. This is necessary in the
  33599. + % following situation:
  33600. + %
  33601. + % The last section of the index consists only of a single entry.
  33602. + % Before this section, \pagetotal is less than \pagegoal, so no
  33603. + % break occurs before the last section starts. However, the last
  33604. + % section, consisting of \initial and the single \entry, does not
  33605. + % fit on the page and has to be broken off. Without the following
  33606. + % penalty the page builder will not be exercised until \eject
  33607. + % below, and by that time we'll already have changed the output
  33608. + % routine to the \balancecolumns version, so the next-to-last
  33609. + % double-column page will be processed with \balancecolumns, which
  33610. + % is wrong: The two columns will go to the main vertical list, with
  33611. + % the broken-off section in the recent contributions. As soon as
  33612. + % the output routine finishes, TeX starts reconsidering the page
  33613. + % break. The two columns and the broken-off section both fit on the
  33614. + % page, because the two columns now take up only half of the page
  33615. + % goal. When TeX sees \eject from below which follows the final
  33616. + % section, it invokes the new output routine that we've set after
  33617. + % \balancecolumns below; \onepageout will try to fit the two columns
  33618. + % and the final section into the vbox of \pageheight (see
  33619. + % \pagebody), causing an overfull box.
  33620. + %
  33621. + % Note that glue won't work here, because glue does not exercise the
  33622. + % page builder, unlike penalties (see The TeXbook, pp. 280-281).
  33623. + \penalty0
  33624. + %
  33625. \output = {%
  33626. % Split the last of the double-column material. Leave it on the
  33627. % current page, no automatic page break.
  33628. @@ -4240,11 +5021,15 @@
  33629. \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
  33630. \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
  33631. -% Each @chapter defines this as the name of the chapter.
  33632. -% page headings and footings can use it. @section does likewise.
  33633. -% However, they are not reliable, because we don't use marks.
  33634. +% Each @chapter defines these (using marks) as the number+name, number
  33635. +% and name of the chapter. Page headings and footings can use
  33636. +% these. @section does likewise.
  33637. \def\thischapter{}
  33638. +\def\thischapternum{}
  33639. +\def\thischaptername{}
  33640. \def\thissection{}
  33641. +\def\thissectionnum{}
  33642. +\def\thissectionname{}
  33643. \newcount\absseclevel % used to calculate proper heading level
  33644. \newcount\secbase\secbase=0 % @raisesections/@lowersections modify this count
  33645. @@ -4357,7 +5142,9 @@
  33646. \gdef\chaplevelprefix{\the\chapno.}%
  33647. \resetallfloatnos
  33648. %
  33649. - \message{\putwordChapter\space \the\chapno}%
  33650. + % \putwordChapter can contain complex things in translations.
  33651. + \toks0=\expandafter{\putwordChapter}%
  33652. + \message{\the\toks0 \space \the\chapno}%
  33653. %
  33654. % Write the actual heading.
  33655. \chapmacro{#1}{Ynumbered}{\the\chapno}%
  33656. @@ -4368,15 +5155,17 @@
  33657. \global\let\subsubsection = \numberedsubsubsec
  33658. }
  33659. -\outer\parseargdef\appendix{\apphead0{#1}} % normally apphead0 calls appendixzzz
  33660. +\outer\parseargdef\appendix{\apphead0{#1}} % normally calls appendixzzz
  33661. +%
  33662. \def\appendixzzz#1{%
  33663. \global\secno=0 \global\subsecno=0 \global\subsubsecno=0
  33664. \global\advance\appendixno by 1
  33665. \gdef\chaplevelprefix{\appendixletter.}%
  33666. \resetallfloatnos
  33667. %
  33668. - \def\appendixnum{\putwordAppendix\space \appendixletter}%
  33669. - \message{\appendixnum}%
  33670. + % \putwordAppendix can contain complex things in translations.
  33671. + \toks0=\expandafter{\putwordAppendix}%
  33672. + \message{\the\toks0 \space \appendixletter}%
  33673. %
  33674. \chapmacro{#1}{Yappendix}{\appendixletter}%
  33675. %
  33676. @@ -4508,7 +5297,6 @@
  33677. % 3) Likewise, headings look best if no \parindent is used, and
  33678. % if justification is not attempted. Hence \raggedright.
  33679. -
  33680. \def\majorheading{%
  33681. {\advance\chapheadingskip by 10pt \chapbreak }%
  33682. \parsearg\chapheadingzzz
  33683. @@ -4517,8 +5305,8 @@
  33684. \def\chapheading{\chapbreak \parsearg\chapheadingzzz}
  33685. \def\chapheadingzzz#1{%
  33686. {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
  33687. - \parindent=0pt\raggedright
  33688. - \rm #1\hfill}}%
  33689. + \parindent=0pt\ptexraggedright
  33690. + \rmisbold #1\hfill}}%
  33691. \bigskip \par\penalty 200\relax
  33692. \suppressfirstparagraphindent
  33693. }
  33694. @@ -4545,7 +5333,20 @@
  33695. \def\chapbreak{\dobreak \chapheadingskip {-4000}}
  33696. \def\chappager{\par\vfill\supereject}
  33697. -\def\chapoddpage{\chappager \ifodd\pageno \else \hbox to 0pt{} \chappager\fi}
  33698. +% Because \domark is called before \chapoddpage, the filler page will
  33699. +% get the headings for the next chapter, which is wrong. But we don't
  33700. +% care -- we just disable all headings on the filler page.
  33701. +\def\chapoddpage{%
  33702. + \chappager
  33703. + \ifodd\pageno \else
  33704. + \begingroup
  33705. + \evenheadline={\hfil}\evenfootline={\hfil}%
  33706. + \oddheadline={\hfil}\oddfootline={\hfil}%
  33707. + \hbox to 0pt{}%
  33708. + \chappager
  33709. + \endgroup
  33710. + \fi
  33711. +}
  33712. \def\setchapternewpage #1 {\csname CHAPPAG#1\endcsname}
  33713. @@ -4579,45 +5380,78 @@
  33714. \def\Yappendixkeyword{Yappendix}
  33715. %
  33716. \def\chapmacro#1#2#3{%
  33717. + % Insert the first mark before the heading break (see notes for \domark).
  33718. + \let\prevchapterdefs=\lastchapterdefs
  33719. + \let\prevsectiondefs=\lastsectiondefs
  33720. + \gdef\lastsectiondefs{\gdef\thissectionname{}\gdef\thissectionnum{}%
  33721. + \gdef\thissection{}}%
  33722. + %
  33723. + \def\temptype{#2}%
  33724. + \ifx\temptype\Ynothingkeyword
  33725. + \gdef\lastchapterdefs{\gdef\thischaptername{#1}\gdef\thischapternum{}%
  33726. + \gdef\thischapter{\thischaptername}}%
  33727. + \else\ifx\temptype\Yomitfromtockeyword
  33728. + \gdef\lastchapterdefs{\gdef\thischaptername{#1}\gdef\thischapternum{}%
  33729. + \gdef\thischapter{}}%
  33730. + \else\ifx\temptype\Yappendixkeyword
  33731. + \toks0={#1}%
  33732. + \xdef\lastchapterdefs{%
  33733. + \gdef\noexpand\thischaptername{\the\toks0}%
  33734. + \gdef\noexpand\thischapternum{\appendixletter}%
  33735. + % \noexpand\putwordAppendix avoids expanding indigestible
  33736. + % commands in some of the translations.
  33737. + \gdef\noexpand\thischapter{\noexpand\putwordAppendix{}
  33738. + \noexpand\thischapternum:
  33739. + \noexpand\thischaptername}%
  33740. + }%
  33741. + \else
  33742. + \toks0={#1}%
  33743. + \xdef\lastchapterdefs{%
  33744. + \gdef\noexpand\thischaptername{\the\toks0}%
  33745. + \gdef\noexpand\thischapternum{\the\chapno}%
  33746. + % \noexpand\putwordChapter avoids expanding indigestible
  33747. + % commands in some of the translations.
  33748. + \gdef\noexpand\thischapter{\noexpand\putwordChapter{}
  33749. + \noexpand\thischapternum:
  33750. + \noexpand\thischaptername}%
  33751. + }%
  33752. + \fi\fi\fi
  33753. + %
  33754. + % Output the mark. Pass it through \safewhatsit, to take care of
  33755. + % the preceding space.
  33756. + \safewhatsit\domark
  33757. + %
  33758. + % Insert the chapter heading break.
  33759. \pchapsepmacro
  33760. + %
  33761. + % Now the second mark, after the heading break. No break points
  33762. + % between here and the heading.
  33763. + \let\prevchapterdefs=\lastchapterdefs
  33764. + \let\prevsectiondefs=\lastsectiondefs
  33765. + \domark
  33766. + %
  33767. {%
  33768. - \chapfonts \rm
  33769. + \chapfonts \rmisbold
  33770. %
  33771. - % Have to define \thissection before calling \donoderef, because the
  33772. + % Have to define \lastsection before calling \donoderef, because the
  33773. % xref code eventually uses it. On the other hand, it has to be called
  33774. % after \pchapsepmacro, or the headline will change too soon.
  33775. - \gdef\thissection{#1}%
  33776. - \gdef\thischaptername{#1}%
  33777. + \gdef\lastsection{#1}%
  33778. %
  33779. % Only insert the separating space if we have a chapter/appendix
  33780. % number, and don't print the unnumbered ``number''.
  33781. - \def\temptype{#2}%
  33782. \ifx\temptype\Ynothingkeyword
  33783. \setbox0 = \hbox{}%
  33784. \def\toctype{unnchap}%
  33785. - \gdef\thischapternum{}%
  33786. - \gdef\thischapter{#1}%
  33787. \else\ifx\temptype\Yomitfromtockeyword
  33788. \setbox0 = \hbox{}% contents like unnumbered, but no toc entry
  33789. \def\toctype{omit}%
  33790. - \gdef\thischapternum{}%
  33791. - \gdef\thischapter{}%
  33792. \else\ifx\temptype\Yappendixkeyword
  33793. \setbox0 = \hbox{\putwordAppendix{} #3\enspace}%
  33794. \def\toctype{app}%
  33795. - \xdef\thischapternum{\appendixletter}%
  33796. - % We don't substitute the actual chapter name into \thischapter
  33797. - % because we don't want its macros evaluated now. And we don't
  33798. - % use \thissection because that changes with each section.
  33799. - %
  33800. - \xdef\thischapter{\putwordAppendix{} \appendixletter:
  33801. - \noexpand\thischaptername}%
  33802. \else
  33803. \setbox0 = \hbox{#3\enspace}%
  33804. \def\toctype{numchap}%
  33805. - \xdef\thischapternum{\the\chapno}%
  33806. - \xdef\thischapter{\putwordChapter{} \the\chapno:
  33807. - \noexpand\thischaptername}%
  33808. \fi\fi\fi
  33809. %
  33810. % Write the toc entry for this chapter. Must come before the
  33811. @@ -4633,7 +5467,8 @@
  33812. \donoderef{#2}%
  33813. %
  33814. % Typeset the actual heading.
  33815. - \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
  33816. + \nobreak % Avoid page breaks at the interline glue.
  33817. + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright
  33818. \hangindent=\wd0 \centerparametersmaybe
  33819. \unhbox0 #1\par}%
  33820. }%
  33821. @@ -4657,8 +5492,8 @@
  33822. %
  33823. \def\unnchfopen #1{%
  33824. \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
  33825. - \parindent=0pt\raggedright
  33826. - \rm #1\hfill}}\bigskip \par\nobreak
  33827. + \parindent=0pt\ptexraggedright
  33828. + \rmisbold #1\hfill}}\bigskip \par\nobreak
  33829. }
  33830. \def\chfopen #1#2{\chapoddpage {\chapfonts
  33831. \vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
  33832. @@ -4667,7 +5502,7 @@
  33833. \def\centerchfopen #1{%
  33834. \chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
  33835. \parindent=0pt
  33836. - \hfill {\rm #1}\hfill}}\bigskip \par\nobreak
  33837. + \hfill {\rmisbold #1}\hfill}}\bigskip \par\nobreak
  33838. }
  33839. \def\CHAPFopen{%
  33840. \global\let\chapmacro=\chfopen
  33841. @@ -4695,36 +5530,89 @@
  33842. % the section type for xrefs (Ynumbered, Ynothing, Yappendix), #4 is the
  33843. % section number.
  33844. %
  33845. +\def\seckeyword{sec}
  33846. +%
  33847. \def\sectionheading#1#2#3#4{%
  33848. {%
  33849. % Switch to the right set of fonts.
  33850. - \csname #2fonts\endcsname \rm
  33851. + \csname #2fonts\endcsname \rmisbold
  33852. + %
  33853. + \def\sectionlevel{#2}%
  33854. + \def\temptype{#3}%
  33855. + %
  33856. + % Insert first mark before the heading break (see notes for \domark).
  33857. + \let\prevsectiondefs=\lastsectiondefs
  33858. + \ifx\temptype\Ynothingkeyword
  33859. + \ifx\sectionlevel\seckeyword
  33860. + \gdef\lastsectiondefs{\gdef\thissectionname{#1}\gdef\thissectionnum{}%
  33861. + \gdef\thissection{\thissectionname}}%
  33862. + \fi
  33863. + \else\ifx\temptype\Yomitfromtockeyword
  33864. + % Don't redefine \thissection.
  33865. + \else\ifx\temptype\Yappendixkeyword
  33866. + \ifx\sectionlevel\seckeyword
  33867. + \toks0={#1}%
  33868. + \xdef\lastsectiondefs{%
  33869. + \gdef\noexpand\thissectionname{\the\toks0}%
  33870. + \gdef\noexpand\thissectionnum{#4}%
  33871. + % \noexpand\putwordSection avoids expanding indigestible
  33872. + % commands in some of the translations.
  33873. + \gdef\noexpand\thissection{\noexpand\putwordSection{}
  33874. + \noexpand\thissectionnum:
  33875. + \noexpand\thissectionname}%
  33876. + }%
  33877. + \fi
  33878. + \else
  33879. + \ifx\sectionlevel\seckeyword
  33880. + \toks0={#1}%
  33881. + \xdef\lastsectiondefs{%
  33882. + \gdef\noexpand\thissectionname{\the\toks0}%
  33883. + \gdef\noexpand\thissectionnum{#4}%
  33884. + % \noexpand\putwordSection avoids expanding indigestible
  33885. + % commands in some of the translations.
  33886. + \gdef\noexpand\thissection{\noexpand\putwordSection{}
  33887. + \noexpand\thissectionnum:
  33888. + \noexpand\thissectionname}%
  33889. + }%
  33890. + \fi
  33891. + \fi\fi\fi
  33892. + %
  33893. + % Go into vertical mode. Usually we'll already be there, but we
  33894. + % don't want the following whatsit to end up in a preceding paragraph
  33895. + % if the document didn't happen to have a blank line.
  33896. + \par
  33897. + %
  33898. + % Output the mark. Pass it through \safewhatsit, to take care of
  33899. + % the preceding space.
  33900. + \safewhatsit\domark
  33901. %
  33902. % Insert space above the heading.
  33903. \csname #2headingbreak\endcsname
  33904. %
  33905. - % Only insert the space after the number if we have a section number.
  33906. - \def\sectionlevel{#2}%
  33907. - \def\temptype{#3}%
  33908. + % Now the second mark, after the heading break. No break points
  33909. + % between here and the heading.
  33910. + \let\prevsectiondefs=\lastsectiondefs
  33911. + \domark
  33912. %
  33913. + % Only insert the space after the number if we have a section number.
  33914. \ifx\temptype\Ynothingkeyword
  33915. \setbox0 = \hbox{}%
  33916. \def\toctype{unn}%
  33917. - \gdef\thissection{#1}%
  33918. + \gdef\lastsection{#1}%
  33919. \else\ifx\temptype\Yomitfromtockeyword
  33920. % for @headings -- no section number, don't include in toc,
  33921. - % and don't redefine \thissection.
  33922. + % and don't redefine \lastsection.
  33923. \setbox0 = \hbox{}%
  33924. \def\toctype{omit}%
  33925. \let\sectionlevel=\empty
  33926. \else\ifx\temptype\Yappendixkeyword
  33927. \setbox0 = \hbox{#4\enspace}%
  33928. \def\toctype{app}%
  33929. - \gdef\thissection{#1}%
  33930. + \gdef\lastsection{#1}%
  33931. \else
  33932. \setbox0 = \hbox{#4\enspace}%
  33933. \def\toctype{num}%
  33934. - \gdef\thissection{#1}%
  33935. + \gdef\lastsection{#1}%
  33936. \fi\fi\fi
  33937. %
  33938. % Write the toc entry (before \donoderef). See comments in \chapmacro.
  33939. @@ -4743,7 +5631,7 @@
  33940. \nobreak
  33941. %
  33942. % Output the actual section heading.
  33943. - \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
  33944. + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \ptexraggedright
  33945. \hangindent=\wd0 % zero if no section number
  33946. \unhbox0 #1}%
  33947. }%
  33948. @@ -4759,11 +5647,11 @@
  33949. % glue accumulate. (Not a breakpoint because it's preceded by a
  33950. % discardable item.)
  33951. \vskip-\parskip
  33952. - %
  33953. + %
  33954. % This is purely so the last item on the list is a known \penalty >
  33955. % 10000. This is so \startdefun can avoid allowing breakpoints after
  33956. % section headings. Otherwise, it would insert a valid breakpoint between:
  33957. - %
  33958. + %
  33959. % @section sec-whatever
  33960. % @deffn def-whatever
  33961. \penalty 10001
  33962. @@ -4821,7 +5709,7 @@
  33963. % These characters do not print properly in the Computer Modern roman
  33964. % fonts, so we must take special care. This is more or less redundant
  33965. % with the Texinfo input format setup at the end of this file.
  33966. -%
  33967. +%
  33968. \def\activecatcodes{%
  33969. \catcode`\"=\active
  33970. \catcode`\$=\active
  33971. @@ -4839,7 +5727,7 @@
  33972. \def\readtocfile{%
  33973. \setupdatafile
  33974. \activecatcodes
  33975. - \input \jobname.toc
  33976. + \input \tocreadfilename
  33977. }
  33978. \newskip\contentsrightmargin \contentsrightmargin=1in
  33979. @@ -4858,7 +5746,6 @@
  33980. %
  33981. % Don't need to put `Contents' or `Short Contents' in the headline.
  33982. % It is abundantly clear what they are.
  33983. - \def\thischapter{}%
  33984. \chapmacro{#1}{Yomitfromtoc}{}%
  33985. %
  33986. \savepageno = \pageno
  33987. @@ -4870,11 +5757,16 @@
  33988. \ifnum \pageno>0 \global\pageno = \lastnegativepageno \fi
  33989. }
  33990. +% redefined for the two-volume lispref. We always output on
  33991. +% \jobname.toc even if this is redefined.
  33992. +%
  33993. +\def\tocreadfilename{\jobname.toc}
  33994. % Normal (long) toc.
  33995. +%
  33996. \def\contents{%
  33997. \startcontents{\putwordTOC}%
  33998. - \openin 1 \jobname.toc
  33999. + \openin 1 \tocreadfilename\space
  34000. \ifeof 1 \else
  34001. \readtocfile
  34002. \fi
  34003. @@ -4912,7 +5804,7 @@
  34004. \let\numsubsubsecentry = \numsecentry
  34005. \let\appsubsubsecentry = \numsecentry
  34006. \let\unnsubsubsecentry = \numsecentry
  34007. - \openin 1 \jobname.toc
  34008. + \openin 1 \tocreadfilename\space
  34009. \ifeof 1 \else
  34010. \readtocfile
  34011. \fi
  34012. @@ -5037,45 +5929,12 @@
  34013. \message{environments,}
  34014. % @foo ... @end foo.
  34015. -% @point{}, @result{}, @expansion{}, @print{}, @equiv{}.
  34016. -%
  34017. -% Since these characters are used in examples, it should be an even number of
  34018. -% \tt widths. Each \tt character is 1en, so two makes it 1em.
  34019. -%
  34020. -\def\point{$\star$}
  34021. -\def\result{\leavevmode\raise.15ex\hbox to 1em{\hfil$\Rightarrow$\hfil}}
  34022. -\def\expansion{\leavevmode\raise.1ex\hbox to 1em{\hfil$\mapsto$\hfil}}
  34023. -\def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}}
  34024. -\def\equiv{\leavevmode\lower.1ex\hbox to 1em{\hfil$\ptexequiv$\hfil}}
  34025. -
  34026. -% The @error{} command.
  34027. -% Adapted from the TeXbook's \boxit.
  34028. -%
  34029. -\newbox\errorbox
  34030. -%
  34031. -{\tentt \global\dimen0 = 3em}% Width of the box.
  34032. -\dimen2 = .55pt % Thickness of rules
  34033. -% The text. (`r' is open on the right, `e' somewhat less so on the left.)
  34034. -\setbox0 = \hbox{\kern-.75pt \reducedsf error\kern-1.5pt}
  34035. -%
  34036. -\setbox\errorbox=\hbox to \dimen0{\hfil
  34037. - \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
  34038. - \advance\hsize by -2\dimen2 % Rules.
  34039. - \vbox{%
  34040. - \hrule height\dimen2
  34041. - \hbox{\vrule width\dimen2 \kern3pt % Space to left of text.
  34042. - \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below.
  34043. - \kern3pt\vrule width\dimen2}% Space to right.
  34044. - \hrule height\dimen2}
  34045. - \hfil}
  34046. -%
  34047. -\def\error{\leavevmode\lower.7ex\copy\errorbox}
  34048. -
  34049. % @tex ... @end tex escapes into raw Tex temporarily.
  34050. % One exception: @ is still an escape character, so that @end tex works.
  34051. % But \@ or @@ will get a plain tex @ character.
  34052. \envdef\tex{%
  34053. + \setupmarkupstyle{tex}%
  34054. \catcode `\\=0 \catcode `\{=1 \catcode `\}=2
  34055. \catcode `\$=3 \catcode `\&=4 \catcode `\#=6
  34056. \catcode `\^=7 \catcode `\_=8 \catcode `\~=\active \let~=\tie
  34057. @@ -5085,6 +5944,8 @@
  34058. \catcode `\|=\other
  34059. \catcode `\<=\other
  34060. \catcode `\>=\other
  34061. + \catcode`\`=\other
  34062. + \catcode`\'=\other
  34063. \escapechar=`\\
  34064. %
  34065. \let\b=\ptexb
  34066. @@ -5104,6 +5965,7 @@
  34067. \let\/=\ptexslash
  34068. \let\*=\ptexstar
  34069. \let\t=\ptext
  34070. + \expandafter \let\csname top\endcsname=\ptextop % outer
  34071. \let\frenchspacing=\plainfrenchspacing
  34072. %
  34073. \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}%
  34074. @@ -5219,6 +6081,7 @@
  34075. % This macro is called at the beginning of all the @example variants,
  34076. % inside a group.
  34077. +\newdimen\nonfillparindent
  34078. \def\nonfillstart{%
  34079. \aboveenvbreak
  34080. \hfuzz = 12pt % Don't be fussy
  34081. @@ -5226,7 +6089,12 @@
  34082. \let\par = \lisppar % don't ignore blank lines
  34083. \obeylines % each line of input is a line of output
  34084. \parskip = 0pt
  34085. + % Turn off paragraph indentation but redefine \indent to emulate
  34086. + % the normal \indent.
  34087. + \nonfillparindent=\parindent
  34088. \parindent = 0pt
  34089. + \let\indent\nonfillindent
  34090. + %
  34091. \emergencystretch = 0pt % don't try to avoid overfull boxes
  34092. \ifx\nonarrowing\relax
  34093. \advance \leftskip by \lispnarrowing
  34094. @@ -5237,6 +6105,24 @@
  34095. \let\exdent=\nofillexdent
  34096. }
  34097. +\begingroup
  34098. +\obeyspaces
  34099. +% We want to swallow spaces (but not other tokens) after the fake
  34100. +% @indent in our nonfill-environments, where spaces are normally
  34101. +% active and set to @tie, resulting in them not being ignored after
  34102. +% @indent.
  34103. +\gdef\nonfillindent{\futurelet\temp\nonfillindentcheck}%
  34104. +\gdef\nonfillindentcheck{%
  34105. +\ifx\temp %
  34106. +\expandafter\nonfillindentgobble%
  34107. +\else%
  34108. +\leavevmode\nonfillindentbox%
  34109. +\fi%
  34110. +}%
  34111. +\endgroup
  34112. +\def\nonfillindentgobble#1{\nonfillindent}
  34113. +\def\nonfillindentbox{\hbox to \nonfillparindent{\hss}}
  34114. +
  34115. % If you want all examples etc. small: @set dispenvsize small.
  34116. % If you want even small examples the full size: @set dispenvsize nosmall.
  34117. % This affects the following displayed environments:
  34118. @@ -5247,12 +6133,18 @@
  34119. \let\SETdispenvsize\relax
  34120. \def\setnormaldispenv{%
  34121. \ifx\SETdispenvsize\smallword
  34122. + % end paragraph for sake of leading, in case document has no blank
  34123. + % line. This is redundant with what happens in \aboveenvbreak, but
  34124. + % we need to do it before changing the fonts, and it's inconvenient
  34125. + % to change the fonts afterward.
  34126. + \ifnum \lastpenalty=10000 \else \endgraf \fi
  34127. \smallexamplefonts \rm
  34128. \fi
  34129. }
  34130. \def\setsmalldispenv{%
  34131. \ifx\SETdispenvsize\nosmallword
  34132. \else
  34133. + \ifnum \lastpenalty=10000 \else \endgraf \fi
  34134. \smallexamplefonts \rm
  34135. \fi
  34136. }
  34137. @@ -5279,7 +6171,7 @@
  34138. %
  34139. \maketwodispenvs {lisp}{example}{%
  34140. \nonfillstart
  34141. - \tt\quoteexpand
  34142. + \tt\setupmarkupstyle{example}%
  34143. \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special.
  34144. \gobble % eat return
  34145. }
  34146. @@ -5317,12 +6209,36 @@
  34147. \let\Eflushright = \afterenvbreak
  34148. +% @raggedright does more-or-less normal line breaking but no right
  34149. +% justification. From plain.tex.
  34150. +\envdef\raggedright{%
  34151. + \rightskip0pt plus2em \spaceskip.3333em \xspaceskip.5em\relax
  34152. +}
  34153. +\let\Eraggedright\par
  34154. +
  34155. +\envdef\raggedleft{%
  34156. + \parindent=0pt \leftskip0pt plus2em
  34157. + \spaceskip.3333em \xspaceskip.5em \parfillskip=0pt
  34158. + \hbadness=10000 % Last line will usually be underfull, so turn off
  34159. + % badness reporting.
  34160. +}
  34161. +\let\Eraggedleft\par
  34162. +
  34163. +\envdef\raggedcenter{%
  34164. + \parindent=0pt \rightskip0pt plus1em \leftskip0pt plus1em
  34165. + \spaceskip.3333em \xspaceskip.5em \parfillskip=0pt
  34166. + \hbadness=10000 % Last line will usually be underfull, so turn off
  34167. + % badness reporting.
  34168. +}
  34169. +\let\Eraggedcenter\par
  34170. +
  34171. +
  34172. % @quotation does normal linebreaking (hence we can't use \nonfillstart)
  34173. % and narrows the margins. We keep \parskip nonzero in general, since
  34174. % we're doing normal filling. So, when using \aboveenvbreak and
  34175. % \afterenvbreak, temporarily make \parskip 0.
  34176. %
  34177. -\envdef\quotation{%
  34178. +\def\quotationstart{%
  34179. {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip
  34180. \parindent=0pt
  34181. %
  34182. @@ -5337,6 +6253,17 @@
  34183. \parsearg\quotationlabel
  34184. }
  34185. +\envdef\quotation{%
  34186. + \setnormaldispenv
  34187. + \quotationstart
  34188. +}
  34189. +
  34190. +\envdef\smallquotation{%
  34191. + \setsmalldispenv
  34192. + \quotationstart
  34193. +}
  34194. +\let\Esmallquotation = \Equotation
  34195. +
  34196. % We have retained a nonzero parskip for the environment, since we're
  34197. % doing normal filling.
  34198. %
  34199. @@ -5372,18 +6299,16 @@
  34200. \do\ \do\\\do\{\do\}\do\$\do\&%
  34201. \do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~%
  34202. \do\<\do\>\do\|\do\@\do+\do\"%
  34203. + % Don't do the quotes -- if we do, @set txicodequoteundirected and
  34204. + % @set txicodequotebacktick will not have effect on @verb and
  34205. + % @verbatim, and ?` and !` ligatures won't get disabled.
  34206. + %\do\`\do\'%
  34207. }
  34208. %
  34209. % [Knuth] p. 380
  34210. \def\uncatcodespecials{%
  34211. \def\do##1{\catcode`##1=\other}\dospecials}
  34212. %
  34213. -% [Knuth] pp. 380,381,391
  34214. -% Disable Spanish ligatures ?` and !` of \tt font
  34215. -\begingroup
  34216. - \catcode`\`=\active\gdef`{\relax\lq}
  34217. -\endgroup
  34218. -%
  34219. % Setup for the @verb command.
  34220. %
  34221. % Eight spaces for a tab
  34222. @@ -5395,7 +6320,7 @@
  34223. \def\setupverb{%
  34224. \tt % easiest (and conventionally used) font for verbatim
  34225. \def\par{\leavevmode\endgraf}%
  34226. - \catcode`\`=\active
  34227. + \setupmarkupstyle{verb}%
  34228. \tabeightspaces
  34229. % Respect line breaks,
  34230. % print special symbols as themselves, and
  34231. @@ -5410,33 +6335,6 @@
  34232. \newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount
  34233. %
  34234. \def\starttabbox{\setbox0=\hbox\bgroup}
  34235. -
  34236. -% Allow an option to not replace quotes with a regular directed right
  34237. -% quote/apostrophe (char 0x27), but instead use the undirected quote
  34238. -% from cmtt (char 0x0d). The undirected quote is ugly, so don't make it
  34239. -% the default, but it works for pasting with more pdf viewers (at least
  34240. -% evince), the lilypond developers report. xpdf does work with the
  34241. -% regular 0x27.
  34242. -%
  34243. -\def\codequoteright{%
  34244. - \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
  34245. - '%
  34246. - \else
  34247. - \char'15
  34248. - \fi
  34249. -}
  34250. -%
  34251. -% and a similar option for the left quote char vs. a grave accent.
  34252. -% Modern fonts display ASCII 0x60 as a grave accent, so some people like
  34253. -% the code environments to do likewise.
  34254. -%
  34255. -\def\codequoteleft{%
  34256. - \expandafter\ifx\csname SETcodequotebacktick\endcsname\relax
  34257. - `%
  34258. - \else
  34259. - \char'22
  34260. - \fi
  34261. -}
  34262. %
  34263. \begingroup
  34264. \catcode`\^^I=\active
  34265. @@ -5450,13 +6348,6 @@
  34266. \wd0=\dimen0 \box0 \starttabbox
  34267. }%
  34268. }
  34269. - \catcode`\'=\active
  34270. - \gdef\rquoteexpand{\catcode\rquoteChar=\active \def'{\codequoteright}}%
  34271. - %
  34272. - \catcode`\`=\active
  34273. - \gdef\lquoteexpand{\catcode\lquoteChar=\active \def`{\codequoteleft}}%
  34274. - %
  34275. - \gdef\quoteexpand{\rquoteexpand \lquoteexpand}%
  34276. \endgroup
  34277. % start the verbatim environment.
  34278. @@ -5466,9 +6357,8 @@
  34279. % Easiest (and conventionally used) font for verbatim
  34280. \tt
  34281. \def\par{\leavevmode\egroup\box0\endgraf}%
  34282. - \catcode`\`=\active
  34283. \tabexpand
  34284. - \quoteexpand
  34285. + \setupmarkupstyle{verbatim}%
  34286. % Respect line breaks,
  34287. % print special symbols as themselves, and
  34288. % make each space count
  34289. @@ -5528,6 +6418,7 @@
  34290. {%
  34291. \makevalueexpandable
  34292. \setupverbatim
  34293. + \indexnofonts % Allow `@@' and other weird things in file names.
  34294. \input #1
  34295. \afterenvbreak
  34296. }%
  34297. @@ -5553,27 +6444,35 @@
  34298. \endgroup
  34299. }
  34300. +
  34301. \message{defuns,}
  34302. % @defun etc.
  34303. \newskip\defbodyindent \defbodyindent=.4in
  34304. \newskip\defargsindent \defargsindent=50pt
  34305. \newskip\deflastargmargin \deflastargmargin=18pt
  34306. +\newcount\defunpenalty
  34307. % Start the processing of @deffn:
  34308. \def\startdefun{%
  34309. \ifnum\lastpenalty<10000
  34310. \medbreak
  34311. + \defunpenalty=10003 % Will keep this @deffn together with the
  34312. + % following @def command, see below.
  34313. \else
  34314. % If there are two @def commands in a row, we'll have a \nobreak,
  34315. % which is there to keep the function description together with its
  34316. % header. But if there's nothing but headers, we need to allow a
  34317. % break somewhere. Check specifically for penalty 10002, inserted
  34318. - % by \defargscommonending, instead of 10000, since the sectioning
  34319. + % by \printdefunline, instead of 10000, since the sectioning
  34320. % commands also insert a nobreak penalty, and we don't want to allow
  34321. % a break between a section heading and a defun.
  34322. - %
  34323. - \ifnum\lastpenalty=10002 \penalty2000 \fi
  34324. + %
  34325. + % As a minor refinement, we avoid "club" headers by signalling
  34326. + % with penalty of 10003 after the very first @deffn in the
  34327. + % sequence (see above), and penalty of 10002 after any following
  34328. + % @def command.
  34329. + \ifnum\lastpenalty=10002 \penalty2000 \else \defunpenalty=10002 \fi
  34330. %
  34331. % Similarly, after a section heading, do not allow a break.
  34332. % But do insert the glue.
  34333. @@ -5591,7 +6490,7 @@
  34334. %
  34335. % As above, allow line break if we have multiple x headers in a row.
  34336. % It's not a great place, though.
  34337. - \ifnum\lastpenalty=10002 \penalty3000 \fi
  34338. + \ifnum\lastpenalty=10002 \penalty3000 \else \defunpenalty=10002 \fi
  34339. %
  34340. % And now, it's time to reuse the body of the original defun:
  34341. \expandafter\gobbledefun#1%
  34342. @@ -5609,7 +6508,7 @@
  34343. \advance\rightskip by 0pt plus 1fil
  34344. \endgraf
  34345. \nobreak\vskip -\parskip
  34346. - \penalty 10002 % signal to \startdefun and \dodefunx
  34347. + \penalty\defunpenalty % signal to \startdefun and \dodefunx
  34348. % Some of the @defun-type tags do not enable magic parentheses,
  34349. % rendering the following check redundant. But we don't optimize.
  34350. \checkparencounts
  34351. @@ -5619,7 +6518,7 @@
  34352. \def\Edefun{\endgraf\medbreak}
  34353. % \makedefun{deffn} creates \deffn, \deffnx and \Edeffn;
  34354. -% the only thing remainnig is to define \deffnheader.
  34355. +% the only thing remaining is to define \deffnheader.
  34356. %
  34357. \def\makedefun#1{%
  34358. \expandafter\let\csname E#1\endcsname = \Edefun
  34359. @@ -5798,7 +6697,7 @@
  34360. %
  34361. % On the other hand, if an argument has two dashes (for instance), we
  34362. % want a way to get ttsl. Let's try @var for that.
  34363. - \let\var=\ttslanted
  34364. + \def\var##1{{\setupmarkupstyle{var}\ttslanted{##1}}}%
  34365. #1%
  34366. \sl\hyphenchar\font=45
  34367. }
  34368. @@ -5878,12 +6777,14 @@
  34369. \ifnum\parencount=0 \else \badparencount \fi
  34370. \ifnum\brackcount=0 \else \badbrackcount \fi
  34371. }
  34372. +% these should not use \errmessage; the glibc manual, at least, actually
  34373. +% has such constructs (when documenting function pointers).
  34374. \def\badparencount{%
  34375. - \errmessage{Unbalanced parentheses in @def}%
  34376. + \message{Warning: unbalanced parentheses in @def...}%
  34377. \global\parencount=0
  34378. }
  34379. \def\badbrackcount{%
  34380. - \errmessage{Unbalanced square braces in @def}%
  34381. + \message{Warning: unbalanced square brackets in @def...}%
  34382. \global\brackcount=0
  34383. }
  34384. @@ -5950,7 +6851,7 @@
  34385. % This does \let #1 = #2, with \csnames; that is,
  34386. % \let \csname#1\endcsname = \csname#2\endcsname
  34387. % (except of course we have to play expansion games).
  34388. -%
  34389. +%
  34390. \def\cslet#1#2{%
  34391. \expandafter\let
  34392. \csname#1\expandafter\endcsname
  34393. @@ -5978,6 +6879,10 @@
  34394. % all characters are catcode 10, 11 or 12, except \ which is active
  34395. % (as in normal texinfo). It is necessary to change the definition of \.
  34396. +% Non-ASCII encodings make 8-bit characters active, so un-activate
  34397. +% them to avoid their expansion. Must do this non-globally, to
  34398. +% confine the change to the current group.
  34399. +
  34400. % It's necessary to have hard CRs when the macro is executed. This is
  34401. % done by making ^^M (\endlinechar) catcode 12 when reading the macro
  34402. % body, and then making it the \newlinechar in \scanmacro.
  34403. @@ -5992,6 +6897,7 @@
  34404. \catcode`\_=\other
  34405. \catcode`\|=\other
  34406. \catcode`\~=\other
  34407. + \ifx\declaredencoding\ascii \else \setnonasciicharscatcodenonglobal\other \fi
  34408. }
  34409. \def\scanargctxt{%
  34410. @@ -6209,7 +7115,6 @@
  34411. \message{cross references,}
  34412. \newwrite\auxfile
  34413. -
  34414. \newif\ifhavexrefs % True if xref values are known.
  34415. \newif\ifwarnedxrefs % True if we warned once that they aren't known.
  34416. @@ -6254,7 +7159,7 @@
  34417. % \setref{NAME}{SNT} defines a cross-reference point NAME (a node or an
  34418. % anchor), which consists of three parts:
  34419. -% 1) NAME-title - the current sectioning name taken from \thissection,
  34420. +% 1) NAME-title - the current sectioning name taken from \lastsection,
  34421. % or the anchor name.
  34422. % 2) NAME-snt - section number and type, passed as the SNT arg, or
  34423. % empty for anchors.
  34424. @@ -6273,10 +7178,10 @@
  34425. \write\auxfile{@xrdef{#1-% #1 of \setref, expanded by the \edef
  34426. ##1}{##2}}% these are parameters of \writexrdef
  34427. }%
  34428. - \toks0 = \expandafter{\thissection}%
  34429. + \toks0 = \expandafter{\lastsection}%
  34430. \immediate \writexrdef{title}{\the\toks0 }%
  34431. \immediate \writexrdef{snt}{\csname #2\endcsname}% \Ynumbered etc.
  34432. - \writexrdef{pg}{\folio}% will be written later, during \shipout
  34433. + \safewhatsit{\writexrdef{pg}{\folio}}% will be written later, during \shipout
  34434. }%
  34435. \fi
  34436. }
  34437. @@ -6320,22 +7225,25 @@
  34438. %
  34439. % Make link in pdf output.
  34440. \ifpdf
  34441. - \leavevmode
  34442. - \getfilename{#4}%
  34443. - {\turnoffactive
  34444. + {\indexnofonts
  34445. + \turnoffactive
  34446. + % This expands tokens, so do it after making catcode changes, so _
  34447. + % etc. don't get their TeX definitions.
  34448. + \getfilename{#4}%
  34449. + %
  34450. % See comments at \activebackslashdouble.
  34451. {\activebackslashdouble \xdef\pdfxrefdest{#1}%
  34452. \backslashparens\pdfxrefdest}%
  34453. %
  34454. + \leavevmode
  34455. + \startlink attr{/Border [0 0 0]}%
  34456. \ifnum\filenamelength>0
  34457. - \startlink attr{/Border [0 0 0]}%
  34458. - goto file{\the\filename.pdf} name{\pdfxrefdest}%
  34459. + goto file{\the\filename.pdf} name{\pdfxrefdest}%
  34460. \else
  34461. - \startlink attr{/Border [0 0 0]}%
  34462. - goto name{\pdfmkpgn{\pdfxrefdest}}%
  34463. + goto name{\pdfmkpgn{\pdfxrefdest}}%
  34464. \fi
  34465. }%
  34466. - \linkcolor
  34467. + \setcolor{\linkcolor}%
  34468. \fi
  34469. %
  34470. % Float references are printed completely differently: "Figure 1.2"
  34471. @@ -6373,7 +7281,7 @@
  34472. % is a loss. Therefore, we give the text of the node name again, so it
  34473. % is as if TeX is seeing it for the first time.
  34474. \ifdim \wd1 > 0pt
  34475. - \putwordsection{} ``\printedrefname'' \putwordin{} \cite{\printedmanual}%
  34476. + \putwordSection{} ``\printedrefname'' \putwordin{} \cite{\printedmanual}%
  34477. \else
  34478. % _ (for example) has to be the character _ for the purposes of the
  34479. % control sequence corresponding to the node, but it has to expand
  34480. @@ -6469,10 +7377,18 @@
  34481. % collisions). But if this is a float type, we have more work to do.
  34482. %
  34483. \def\xrdef#1#2{%
  34484. - \expandafter\gdef\csname XR#1\endcsname{#2}% remember this xref value.
  34485. + {% The node name might contain 8-bit characters, which in our current
  34486. + % implementation are changed to commands like @'e. Don't let these
  34487. + % mess up the control sequence name.
  34488. + \indexnofonts
  34489. + \turnoffactive
  34490. + \xdef\safexrefname{#1}%
  34491. + }%
  34492. + %
  34493. + \expandafter\gdef\csname XR\safexrefname\endcsname{#2}% remember this xref
  34494. %
  34495. % Was that xref control sequence that we just defined for a float?
  34496. - \expandafter\iffloat\csname XR#1\endcsname
  34497. + \expandafter\iffloat\csname XR\safexrefname\endcsname
  34498. % it was a float, and we have the (safe) float type in \iffloattype.
  34499. \expandafter\let\expandafter\floatlist
  34500. \csname floatlist\iffloattype\endcsname
  34501. @@ -6487,7 +7403,8 @@
  34502. %
  34503. % Remember this xref in the control sequence \floatlistFLOATTYPE,
  34504. % for later use in \listoffloats.
  34505. - \expandafter\xdef\csname floatlist\iffloattype\endcsname{\the\toks0{#1}}%
  34506. + \expandafter\xdef\csname floatlist\iffloattype\endcsname{\the\toks0
  34507. + {\safexrefname}}%
  34508. \fi
  34509. }
  34510. @@ -6591,6 +7508,7 @@
  34511. \input\jobname.#1
  34512. \endgroup}
  34513. +
  34514. \message{insertions,}
  34515. % including footnotes.
  34516. @@ -6673,7 +7591,7 @@
  34517. % In case a @footnote appears in a vbox, save the footnote text and create
  34518. % the real \insert just after the vbox finished. Otherwise, the insertion
  34519. % would be lost.
  34520. -% Similarily, if a @footnote appears inside an alignment, save the footnote
  34521. +% Similarly, if a @footnote appears inside an alignment, save the footnote
  34522. % text to a box and make the \insert when a row of the table is finished.
  34523. % And the same can be done for other insert classes. --kasal, 16nov03.
  34524. @@ -6777,15 +7695,19 @@
  34525. % If the image is by itself, center it.
  34526. \ifvmode
  34527. \imagevmodetrue
  34528. - \nobreak\bigskip
  34529. + \nobreak\medskip
  34530. % Usually we'll have text after the image which will insert
  34531. % \parskip glue, so insert it here too to equalize the space
  34532. % above and below.
  34533. \nobreak\vskip\parskip
  34534. \nobreak
  34535. - \line\bgroup
  34536. \fi
  34537. %
  34538. + % Leave vertical mode so that indentation from an enclosing
  34539. + % environment such as @quotation is respected. On the other hand, if
  34540. + % it's at the top level, we don't want the normal paragraph indentation.
  34541. + \noindent
  34542. + %
  34543. % Output the image.
  34544. \ifpdf
  34545. \dopdfimage{#1}{#2}{#3}%
  34546. @@ -6796,7 +7718,7 @@
  34547. \epsfbox{#1.eps}%
  34548. \fi
  34549. %
  34550. - \ifimagevmode \egroup \bigbreak \fi % space after the image
  34551. + \ifimagevmode \medskip \fi % space after the standalone image
  34552. \endgroup}
  34553. @@ -6863,13 +7785,13 @@
  34554. \global\advance\floatno by 1
  34555. %
  34556. {%
  34557. - % This magic value for \thissection is output by \setref as the
  34558. + % This magic value for \lastsection is output by \setref as the
  34559. % XREFLABEL-title value. \xrefX uses it to distinguish float
  34560. % labels (which have a completely different output format) from
  34561. % node and anchor labels. And \xrdef uses it to construct the
  34562. % lists of floats.
  34563. %
  34564. - \edef\thissection{\floatmagic=\safefloattype}%
  34565. + \edef\lastsection{\floatmagic=\safefloattype}%
  34566. \setref{\floatlabel}{Yfloat}%
  34567. }%
  34568. \fi
  34569. @@ -7004,7 +7926,7 @@
  34570. % #1 is the control sequence we are passed; we expand into a conditional
  34571. % which is true if #1 represents a float ref. That is, the magic
  34572. -% \thissection value which we \setref above.
  34573. +% \lastsection value which we \setref above.
  34574. %
  34575. \def\iffloat#1{\expandafter\doiffloat#1==\finish}
  34576. %
  34577. @@ -7065,39 +7987,909 @@
  34578. \writeentry
  34579. }}
  34580. +
  34581. \message{localization,}
  34582. -% and i18n.
  34583. -% @documentlanguage is usually given very early, just after
  34584. -% @setfilename. If done too late, it may not override everything
  34585. -% properly. Single argument is the language abbreviation.
  34586. -% It would be nice if we could set up a hyphenation file here.
  34587. +% For single-language documents, @documentlanguage is usually given very
  34588. +% early, just after @documentencoding. Single argument is the language
  34589. +% (de) or locale (de_DE) abbreviation.
  34590. %
  34591. -\parseargdef\documentlanguage{%
  34592. +{
  34593. + \catcode`\_ = \active
  34594. + \globaldefs=1
  34595. +\parseargdef\documentlanguage{\begingroup
  34596. + \let_=\normalunderscore % normal _ character for filenames
  34597. \tex % read txi-??.tex file in plain TeX.
  34598. - % Read the file if it exists.
  34599. + % Read the file by the name they passed if it exists.
  34600. \openin 1 txi-#1.tex
  34601. \ifeof 1
  34602. - \errhelp = \nolanghelp
  34603. - \errmessage{Cannot read language file txi-#1.tex}%
  34604. + \documentlanguagetrywithoutunderscore{#1_\finish}%
  34605. \else
  34606. + \globaldefs = 1 % everything in the txi-LL files needs to persist
  34607. \input txi-#1.tex
  34608. \fi
  34609. \closein 1
  34610. - \endgroup
  34611. + \endgroup % end raw TeX
  34612. +\endgroup}
  34613. +%
  34614. +% If they passed de_DE, and txi-de_DE.tex doesn't exist,
  34615. +% try txi-de.tex.
  34616. +%
  34617. +\gdef\documentlanguagetrywithoutunderscore#1_#2\finish{%
  34618. + \openin 1 txi-#1.tex
  34619. + \ifeof 1
  34620. + \errhelp = \nolanghelp
  34621. + \errmessage{Cannot read language file txi-#1.tex}%
  34622. + \else
  34623. + \globaldefs = 1 % everything in the txi-LL files needs to persist
  34624. + \input txi-#1.tex
  34625. + \fi
  34626. + \closein 1
  34627. }
  34628. +}% end of special _ catcode
  34629. +%
  34630. \newhelp\nolanghelp{The given language definition file cannot be found or
  34631. -is empty. Maybe you need to install it? In the current directory
  34632. -should work if nowhere else does.}
  34633. +is empty. Maybe you need to install it? Putting it in the current
  34634. +directory should work if nowhere else does.}
  34635. +
  34636. +% This macro is called from txi-??.tex files; the first argument is the
  34637. +% \language name to set (without the "\lang@" prefix), the second and
  34638. +% third args are \{left,right}hyphenmin.
  34639. +%
  34640. +% The language names to pass are determined when the format is built.
  34641. +% See the etex.log file created at that time, e.g.,
  34642. +% /usr/local/texlive/2008/texmf-var/web2c/pdftex/etex.log.
  34643. +%
  34644. +% With TeX Live 2008, etex now includes hyphenation patterns for all
  34645. +% available languages. This means we can support hyphenation in
  34646. +% Texinfo, at least to some extent. (This still doesn't solve the
  34647. +% accented characters problem.)
  34648. +%
  34649. +\catcode`@=11
  34650. +\def\txisetlanguage#1#2#3{%
  34651. + % do not set the language if the name is undefined in the current TeX.
  34652. + \expandafter\ifx\csname lang@#1\endcsname \relax
  34653. + \message{no patterns for #1}%
  34654. + \else
  34655. + \global\language = \csname lang@#1\endcsname
  34656. + \fi
  34657. + % but there is no harm in adjusting the hyphenmin values regardless.
  34658. + \global\lefthyphenmin = #2\relax
  34659. + \global\righthyphenmin = #3\relax
  34660. +}
  34661. +
  34662. +% Helpers for encodings.
  34663. +% Set the catcode of characters 128 through 255 to the specified number.
  34664. +%
  34665. +\def\setnonasciicharscatcode#1{%
  34666. + \count255=128
  34667. + \loop\ifnum\count255<256
  34668. + \global\catcode\count255=#1\relax
  34669. + \advance\count255 by 1
  34670. + \repeat
  34671. +}
  34672. +
  34673. +\def\setnonasciicharscatcodenonglobal#1{%
  34674. + \count255=128
  34675. + \loop\ifnum\count255<256
  34676. + \catcode\count255=#1\relax
  34677. + \advance\count255 by 1
  34678. + \repeat
  34679. +}
  34680. +
  34681. +% @documentencoding sets the definition of non-ASCII characters
  34682. +% according to the specified encoding.
  34683. +%
  34684. +\parseargdef\documentencoding{%
  34685. + % Encoding being declared for the document.
  34686. + \def\declaredencoding{\csname #1.enc\endcsname}%
  34687. + %
  34688. + % Supported encodings: names converted to tokens in order to be able
  34689. + % to compare them with \ifx.
  34690. + \def\ascii{\csname US-ASCII.enc\endcsname}%
  34691. + \def\latnine{\csname ISO-8859-15.enc\endcsname}%
  34692. + \def\latone{\csname ISO-8859-1.enc\endcsname}%
  34693. + \def\lattwo{\csname ISO-8859-2.enc\endcsname}%
  34694. + \def\utfeight{\csname UTF-8.enc\endcsname}%
  34695. + %
  34696. + \ifx \declaredencoding \ascii
  34697. + \asciichardefs
  34698. + %
  34699. + \else \ifx \declaredencoding \lattwo
  34700. + \setnonasciicharscatcode\active
  34701. + \lattwochardefs
  34702. + %
  34703. + \else \ifx \declaredencoding \latone
  34704. + \setnonasciicharscatcode\active
  34705. + \latonechardefs
  34706. + %
  34707. + \else \ifx \declaredencoding \latnine
  34708. + \setnonasciicharscatcode\active
  34709. + \latninechardefs
  34710. + %
  34711. + \else \ifx \declaredencoding \utfeight
  34712. + \setnonasciicharscatcode\active
  34713. + \utfeightchardefs
  34714. + %
  34715. + \else
  34716. + \message{Unknown document encoding #1, ignoring.}%
  34717. + %
  34718. + \fi % utfeight
  34719. + \fi % latnine
  34720. + \fi % latone
  34721. + \fi % lattwo
  34722. + \fi % ascii
  34723. +}
  34724. +
  34725. +% A message to be logged when using a character that isn't available
  34726. +% the default font encoding (OT1).
  34727. +%
  34728. +\def\missingcharmsg#1{\message{Character missing in OT1 encoding: #1.}}
  34729. +
  34730. +% Take account of \c (plain) vs. \, (Texinfo) difference.
  34731. +\def\cedilla#1{\ifx\c\ptexc\c{#1}\else\,{#1}\fi}
  34732. +
  34733. +% First, make active non-ASCII characters in order for them to be
  34734. +% correctly categorized when TeX reads the replacement text of
  34735. +% macros containing the character definitions.
  34736. +\setnonasciicharscatcode\active
  34737. +%
  34738. +% Latin1 (ISO-8859-1) character definitions.
  34739. +\def\latonechardefs{%
  34740. + \gdef^^a0{~}
  34741. + \gdef^^a1{\exclamdown}
  34742. + \gdef^^a2{\missingcharmsg{CENT SIGN}}
  34743. + \gdef^^a3{{\pounds}}
  34744. + \gdef^^a4{\missingcharmsg{CURRENCY SIGN}}
  34745. + \gdef^^a5{\missingcharmsg{YEN SIGN}}
  34746. + \gdef^^a6{\missingcharmsg{BROKEN BAR}}
  34747. + \gdef^^a7{\S}
  34748. + \gdef^^a8{\"{}}
  34749. + \gdef^^a9{\copyright}
  34750. + \gdef^^aa{\ordf}
  34751. + \gdef^^ab{\guillemetleft}
  34752. + \gdef^^ac{$\lnot$}
  34753. + \gdef^^ad{\-}
  34754. + \gdef^^ae{\registeredsymbol}
  34755. + \gdef^^af{\={}}
  34756. + %
  34757. + \gdef^^b0{\textdegree}
  34758. + \gdef^^b1{$\pm$}
  34759. + \gdef^^b2{$^2$}
  34760. + \gdef^^b3{$^3$}
  34761. + \gdef^^b4{\'{}}
  34762. + \gdef^^b5{$\mu$}
  34763. + \gdef^^b6{\P}
  34764. + %
  34765. + \gdef^^b7{$^.$}
  34766. + \gdef^^b8{\cedilla\ }
  34767. + \gdef^^b9{$^1$}
  34768. + \gdef^^ba{\ordm}
  34769. + %
  34770. + \gdef^^bb{\guilletright}
  34771. + \gdef^^bc{$1\over4$}
  34772. + \gdef^^bd{$1\over2$}
  34773. + \gdef^^be{$3\over4$}
  34774. + \gdef^^bf{\questiondown}
  34775. + %
  34776. + \gdef^^c0{\`A}
  34777. + \gdef^^c1{\'A}
  34778. + \gdef^^c2{\^A}
  34779. + \gdef^^c3{\~A}
  34780. + \gdef^^c4{\"A}
  34781. + \gdef^^c5{\ringaccent A}
  34782. + \gdef^^c6{\AE}
  34783. + \gdef^^c7{\cedilla C}
  34784. + \gdef^^c8{\`E}
  34785. + \gdef^^c9{\'E}
  34786. + \gdef^^ca{\^E}
  34787. + \gdef^^cb{\"E}
  34788. + \gdef^^cc{\`I}
  34789. + \gdef^^cd{\'I}
  34790. + \gdef^^ce{\^I}
  34791. + \gdef^^cf{\"I}
  34792. + %
  34793. + \gdef^^d0{\DH}
  34794. + \gdef^^d1{\~N}
  34795. + \gdef^^d2{\`O}
  34796. + \gdef^^d3{\'O}
  34797. + \gdef^^d4{\^O}
  34798. + \gdef^^d5{\~O}
  34799. + \gdef^^d6{\"O}
  34800. + \gdef^^d7{$\times$}
  34801. + \gdef^^d8{\O}
  34802. + \gdef^^d9{\`U}
  34803. + \gdef^^da{\'U}
  34804. + \gdef^^db{\^U}
  34805. + \gdef^^dc{\"U}
  34806. + \gdef^^dd{\'Y}
  34807. + \gdef^^de{\TH}
  34808. + \gdef^^df{\ss}
  34809. + %
  34810. + \gdef^^e0{\`a}
  34811. + \gdef^^e1{\'a}
  34812. + \gdef^^e2{\^a}
  34813. + \gdef^^e3{\~a}
  34814. + \gdef^^e4{\"a}
  34815. + \gdef^^e5{\ringaccent a}
  34816. + \gdef^^e6{\ae}
  34817. + \gdef^^e7{\cedilla c}
  34818. + \gdef^^e8{\`e}
  34819. + \gdef^^e9{\'e}
  34820. + \gdef^^ea{\^e}
  34821. + \gdef^^eb{\"e}
  34822. + \gdef^^ec{\`{\dotless i}}
  34823. + \gdef^^ed{\'{\dotless i}}
  34824. + \gdef^^ee{\^{\dotless i}}
  34825. + \gdef^^ef{\"{\dotless i}}
  34826. + %
  34827. + \gdef^^f0{\dh}
  34828. + \gdef^^f1{\~n}
  34829. + \gdef^^f2{\`o}
  34830. + \gdef^^f3{\'o}
  34831. + \gdef^^f4{\^o}
  34832. + \gdef^^f5{\~o}
  34833. + \gdef^^f6{\"o}
  34834. + \gdef^^f7{$\div$}
  34835. + \gdef^^f8{\o}
  34836. + \gdef^^f9{\`u}
  34837. + \gdef^^fa{\'u}
  34838. + \gdef^^fb{\^u}
  34839. + \gdef^^fc{\"u}
  34840. + \gdef^^fd{\'y}
  34841. + \gdef^^fe{\th}
  34842. + \gdef^^ff{\"y}
  34843. +}
  34844. +
  34845. +% Latin9 (ISO-8859-15) encoding character definitions.
  34846. +\def\latninechardefs{%
  34847. + % Encoding is almost identical to Latin1.
  34848. + \latonechardefs
  34849. + %
  34850. + \gdef^^a4{\euro}
  34851. + \gdef^^a6{\v S}
  34852. + \gdef^^a8{\v s}
  34853. + \gdef^^b4{\v Z}
  34854. + \gdef^^b8{\v z}
  34855. + \gdef^^bc{\OE}
  34856. + \gdef^^bd{\oe}
  34857. + \gdef^^be{\"Y}
  34858. +}
  34859. +
  34860. +% Latin2 (ISO-8859-2) character definitions.
  34861. +\def\lattwochardefs{%
  34862. + \gdef^^a0{~}
  34863. + \gdef^^a1{\ogonek{A}}
  34864. + \gdef^^a2{\u{}}
  34865. + \gdef^^a3{\L}
  34866. + \gdef^^a4{\missingcharmsg{CURRENCY SIGN}}
  34867. + \gdef^^a5{\v L}
  34868. + \gdef^^a6{\'S}
  34869. + \gdef^^a7{\S}
  34870. + \gdef^^a8{\"{}}
  34871. + \gdef^^a9{\v S}
  34872. + \gdef^^aa{\cedilla S}
  34873. + \gdef^^ab{\v T}
  34874. + \gdef^^ac{\'Z}
  34875. + \gdef^^ad{\-}
  34876. + \gdef^^ae{\v Z}
  34877. + \gdef^^af{\dotaccent Z}
  34878. + %
  34879. + \gdef^^b0{\textdegree}
  34880. + \gdef^^b1{\ogonek{a}}
  34881. + \gdef^^b2{\ogonek{ }}
  34882. + \gdef^^b3{\l}
  34883. + \gdef^^b4{\'{}}
  34884. + \gdef^^b5{\v l}
  34885. + \gdef^^b6{\'s}
  34886. + \gdef^^b7{\v{}}
  34887. + \gdef^^b8{\cedilla\ }
  34888. + \gdef^^b9{\v s}
  34889. + \gdef^^ba{\cedilla s}
  34890. + \gdef^^bb{\v t}
  34891. + \gdef^^bc{\'z}
  34892. + \gdef^^bd{\H{}}
  34893. + \gdef^^be{\v z}
  34894. + \gdef^^bf{\dotaccent z}
  34895. + %
  34896. + \gdef^^c0{\'R}
  34897. + \gdef^^c1{\'A}
  34898. + \gdef^^c2{\^A}
  34899. + \gdef^^c3{\u A}
  34900. + \gdef^^c4{\"A}
  34901. + \gdef^^c5{\'L}
  34902. + \gdef^^c6{\'C}
  34903. + \gdef^^c7{\cedilla C}
  34904. + \gdef^^c8{\v C}
  34905. + \gdef^^c9{\'E}
  34906. + \gdef^^ca{\ogonek{E}}
  34907. + \gdef^^cb{\"E}
  34908. + \gdef^^cc{\v E}
  34909. + \gdef^^cd{\'I}
  34910. + \gdef^^ce{\^I}
  34911. + \gdef^^cf{\v D}
  34912. + %
  34913. + \gdef^^d0{\DH}
  34914. + \gdef^^d1{\'N}
  34915. + \gdef^^d2{\v N}
  34916. + \gdef^^d3{\'O}
  34917. + \gdef^^d4{\^O}
  34918. + \gdef^^d5{\H O}
  34919. + \gdef^^d6{\"O}
  34920. + \gdef^^d7{$\times$}
  34921. + \gdef^^d8{\v R}
  34922. + \gdef^^d9{\ringaccent U}
  34923. + \gdef^^da{\'U}
  34924. + \gdef^^db{\H U}
  34925. + \gdef^^dc{\"U}
  34926. + \gdef^^dd{\'Y}
  34927. + \gdef^^de{\cedilla T}
  34928. + \gdef^^df{\ss}
  34929. + %
  34930. + \gdef^^e0{\'r}
  34931. + \gdef^^e1{\'a}
  34932. + \gdef^^e2{\^a}
  34933. + \gdef^^e3{\u a}
  34934. + \gdef^^e4{\"a}
  34935. + \gdef^^e5{\'l}
  34936. + \gdef^^e6{\'c}
  34937. + \gdef^^e7{\cedilla c}
  34938. + \gdef^^e8{\v c}
  34939. + \gdef^^e9{\'e}
  34940. + \gdef^^ea{\ogonek{e}}
  34941. + \gdef^^eb{\"e}
  34942. + \gdef^^ec{\v e}
  34943. + \gdef^^ed{\'\i}
  34944. + \gdef^^ee{\^\i}
  34945. + \gdef^^ef{\v d}
  34946. + %
  34947. + \gdef^^f0{\dh}
  34948. + \gdef^^f1{\'n}
  34949. + \gdef^^f2{\v n}
  34950. + \gdef^^f3{\'o}
  34951. + \gdef^^f4{\^o}
  34952. + \gdef^^f5{\H o}
  34953. + \gdef^^f6{\"o}
  34954. + \gdef^^f7{$\div$}
  34955. + \gdef^^f8{\v r}
  34956. + \gdef^^f9{\ringaccent u}
  34957. + \gdef^^fa{\'u}
  34958. + \gdef^^fb{\H u}
  34959. + \gdef^^fc{\"u}
  34960. + \gdef^^fd{\'y}
  34961. + \gdef^^fe{\cedilla t}
  34962. + \gdef^^ff{\dotaccent{}}
  34963. +}
  34964. +
  34965. +% UTF-8 character definitions.
  34966. +%
  34967. +% This code to support UTF-8 is based on LaTeX's utf8.def, with some
  34968. +% changes for Texinfo conventions. It is included here under the GPL by
  34969. +% permission from Frank Mittelbach and the LaTeX team.
  34970. +%
  34971. +\newcount\countUTFx
  34972. +\newcount\countUTFy
  34973. +\newcount\countUTFz
  34974. +
  34975. +\gdef\UTFviiiTwoOctets#1#2{\expandafter
  34976. + \UTFviiiDefined\csname u8:#1\string #2\endcsname}
  34977. +%
  34978. +\gdef\UTFviiiThreeOctets#1#2#3{\expandafter
  34979. + \UTFviiiDefined\csname u8:#1\string #2\string #3\endcsname}
  34980. +%
  34981. +\gdef\UTFviiiFourOctets#1#2#3#4{\expandafter
  34982. + \UTFviiiDefined\csname u8:#1\string #2\string #3\string #4\endcsname}
  34983. +\gdef\UTFviiiDefined#1{%
  34984. + \ifx #1\relax
  34985. + \message{\linenumber Unicode char \string #1 not defined for Texinfo}%
  34986. + \else
  34987. + \expandafter #1%
  34988. + \fi
  34989. +}
  34990. +
  34991. +\begingroup
  34992. + \catcode`\~13
  34993. + \catcode`\"12
  34994. +
  34995. + \def\UTFviiiLoop{%
  34996. + \global\catcode\countUTFx\active
  34997. + \uccode`\~\countUTFx
  34998. + \uppercase\expandafter{\UTFviiiTmp}%
  34999. + \advance\countUTFx by 1
  35000. + \ifnum\countUTFx < \countUTFy
  35001. + \expandafter\UTFviiiLoop
  35002. + \fi}
  35003. +
  35004. + \countUTFx = "C2
  35005. + \countUTFy = "E0
  35006. + \def\UTFviiiTmp{%
  35007. + \xdef~{\noexpand\UTFviiiTwoOctets\string~}}
  35008. + \UTFviiiLoop
  35009. +
  35010. + \countUTFx = "E0
  35011. + \countUTFy = "F0
  35012. + \def\UTFviiiTmp{%
  35013. + \xdef~{\noexpand\UTFviiiThreeOctets\string~}}
  35014. + \UTFviiiLoop
  35015. +
  35016. + \countUTFx = "F0
  35017. + \countUTFy = "F4
  35018. + \def\UTFviiiTmp{%
  35019. + \xdef~{\noexpand\UTFviiiFourOctets\string~}}
  35020. + \UTFviiiLoop
  35021. +\endgroup
  35022. +
  35023. +\begingroup
  35024. + \catcode`\"=12
  35025. + \catcode`\<=12
  35026. + \catcode`\.=12
  35027. + \catcode`\,=12
  35028. + \catcode`\;=12
  35029. + \catcode`\!=12
  35030. + \catcode`\~=13
  35031. +
  35032. + \gdef\DeclareUnicodeCharacter#1#2{%
  35033. + \countUTFz = "#1\relax
  35034. + \wlog{\space\space defining Unicode char U+#1 (decimal \the\countUTFz)}%
  35035. + \begingroup
  35036. + \parseXMLCharref
  35037. + \def\UTFviiiTwoOctets##1##2{%
  35038. + \csname u8:##1\string ##2\endcsname}%
  35039. + \def\UTFviiiThreeOctets##1##2##3{%
  35040. + \csname u8:##1\string ##2\string ##3\endcsname}%
  35041. + \def\UTFviiiFourOctets##1##2##3##4{%
  35042. + \csname u8:##1\string ##2\string ##3\string ##4\endcsname}%
  35043. + \expandafter\expandafter\expandafter\expandafter
  35044. + \expandafter\expandafter\expandafter
  35045. + \gdef\UTFviiiTmp{#2}%
  35046. + \endgroup}
  35047. -% @documentencoding should change something in TeX eventually, most
  35048. -% likely, but for now just recognize it.
  35049. -\let\documentencoding = \comment
  35050. + \gdef\parseXMLCharref{%
  35051. + \ifnum\countUTFz < "A0\relax
  35052. + \errhelp = \EMsimple
  35053. + \errmessage{Cannot define Unicode char value < 00A0}%
  35054. + \else\ifnum\countUTFz < "800\relax
  35055. + \parseUTFviiiA,%
  35056. + \parseUTFviiiB C\UTFviiiTwoOctets.,%
  35057. + \else\ifnum\countUTFz < "10000\relax
  35058. + \parseUTFviiiA;%
  35059. + \parseUTFviiiA,%
  35060. + \parseUTFviiiB E\UTFviiiThreeOctets.{,;}%
  35061. + \else
  35062. + \parseUTFviiiA;%
  35063. + \parseUTFviiiA,%
  35064. + \parseUTFviiiA!%
  35065. + \parseUTFviiiB F\UTFviiiFourOctets.{!,;}%
  35066. + \fi\fi\fi
  35067. + }
  35068. + \gdef\parseUTFviiiA#1{%
  35069. + \countUTFx = \countUTFz
  35070. + \divide\countUTFz by 64
  35071. + \countUTFy = \countUTFz
  35072. + \multiply\countUTFz by 64
  35073. + \advance\countUTFx by -\countUTFz
  35074. + \advance\countUTFx by 128
  35075. + \uccode `#1\countUTFx
  35076. + \countUTFz = \countUTFy}
  35077. +
  35078. + \gdef\parseUTFviiiB#1#2#3#4{%
  35079. + \advance\countUTFz by "#10\relax
  35080. + \uccode `#3\countUTFz
  35081. + \uppercase{\gdef\UTFviiiTmp{#2#3#4}}}
  35082. +\endgroup
  35083. -% Page size parameters.
  35084. +\def\utfeightchardefs{%
  35085. + \DeclareUnicodeCharacter{00A0}{\tie}
  35086. + \DeclareUnicodeCharacter{00A1}{\exclamdown}
  35087. + \DeclareUnicodeCharacter{00A3}{\pounds}
  35088. + \DeclareUnicodeCharacter{00A8}{\"{ }}
  35089. + \DeclareUnicodeCharacter{00A9}{\copyright}
  35090. + \DeclareUnicodeCharacter{00AA}{\ordf}
  35091. + \DeclareUnicodeCharacter{00AB}{\guillemetleft}
  35092. + \DeclareUnicodeCharacter{00AD}{\-}
  35093. + \DeclareUnicodeCharacter{00AE}{\registeredsymbol}
  35094. + \DeclareUnicodeCharacter{00AF}{\={ }}
  35095. +
  35096. + \DeclareUnicodeCharacter{00B0}{\ringaccent{ }}
  35097. + \DeclareUnicodeCharacter{00B4}{\'{ }}
  35098. + \DeclareUnicodeCharacter{00B8}{\cedilla{ }}
  35099. + \DeclareUnicodeCharacter{00BA}{\ordm}
  35100. + \DeclareUnicodeCharacter{00BB}{\guillemetright}
  35101. + \DeclareUnicodeCharacter{00BF}{\questiondown}
  35102. +
  35103. + \DeclareUnicodeCharacter{00C0}{\`A}
  35104. + \DeclareUnicodeCharacter{00C1}{\'A}
  35105. + \DeclareUnicodeCharacter{00C2}{\^A}
  35106. + \DeclareUnicodeCharacter{00C3}{\~A}
  35107. + \DeclareUnicodeCharacter{00C4}{\"A}
  35108. + \DeclareUnicodeCharacter{00C5}{\AA}
  35109. + \DeclareUnicodeCharacter{00C6}{\AE}
  35110. + \DeclareUnicodeCharacter{00C7}{\cedilla{C}}
  35111. + \DeclareUnicodeCharacter{00C8}{\`E}
  35112. + \DeclareUnicodeCharacter{00C9}{\'E}
  35113. + \DeclareUnicodeCharacter{00CA}{\^E}
  35114. + \DeclareUnicodeCharacter{00CB}{\"E}
  35115. + \DeclareUnicodeCharacter{00CC}{\`I}
  35116. + \DeclareUnicodeCharacter{00CD}{\'I}
  35117. + \DeclareUnicodeCharacter{00CE}{\^I}
  35118. + \DeclareUnicodeCharacter{00CF}{\"I}
  35119. +
  35120. + \DeclareUnicodeCharacter{00D0}{\DH}
  35121. + \DeclareUnicodeCharacter{00D1}{\~N}
  35122. + \DeclareUnicodeCharacter{00D2}{\`O}
  35123. + \DeclareUnicodeCharacter{00D3}{\'O}
  35124. + \DeclareUnicodeCharacter{00D4}{\^O}
  35125. + \DeclareUnicodeCharacter{00D5}{\~O}
  35126. + \DeclareUnicodeCharacter{00D6}{\"O}
  35127. + \DeclareUnicodeCharacter{00D8}{\O}
  35128. + \DeclareUnicodeCharacter{00D9}{\`U}
  35129. + \DeclareUnicodeCharacter{00DA}{\'U}
  35130. + \DeclareUnicodeCharacter{00DB}{\^U}
  35131. + \DeclareUnicodeCharacter{00DC}{\"U}
  35132. + \DeclareUnicodeCharacter{00DD}{\'Y}
  35133. + \DeclareUnicodeCharacter{00DE}{\TH}
  35134. + \DeclareUnicodeCharacter{00DF}{\ss}
  35135. +
  35136. + \DeclareUnicodeCharacter{00E0}{\`a}
  35137. + \DeclareUnicodeCharacter{00E1}{\'a}
  35138. + \DeclareUnicodeCharacter{00E2}{\^a}
  35139. + \DeclareUnicodeCharacter{00E3}{\~a}
  35140. + \DeclareUnicodeCharacter{00E4}{\"a}
  35141. + \DeclareUnicodeCharacter{00E5}{\aa}
  35142. + \DeclareUnicodeCharacter{00E6}{\ae}
  35143. + \DeclareUnicodeCharacter{00E7}{\cedilla{c}}
  35144. + \DeclareUnicodeCharacter{00E8}{\`e}
  35145. + \DeclareUnicodeCharacter{00E9}{\'e}
  35146. + \DeclareUnicodeCharacter{00EA}{\^e}
  35147. + \DeclareUnicodeCharacter{00EB}{\"e}
  35148. + \DeclareUnicodeCharacter{00EC}{\`{\dotless{i}}}
  35149. + \DeclareUnicodeCharacter{00ED}{\'{\dotless{i}}}
  35150. + \DeclareUnicodeCharacter{00EE}{\^{\dotless{i}}}
  35151. + \DeclareUnicodeCharacter{00EF}{\"{\dotless{i}}}
  35152. +
  35153. + \DeclareUnicodeCharacter{00F0}{\dh}
  35154. + \DeclareUnicodeCharacter{00F1}{\~n}
  35155. + \DeclareUnicodeCharacter{00F2}{\`o}
  35156. + \DeclareUnicodeCharacter{00F3}{\'o}
  35157. + \DeclareUnicodeCharacter{00F4}{\^o}
  35158. + \DeclareUnicodeCharacter{00F5}{\~o}
  35159. + \DeclareUnicodeCharacter{00F6}{\"o}
  35160. + \DeclareUnicodeCharacter{00F8}{\o}
  35161. + \DeclareUnicodeCharacter{00F9}{\`u}
  35162. + \DeclareUnicodeCharacter{00FA}{\'u}
  35163. + \DeclareUnicodeCharacter{00FB}{\^u}
  35164. + \DeclareUnicodeCharacter{00FC}{\"u}
  35165. + \DeclareUnicodeCharacter{00FD}{\'y}
  35166. + \DeclareUnicodeCharacter{00FE}{\th}
  35167. + \DeclareUnicodeCharacter{00FF}{\"y}
  35168. +
  35169. + \DeclareUnicodeCharacter{0100}{\=A}
  35170. + \DeclareUnicodeCharacter{0101}{\=a}
  35171. + \DeclareUnicodeCharacter{0102}{\u{A}}
  35172. + \DeclareUnicodeCharacter{0103}{\u{a}}
  35173. + \DeclareUnicodeCharacter{0104}{\ogonek{A}}
  35174. + \DeclareUnicodeCharacter{0105}{\ogonek{a}}
  35175. + \DeclareUnicodeCharacter{0106}{\'C}
  35176. + \DeclareUnicodeCharacter{0107}{\'c}
  35177. + \DeclareUnicodeCharacter{0108}{\^C}
  35178. + \DeclareUnicodeCharacter{0109}{\^c}
  35179. + \DeclareUnicodeCharacter{0118}{\ogonek{E}}
  35180. + \DeclareUnicodeCharacter{0119}{\ogonek{e}}
  35181. + \DeclareUnicodeCharacter{010A}{\dotaccent{C}}
  35182. + \DeclareUnicodeCharacter{010B}{\dotaccent{c}}
  35183. + \DeclareUnicodeCharacter{010C}{\v{C}}
  35184. + \DeclareUnicodeCharacter{010D}{\v{c}}
  35185. + \DeclareUnicodeCharacter{010E}{\v{D}}
  35186. +
  35187. + \DeclareUnicodeCharacter{0112}{\=E}
  35188. + \DeclareUnicodeCharacter{0113}{\=e}
  35189. + \DeclareUnicodeCharacter{0114}{\u{E}}
  35190. + \DeclareUnicodeCharacter{0115}{\u{e}}
  35191. + \DeclareUnicodeCharacter{0116}{\dotaccent{E}}
  35192. + \DeclareUnicodeCharacter{0117}{\dotaccent{e}}
  35193. + \DeclareUnicodeCharacter{011A}{\v{E}}
  35194. + \DeclareUnicodeCharacter{011B}{\v{e}}
  35195. + \DeclareUnicodeCharacter{011C}{\^G}
  35196. + \DeclareUnicodeCharacter{011D}{\^g}
  35197. + \DeclareUnicodeCharacter{011E}{\u{G}}
  35198. + \DeclareUnicodeCharacter{011F}{\u{g}}
  35199. +
  35200. + \DeclareUnicodeCharacter{0120}{\dotaccent{G}}
  35201. + \DeclareUnicodeCharacter{0121}{\dotaccent{g}}
  35202. + \DeclareUnicodeCharacter{0124}{\^H}
  35203. + \DeclareUnicodeCharacter{0125}{\^h}
  35204. + \DeclareUnicodeCharacter{0128}{\~I}
  35205. + \DeclareUnicodeCharacter{0129}{\~{\dotless{i}}}
  35206. + \DeclareUnicodeCharacter{012A}{\=I}
  35207. + \DeclareUnicodeCharacter{012B}{\={\dotless{i}}}
  35208. + \DeclareUnicodeCharacter{012C}{\u{I}}
  35209. + \DeclareUnicodeCharacter{012D}{\u{\dotless{i}}}
  35210. +
  35211. + \DeclareUnicodeCharacter{0130}{\dotaccent{I}}
  35212. + \DeclareUnicodeCharacter{0131}{\dotless{i}}
  35213. + \DeclareUnicodeCharacter{0132}{IJ}
  35214. + \DeclareUnicodeCharacter{0133}{ij}
  35215. + \DeclareUnicodeCharacter{0134}{\^J}
  35216. + \DeclareUnicodeCharacter{0135}{\^{\dotless{j}}}
  35217. + \DeclareUnicodeCharacter{0139}{\'L}
  35218. + \DeclareUnicodeCharacter{013A}{\'l}
  35219. +
  35220. + \DeclareUnicodeCharacter{0141}{\L}
  35221. + \DeclareUnicodeCharacter{0142}{\l}
  35222. + \DeclareUnicodeCharacter{0143}{\'N}
  35223. + \DeclareUnicodeCharacter{0144}{\'n}
  35224. + \DeclareUnicodeCharacter{0147}{\v{N}}
  35225. + \DeclareUnicodeCharacter{0148}{\v{n}}
  35226. + \DeclareUnicodeCharacter{014C}{\=O}
  35227. + \DeclareUnicodeCharacter{014D}{\=o}
  35228. + \DeclareUnicodeCharacter{014E}{\u{O}}
  35229. + \DeclareUnicodeCharacter{014F}{\u{o}}
  35230. +
  35231. + \DeclareUnicodeCharacter{0150}{\H{O}}
  35232. + \DeclareUnicodeCharacter{0151}{\H{o}}
  35233. + \DeclareUnicodeCharacter{0152}{\OE}
  35234. + \DeclareUnicodeCharacter{0153}{\oe}
  35235. + \DeclareUnicodeCharacter{0154}{\'R}
  35236. + \DeclareUnicodeCharacter{0155}{\'r}
  35237. + \DeclareUnicodeCharacter{0158}{\v{R}}
  35238. + \DeclareUnicodeCharacter{0159}{\v{r}}
  35239. + \DeclareUnicodeCharacter{015A}{\'S}
  35240. + \DeclareUnicodeCharacter{015B}{\'s}
  35241. + \DeclareUnicodeCharacter{015C}{\^S}
  35242. + \DeclareUnicodeCharacter{015D}{\^s}
  35243. + \DeclareUnicodeCharacter{015E}{\cedilla{S}}
  35244. + \DeclareUnicodeCharacter{015F}{\cedilla{s}}
  35245. +
  35246. + \DeclareUnicodeCharacter{0160}{\v{S}}
  35247. + \DeclareUnicodeCharacter{0161}{\v{s}}
  35248. + \DeclareUnicodeCharacter{0162}{\cedilla{t}}
  35249. + \DeclareUnicodeCharacter{0163}{\cedilla{T}}
  35250. + \DeclareUnicodeCharacter{0164}{\v{T}}
  35251. +
  35252. + \DeclareUnicodeCharacter{0168}{\~U}
  35253. + \DeclareUnicodeCharacter{0169}{\~u}
  35254. + \DeclareUnicodeCharacter{016A}{\=U}
  35255. + \DeclareUnicodeCharacter{016B}{\=u}
  35256. + \DeclareUnicodeCharacter{016C}{\u{U}}
  35257. + \DeclareUnicodeCharacter{016D}{\u{u}}
  35258. + \DeclareUnicodeCharacter{016E}{\ringaccent{U}}
  35259. + \DeclareUnicodeCharacter{016F}{\ringaccent{u}}
  35260. +
  35261. + \DeclareUnicodeCharacter{0170}{\H{U}}
  35262. + \DeclareUnicodeCharacter{0171}{\H{u}}
  35263. + \DeclareUnicodeCharacter{0174}{\^W}
  35264. + \DeclareUnicodeCharacter{0175}{\^w}
  35265. + \DeclareUnicodeCharacter{0176}{\^Y}
  35266. + \DeclareUnicodeCharacter{0177}{\^y}
  35267. + \DeclareUnicodeCharacter{0178}{\"Y}
  35268. + \DeclareUnicodeCharacter{0179}{\'Z}
  35269. + \DeclareUnicodeCharacter{017A}{\'z}
  35270. + \DeclareUnicodeCharacter{017B}{\dotaccent{Z}}
  35271. + \DeclareUnicodeCharacter{017C}{\dotaccent{z}}
  35272. + \DeclareUnicodeCharacter{017D}{\v{Z}}
  35273. + \DeclareUnicodeCharacter{017E}{\v{z}}
  35274. +
  35275. + \DeclareUnicodeCharacter{01C4}{D\v{Z}}
  35276. + \DeclareUnicodeCharacter{01C5}{D\v{z}}
  35277. + \DeclareUnicodeCharacter{01C6}{d\v{z}}
  35278. + \DeclareUnicodeCharacter{01C7}{LJ}
  35279. + \DeclareUnicodeCharacter{01C8}{Lj}
  35280. + \DeclareUnicodeCharacter{01C9}{lj}
  35281. + \DeclareUnicodeCharacter{01CA}{NJ}
  35282. + \DeclareUnicodeCharacter{01CB}{Nj}
  35283. + \DeclareUnicodeCharacter{01CC}{nj}
  35284. + \DeclareUnicodeCharacter{01CD}{\v{A}}
  35285. + \DeclareUnicodeCharacter{01CE}{\v{a}}
  35286. + \DeclareUnicodeCharacter{01CF}{\v{I}}
  35287. +
  35288. + \DeclareUnicodeCharacter{01D0}{\v{\dotless{i}}}
  35289. + \DeclareUnicodeCharacter{01D1}{\v{O}}
  35290. + \DeclareUnicodeCharacter{01D2}{\v{o}}
  35291. + \DeclareUnicodeCharacter{01D3}{\v{U}}
  35292. + \DeclareUnicodeCharacter{01D4}{\v{u}}
  35293. +
  35294. + \DeclareUnicodeCharacter{01E2}{\={\AE}}
  35295. + \DeclareUnicodeCharacter{01E3}{\={\ae}}
  35296. + \DeclareUnicodeCharacter{01E6}{\v{G}}
  35297. + \DeclareUnicodeCharacter{01E7}{\v{g}}
  35298. + \DeclareUnicodeCharacter{01E8}{\v{K}}
  35299. + \DeclareUnicodeCharacter{01E9}{\v{k}}
  35300. +
  35301. + \DeclareUnicodeCharacter{01F0}{\v{\dotless{j}}}
  35302. + \DeclareUnicodeCharacter{01F1}{DZ}
  35303. + \DeclareUnicodeCharacter{01F2}{Dz}
  35304. + \DeclareUnicodeCharacter{01F3}{dz}
  35305. + \DeclareUnicodeCharacter{01F4}{\'G}
  35306. + \DeclareUnicodeCharacter{01F5}{\'g}
  35307. + \DeclareUnicodeCharacter{01F8}{\`N}
  35308. + \DeclareUnicodeCharacter{01F9}{\`n}
  35309. + \DeclareUnicodeCharacter{01FC}{\'{\AE}}
  35310. + \DeclareUnicodeCharacter{01FD}{\'{\ae}}
  35311. + \DeclareUnicodeCharacter{01FE}{\'{\O}}
  35312. + \DeclareUnicodeCharacter{01FF}{\'{\o}}
  35313. +
  35314. + \DeclareUnicodeCharacter{021E}{\v{H}}
  35315. + \DeclareUnicodeCharacter{021F}{\v{h}}
  35316. +
  35317. + \DeclareUnicodeCharacter{0226}{\dotaccent{A}}
  35318. + \DeclareUnicodeCharacter{0227}{\dotaccent{a}}
  35319. + \DeclareUnicodeCharacter{0228}{\cedilla{E}}
  35320. + \DeclareUnicodeCharacter{0229}{\cedilla{e}}
  35321. + \DeclareUnicodeCharacter{022E}{\dotaccent{O}}
  35322. + \DeclareUnicodeCharacter{022F}{\dotaccent{o}}
  35323. +
  35324. + \DeclareUnicodeCharacter{0232}{\=Y}
  35325. + \DeclareUnicodeCharacter{0233}{\=y}
  35326. + \DeclareUnicodeCharacter{0237}{\dotless{j}}
  35327. +
  35328. + \DeclareUnicodeCharacter{02DB}{\ogonek{ }}
  35329. +
  35330. + \DeclareUnicodeCharacter{1E02}{\dotaccent{B}}
  35331. + \DeclareUnicodeCharacter{1E03}{\dotaccent{b}}
  35332. + \DeclareUnicodeCharacter{1E04}{\udotaccent{B}}
  35333. + \DeclareUnicodeCharacter{1E05}{\udotaccent{b}}
  35334. + \DeclareUnicodeCharacter{1E06}{\ubaraccent{B}}
  35335. + \DeclareUnicodeCharacter{1E07}{\ubaraccent{b}}
  35336. + \DeclareUnicodeCharacter{1E0A}{\dotaccent{D}}
  35337. + \DeclareUnicodeCharacter{1E0B}{\dotaccent{d}}
  35338. + \DeclareUnicodeCharacter{1E0C}{\udotaccent{D}}
  35339. + \DeclareUnicodeCharacter{1E0D}{\udotaccent{d}}
  35340. + \DeclareUnicodeCharacter{1E0E}{\ubaraccent{D}}
  35341. + \DeclareUnicodeCharacter{1E0F}{\ubaraccent{d}}
  35342. +
  35343. + \DeclareUnicodeCharacter{1E1E}{\dotaccent{F}}
  35344. + \DeclareUnicodeCharacter{1E1F}{\dotaccent{f}}
  35345. +
  35346. + \DeclareUnicodeCharacter{1E20}{\=G}
  35347. + \DeclareUnicodeCharacter{1E21}{\=g}
  35348. + \DeclareUnicodeCharacter{1E22}{\dotaccent{H}}
  35349. + \DeclareUnicodeCharacter{1E23}{\dotaccent{h}}
  35350. + \DeclareUnicodeCharacter{1E24}{\udotaccent{H}}
  35351. + \DeclareUnicodeCharacter{1E25}{\udotaccent{h}}
  35352. + \DeclareUnicodeCharacter{1E26}{\"H}
  35353. + \DeclareUnicodeCharacter{1E27}{\"h}
  35354. +
  35355. + \DeclareUnicodeCharacter{1E30}{\'K}
  35356. + \DeclareUnicodeCharacter{1E31}{\'k}
  35357. + \DeclareUnicodeCharacter{1E32}{\udotaccent{K}}
  35358. + \DeclareUnicodeCharacter{1E33}{\udotaccent{k}}
  35359. + \DeclareUnicodeCharacter{1E34}{\ubaraccent{K}}
  35360. + \DeclareUnicodeCharacter{1E35}{\ubaraccent{k}}
  35361. + \DeclareUnicodeCharacter{1E36}{\udotaccent{L}}
  35362. + \DeclareUnicodeCharacter{1E37}{\udotaccent{l}}
  35363. + \DeclareUnicodeCharacter{1E3A}{\ubaraccent{L}}
  35364. + \DeclareUnicodeCharacter{1E3B}{\ubaraccent{l}}
  35365. + \DeclareUnicodeCharacter{1E3E}{\'M}
  35366. + \DeclareUnicodeCharacter{1E3F}{\'m}
  35367. +
  35368. + \DeclareUnicodeCharacter{1E40}{\dotaccent{M}}
  35369. + \DeclareUnicodeCharacter{1E41}{\dotaccent{m}}
  35370. + \DeclareUnicodeCharacter{1E42}{\udotaccent{M}}
  35371. + \DeclareUnicodeCharacter{1E43}{\udotaccent{m}}
  35372. + \DeclareUnicodeCharacter{1E44}{\dotaccent{N}}
  35373. + \DeclareUnicodeCharacter{1E45}{\dotaccent{n}}
  35374. + \DeclareUnicodeCharacter{1E46}{\udotaccent{N}}
  35375. + \DeclareUnicodeCharacter{1E47}{\udotaccent{n}}
  35376. + \DeclareUnicodeCharacter{1E48}{\ubaraccent{N}}
  35377. + \DeclareUnicodeCharacter{1E49}{\ubaraccent{n}}
  35378. +
  35379. + \DeclareUnicodeCharacter{1E54}{\'P}
  35380. + \DeclareUnicodeCharacter{1E55}{\'p}
  35381. + \DeclareUnicodeCharacter{1E56}{\dotaccent{P}}
  35382. + \DeclareUnicodeCharacter{1E57}{\dotaccent{p}}
  35383. + \DeclareUnicodeCharacter{1E58}{\dotaccent{R}}
  35384. + \DeclareUnicodeCharacter{1E59}{\dotaccent{r}}
  35385. + \DeclareUnicodeCharacter{1E5A}{\udotaccent{R}}
  35386. + \DeclareUnicodeCharacter{1E5B}{\udotaccent{r}}
  35387. + \DeclareUnicodeCharacter{1E5E}{\ubaraccent{R}}
  35388. + \DeclareUnicodeCharacter{1E5F}{\ubaraccent{r}}
  35389. +
  35390. + \DeclareUnicodeCharacter{1E60}{\dotaccent{S}}
  35391. + \DeclareUnicodeCharacter{1E61}{\dotaccent{s}}
  35392. + \DeclareUnicodeCharacter{1E62}{\udotaccent{S}}
  35393. + \DeclareUnicodeCharacter{1E63}{\udotaccent{s}}
  35394. + \DeclareUnicodeCharacter{1E6A}{\dotaccent{T}}
  35395. + \DeclareUnicodeCharacter{1E6B}{\dotaccent{t}}
  35396. + \DeclareUnicodeCharacter{1E6C}{\udotaccent{T}}
  35397. + \DeclareUnicodeCharacter{1E6D}{\udotaccent{t}}
  35398. + \DeclareUnicodeCharacter{1E6E}{\ubaraccent{T}}
  35399. + \DeclareUnicodeCharacter{1E6F}{\ubaraccent{t}}
  35400. +
  35401. + \DeclareUnicodeCharacter{1E7C}{\~V}
  35402. + \DeclareUnicodeCharacter{1E7D}{\~v}
  35403. + \DeclareUnicodeCharacter{1E7E}{\udotaccent{V}}
  35404. + \DeclareUnicodeCharacter{1E7F}{\udotaccent{v}}
  35405. +
  35406. + \DeclareUnicodeCharacter{1E80}{\`W}
  35407. + \DeclareUnicodeCharacter{1E81}{\`w}
  35408. + \DeclareUnicodeCharacter{1E82}{\'W}
  35409. + \DeclareUnicodeCharacter{1E83}{\'w}
  35410. + \DeclareUnicodeCharacter{1E84}{\"W}
  35411. + \DeclareUnicodeCharacter{1E85}{\"w}
  35412. + \DeclareUnicodeCharacter{1E86}{\dotaccent{W}}
  35413. + \DeclareUnicodeCharacter{1E87}{\dotaccent{w}}
  35414. + \DeclareUnicodeCharacter{1E88}{\udotaccent{W}}
  35415. + \DeclareUnicodeCharacter{1E89}{\udotaccent{w}}
  35416. + \DeclareUnicodeCharacter{1E8A}{\dotaccent{X}}
  35417. + \DeclareUnicodeCharacter{1E8B}{\dotaccent{x}}
  35418. + \DeclareUnicodeCharacter{1E8C}{\"X}
  35419. + \DeclareUnicodeCharacter{1E8D}{\"x}
  35420. + \DeclareUnicodeCharacter{1E8E}{\dotaccent{Y}}
  35421. + \DeclareUnicodeCharacter{1E8F}{\dotaccent{y}}
  35422. +
  35423. + \DeclareUnicodeCharacter{1E90}{\^Z}
  35424. + \DeclareUnicodeCharacter{1E91}{\^z}
  35425. + \DeclareUnicodeCharacter{1E92}{\udotaccent{Z}}
  35426. + \DeclareUnicodeCharacter{1E93}{\udotaccent{z}}
  35427. + \DeclareUnicodeCharacter{1E94}{\ubaraccent{Z}}
  35428. + \DeclareUnicodeCharacter{1E95}{\ubaraccent{z}}
  35429. + \DeclareUnicodeCharacter{1E96}{\ubaraccent{h}}
  35430. + \DeclareUnicodeCharacter{1E97}{\"t}
  35431. + \DeclareUnicodeCharacter{1E98}{\ringaccent{w}}
  35432. + \DeclareUnicodeCharacter{1E99}{\ringaccent{y}}
  35433. +
  35434. + \DeclareUnicodeCharacter{1EA0}{\udotaccent{A}}
  35435. + \DeclareUnicodeCharacter{1EA1}{\udotaccent{a}}
  35436. +
  35437. + \DeclareUnicodeCharacter{1EB8}{\udotaccent{E}}
  35438. + \DeclareUnicodeCharacter{1EB9}{\udotaccent{e}}
  35439. + \DeclareUnicodeCharacter{1EBC}{\~E}
  35440. + \DeclareUnicodeCharacter{1EBD}{\~e}
  35441. +
  35442. + \DeclareUnicodeCharacter{1ECA}{\udotaccent{I}}
  35443. + \DeclareUnicodeCharacter{1ECB}{\udotaccent{i}}
  35444. + \DeclareUnicodeCharacter{1ECC}{\udotaccent{O}}
  35445. + \DeclareUnicodeCharacter{1ECD}{\udotaccent{o}}
  35446. +
  35447. + \DeclareUnicodeCharacter{1EE4}{\udotaccent{U}}
  35448. + \DeclareUnicodeCharacter{1EE5}{\udotaccent{u}}
  35449. +
  35450. + \DeclareUnicodeCharacter{1EF2}{\`Y}
  35451. + \DeclareUnicodeCharacter{1EF3}{\`y}
  35452. + \DeclareUnicodeCharacter{1EF4}{\udotaccent{Y}}
  35453. +
  35454. + \DeclareUnicodeCharacter{1EF8}{\~Y}
  35455. + \DeclareUnicodeCharacter{1EF9}{\~y}
  35456. +
  35457. + \DeclareUnicodeCharacter{2013}{--}
  35458. + \DeclareUnicodeCharacter{2014}{---}
  35459. + \DeclareUnicodeCharacter{2018}{\quoteleft}
  35460. + \DeclareUnicodeCharacter{2019}{\quoteright}
  35461. + \DeclareUnicodeCharacter{201A}{\quotesinglbase}
  35462. + \DeclareUnicodeCharacter{201C}{\quotedblleft}
  35463. + \DeclareUnicodeCharacter{201D}{\quotedblright}
  35464. + \DeclareUnicodeCharacter{201E}{\quotedblbase}
  35465. + \DeclareUnicodeCharacter{2022}{\bullet}
  35466. + \DeclareUnicodeCharacter{2026}{\dots}
  35467. + \DeclareUnicodeCharacter{2039}{\guilsinglleft}
  35468. + \DeclareUnicodeCharacter{203A}{\guilsinglright}
  35469. + \DeclareUnicodeCharacter{20AC}{\euro}
  35470. +
  35471. + \DeclareUnicodeCharacter{2192}{\expansion}
  35472. + \DeclareUnicodeCharacter{21D2}{\result}
  35473. +
  35474. + \DeclareUnicodeCharacter{2212}{\minus}
  35475. + \DeclareUnicodeCharacter{2217}{\point}
  35476. + \DeclareUnicodeCharacter{2261}{\equiv}
  35477. +}% end of \utfeightchardefs
  35478. +
  35479. +
  35480. +% US-ASCII character definitions.
  35481. +\def\asciichardefs{% nothing need be done
  35482. + \relax
  35483. +}
  35484. +
  35485. +% Make non-ASCII characters printable again for compatibility with
  35486. +% existing Texinfo documents that may use them, even without declaring a
  35487. +% document encoding.
  35488. %
  35489. +\setnonasciicharscatcode \other
  35490. +
  35491. +
  35492. +\message{formatting,}
  35493. +
  35494. \newdimen\defaultparindent \defaultparindent = 15pt
  35495. \chapheadingskip = 15pt plus 4pt minus 2pt
  35496. @@ -7110,7 +8902,7 @@
  35497. % Don't be so finicky about underfull hboxes, either.
  35498. \hbadness = 2000
  35499. -% Following George Bush, just get rid of widows and orphans.
  35500. +% Following George Bush, get rid of widows and orphans.
  35501. \widowpenalty=10000
  35502. \clubpenalty=10000
  35503. @@ -7157,6 +8949,10 @@
  35504. \ifpdf
  35505. \pdfpageheight #7\relax
  35506. \pdfpagewidth #8\relax
  35507. + % if we don't reset these, they will remain at "1 true in" of
  35508. + % whatever layout pdftex was dumped with.
  35509. + \pdfhorigin = 1 true in
  35510. + \pdfvorigin = 1 true in
  35511. \fi
  35512. %
  35513. \setleading{\textleading}
  35514. @@ -7171,7 +8967,7 @@
  35515. \textleading = 13.2pt
  35516. %
  35517. % If page is nothing but text, make it come out even.
  35518. - \internalpagesizes{46\baselineskip}{6in}%
  35519. + \internalpagesizes{607.2pt}{6in}% that's 46 lines
  35520. {\voffset}{.25in}%
  35521. {\bindingoffset}{36pt}%
  35522. {11in}{8.5in}%
  35523. @@ -7183,7 +8979,7 @@
  35524. \textleading = 12pt
  35525. %
  35526. \internalpagesizes{7.5in}{5in}%
  35527. - {\voffset}{.25in}%
  35528. + {-.2in}{0in}%
  35529. {\bindingoffset}{16pt}%
  35530. {9.25in}{7in}%
  35531. %
  35532. @@ -7227,7 +9023,7 @@
  35533. % \global\normaloffset = -6mm
  35534. % \global\bindingoffset = 10mm
  35535. % @end tex
  35536. - \internalpagesizes{51\baselineskip}{160mm}
  35537. + \internalpagesizes{673.2pt}{160mm}% that's 51 lines
  35538. {\voffset}{\hoffset}%
  35539. {\bindingoffset}{44pt}%
  35540. {297mm}{210mm}%
  35541. @@ -7292,7 +9088,7 @@
  35542. \parskip = 3pt plus 2pt minus 1pt
  35543. \setleading{\textleading}%
  35544. %
  35545. - \dimen0 = #1
  35546. + \dimen0 = #1\relax
  35547. \advance\dimen0 by \voffset
  35548. %
  35549. \dimen2 = \hsize
  35550. @@ -7311,6 +9107,9 @@
  35551. \message{and turning on texinfo input format.}
  35552. +% DEL is a comment character, in case @c does not suffice.
  35553. +\catcode`\^^? = 14
  35554. +
  35555. % Define macros to output various characters with catcode for normal text.
  35556. \catcode`\"=\other
  35557. \catcode`\~=\other
  35558. @@ -7420,7 +9219,7 @@
  35559. % Same as @turnoffactive except outputs \ as {\tt\char`\\} instead of
  35560. % the literal character `\'.
  35561. -%
  35562. +%
  35563. @def@normalturnoffactive{%
  35564. @let\=@normalbackslash
  35565. @let"=@normaldoublequote
  35566. @@ -7432,6 +9231,8 @@
  35567. @let>=@normalgreater
  35568. @let+=@normalplus
  35569. @let$=@normaldollar %$ font-lock fix
  35570. + @markupsetuplqdefault
  35571. + @markupsetuprqdefault
  35572. @unsepspaces
  35573. }
  35574. @@ -7466,6 +9267,14 @@
  35575. @catcode`@# = @other
  35576. @catcode`@% = @other
  35577. +@c Finally, make ` and ' active, so that txicodequoteundirected and
  35578. +@c txicodequotebacktick work right in, e.g., @w{@code{`foo'}}. If we
  35579. +@c don't make ` and ' active, @code will not get them as active chars.
  35580. +@c Do this last of all since we use ` in the previous @catcode assignments.
  35581. +@catcode`@'=@active
  35582. +@catcode`@`=@active
  35583. +@markupsetuplqdefault
  35584. +@markupsetuprqdefault
  35585. @c Local variables:
  35586. @c eval: (add-hook 'write-file-hooks 'time-stamp)
  35587. diff -Nur libgcrypt-1.4.5.orig/INSTALL libgcrypt-1.4.5/INSTALL
  35588. --- libgcrypt-1.4.5.orig/INSTALL 2009-04-02 11:25:35.000000000 +0200
  35589. +++ libgcrypt-1.4.5/INSTALL 2011-02-16 16:00:45.804800620 +0100
  35590. @@ -2,18 +2,24 @@
  35591. *************************
  35592. Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  35593. -2006 Free Software Foundation, Inc.
  35594. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  35595. -This file is free documentation; the Free Software Foundation gives
  35596. -unlimited permission to copy, distribute and modify it.
  35597. + Copying and distribution of this file, with or without modification,
  35598. +are permitted in any medium without royalty provided the copyright
  35599. +notice and this notice are preserved. This file is offered as-is,
  35600. +without warranty of any kind.
  35601. Basic Installation
  35602. ==================
  35603. -Briefly, the shell commands `./configure; make; make install' should
  35604. + Briefly, the shell commands `./configure; make; make install' should
  35605. configure, build, and install this package. The following
  35606. more-detailed instructions are generic; see the `README' file for
  35607. -instructions specific to this package.
  35608. +instructions specific to this package. Some packages provide this
  35609. +`INSTALL' file but do not implement all of the features documented
  35610. +below. The lack of an optional feature in a given package is not
  35611. +necessarily a bug. More recommendations for GNU packages can be found
  35612. +in *note Makefile Conventions: (standards)Makefile Conventions.
  35613. The `configure' shell script attempts to guess correct values for
  35614. various system-dependent variables used during compilation. It uses
  35615. @@ -42,7 +48,7 @@
  35616. you want to change it or regenerate `configure' using a newer version
  35617. of `autoconf'.
  35618. -The simplest way to compile this package is:
  35619. + The simplest way to compile this package is:
  35620. 1. `cd' to the directory containing the package's source code and type
  35621. `./configure' to configure the package for your system.
  35622. @@ -53,12 +59,22 @@
  35623. 2. Type `make' to compile the package.
  35624. 3. Optionally, type `make check' to run any self-tests that come with
  35625. - the package.
  35626. + the package, generally using the just-built uninstalled binaries.
  35627. 4. Type `make install' to install the programs and any data files and
  35628. - documentation.
  35629. + documentation. When installing into a prefix owned by root, it is
  35630. + recommended that the package be configured and built as a regular
  35631. + user, and only the `make install' phase executed with root
  35632. + privileges.
  35633. +
  35634. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  35635. + this time using the binaries in their final installed location.
  35636. + This target does not install anything. Running this target as a
  35637. + regular user, particularly if the prior `make install' required
  35638. + root privileges, verifies that the installation completed
  35639. + correctly.
  35640. - 5. You can remove the program binaries and object files from the
  35641. + 6. You can remove the program binaries and object files from the
  35642. source code directory by typing `make clean'. To also remove the
  35643. files that `configure' created (so you can compile the package for
  35644. a different kind of computer), type `make distclean'. There is
  35645. @@ -67,12 +83,22 @@
  35646. all sorts of other programs in order to regenerate files that came
  35647. with the distribution.
  35648. + 7. Often, you can also type `make uninstall' to remove the installed
  35649. + files again. In practice, not all packages have tested that
  35650. + uninstallation works correctly, even though it is required by the
  35651. + GNU Coding Standards.
  35652. +
  35653. + 8. Some packages, particularly those that use Automake, provide `make
  35654. + distcheck', which can by used by developers to test that all other
  35655. + targets like `make install' and `make uninstall' work correctly.
  35656. + This target is generally not run by end users.
  35657. +
  35658. Compilers and Options
  35659. =====================
  35660. -Some systems require unusual options for compilation or linking that the
  35661. -`configure' script does not know about. Run `./configure --help' for
  35662. -details on some of the pertinent environment variables.
  35663. + Some systems require unusual options for compilation or linking that
  35664. +the `configure' script does not know about. Run `./configure --help'
  35665. +for details on some of the pertinent environment variables.
  35666. You can give `configure' initial values for configuration parameters
  35667. by setting variables in the command line or in the environment. Here
  35668. @@ -85,25 +111,41 @@
  35669. Compiling For Multiple Architectures
  35670. ====================================
  35671. -You can compile the package for more than one kind of computer at the
  35672. + You can compile the package for more than one kind of computer at the
  35673. same time, by placing the object files for each architecture in their
  35674. own directory. To do this, you can use GNU `make'. `cd' to the
  35675. directory where you want the object files and executables to go and run
  35676. the `configure' script. `configure' automatically checks for the
  35677. -source code in the directory that `configure' is in and in `..'.
  35678. +source code in the directory that `configure' is in and in `..'. This
  35679. +is known as a "VPATH" build.
  35680. With a non-GNU `make', it is safer to compile the package for one
  35681. architecture at a time in the source code directory. After you have
  35682. installed the package for one architecture, use `make distclean' before
  35683. reconfiguring for another architecture.
  35684. + On MacOS X 10.5 and later systems, you can create libraries and
  35685. +executables that work on multiple system types--known as "fat" or
  35686. +"universal" binaries--by specifying multiple `-arch' options to the
  35687. +compiler but only a single `-arch' option to the preprocessor. Like
  35688. +this:
  35689. +
  35690. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  35691. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  35692. + CPP="gcc -E" CXXCPP="g++ -E"
  35693. +
  35694. + This is not guaranteed to produce working output in all cases, you
  35695. +may have to build one architecture at a time and combine the results
  35696. +using the `lipo' tool if you have problems.
  35697. +
  35698. Installation Names
  35699. ==================
  35700. -By default, `make install' installs the package's commands under
  35701. + By default, `make install' installs the package's commands under
  35702. `/usr/local/bin', include files under `/usr/local/include', etc. You
  35703. can specify an installation prefix other than `/usr/local' by giving
  35704. -`configure' the option `--prefix=PREFIX'.
  35705. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  35706. +absolute file name.
  35707. You can specify separate installation prefixes for
  35708. architecture-specific files and architecture-independent files. If you
  35709. @@ -114,16 +156,47 @@
  35710. In addition, if you use an unusual directory layout you can give
  35711. options like `--bindir=DIR' to specify different values for particular
  35712. kinds of files. Run `configure --help' for a list of the directories
  35713. -you can set and what kinds of files go in them.
  35714. +you can set and what kinds of files go in them. In general, the
  35715. +default for these options is expressed in terms of `${prefix}', so that
  35716. +specifying just `--prefix' will affect all of the other directory
  35717. +specifications that were not explicitly provided.
  35718. +
  35719. + The most portable way to affect installation locations is to pass the
  35720. +correct locations to `configure'; however, many packages provide one or
  35721. +both of the following shortcuts of passing variable assignments to the
  35722. +`make install' command line to change installation locations without
  35723. +having to reconfigure or recompile.
  35724. +
  35725. + The first method involves providing an override variable for each
  35726. +affected directory. For example, `make install
  35727. +prefix=/alternate/directory' will choose an alternate location for all
  35728. +directory configuration variables that were expressed in terms of
  35729. +`${prefix}'. Any directories that were specified during `configure',
  35730. +but not in terms of `${prefix}', must each be overridden at install
  35731. +time for the entire installation to be relocated. The approach of
  35732. +makefile variable overrides for each directory variable is required by
  35733. +the GNU Coding Standards, and ideally causes no recompilation.
  35734. +However, some platforms have known limitations with the semantics of
  35735. +shared libraries that end up requiring recompilation when using this
  35736. +method, particularly noticeable in packages that use GNU Libtool.
  35737. +
  35738. + The second method involves providing the `DESTDIR' variable. For
  35739. +example, `make install DESTDIR=/alternate/directory' will prepend
  35740. +`/alternate/directory' before all installation names. The approach of
  35741. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  35742. +does not work on platforms that have drive letters. On the other hand,
  35743. +it does better at avoiding recompilation issues, and works well even
  35744. +when some directory options were not specified in terms of `${prefix}'
  35745. +at `configure' time.
  35746. +
  35747. +Optional Features
  35748. +=================
  35749. If the package supports it, you can cause programs to be installed
  35750. with an extra prefix or suffix on their names by giving `configure' the
  35751. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  35752. -Optional Features
  35753. -=================
  35754. -
  35755. -Some packages pay attention to `--enable-FEATURE' options to
  35756. + Some packages pay attention to `--enable-FEATURE' options to
  35757. `configure', where FEATURE indicates an optional part of the package.
  35758. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  35759. is something like `gnu-as' or `x' (for the X Window System). The
  35760. @@ -135,14 +208,53 @@
  35761. you can use the `configure' options `--x-includes=DIR' and
  35762. `--x-libraries=DIR' to specify their locations.
  35763. + Some packages offer the ability to configure how verbose the
  35764. +execution of `make' will be. For these packages, running `./configure
  35765. +--enable-silent-rules' sets the default to minimal output, which can be
  35766. +overridden with `make V=1'; while running `./configure
  35767. +--disable-silent-rules' sets the default to verbose, which can be
  35768. +overridden with `make V=0'.
  35769. +
  35770. +Particular systems
  35771. +==================
  35772. +
  35773. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  35774. +CC is not installed, it is recommended to use the following options in
  35775. +order to use an ANSI C compiler:
  35776. +
  35777. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  35778. +
  35779. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  35780. +
  35781. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  35782. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  35783. +a workaround. If GNU CC is not installed, it is therefore recommended
  35784. +to try
  35785. +
  35786. + ./configure CC="cc"
  35787. +
  35788. +and if that doesn't work, try
  35789. +
  35790. + ./configure CC="cc -nodtk"
  35791. +
  35792. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  35793. +directory contains several dysfunctional programs; working variants of
  35794. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  35795. +in your `PATH', put it _after_ `/usr/bin'.
  35796. +
  35797. + On Haiku, software installed for all users goes in `/boot/common',
  35798. +not `/usr/local'. It is recommended to use the following options:
  35799. +
  35800. + ./configure --prefix=/boot/common
  35801. +
  35802. Specifying the System Type
  35803. ==========================
  35804. -There may be some features `configure' cannot figure out automatically,
  35805. -but needs to determine by the type of machine the package will run on.
  35806. -Usually, assuming the package is built to be run on the _same_
  35807. -architectures, `configure' can figure that out, but if it prints a
  35808. -message saying it cannot guess the machine type, give it the
  35809. + There may be some features `configure' cannot figure out
  35810. +automatically, but needs to determine by the type of machine the package
  35811. +will run on. Usually, assuming the package is built to be run on the
  35812. +_same_ architectures, `configure' can figure that out, but if it prints
  35813. +a message saying it cannot guess the machine type, give it the
  35814. `--build=TYPE' option. TYPE can either be a short name for the system
  35815. type, such as `sun4', or a canonical name which has the form:
  35816. @@ -150,7 +262,8 @@
  35817. where SYSTEM can have one of these forms:
  35818. - OS KERNEL-OS
  35819. + OS
  35820. + KERNEL-OS
  35821. See the file `config.sub' for the possible values of each field. If
  35822. `config.sub' isn't included in this package, then this package doesn't
  35823. @@ -168,9 +281,9 @@
  35824. Sharing Defaults
  35825. ================
  35826. -If you want to set default values for `configure' scripts to share, you
  35827. -can create a site shell script called `config.site' that gives default
  35828. -values for variables like `CC', `cache_file', and `prefix'.
  35829. + If you want to set default values for `configure' scripts to share,
  35830. +you can create a site shell script called `config.site' that gives
  35831. +default values for variables like `CC', `cache_file', and `prefix'.
  35832. `configure' looks for `PREFIX/share/config.site' if it exists, then
  35833. `PREFIX/etc/config.site' if it exists. Or, you can set the
  35834. `CONFIG_SITE' environment variable to the location of the site script.
  35835. @@ -179,7 +292,7 @@
  35836. Defining Variables
  35837. ==================
  35838. -Variables not defined in a site shell script can be set in the
  35839. + Variables not defined in a site shell script can be set in the
  35840. environment passed to `configure'. However, some packages may run
  35841. configure again during the build, and the customized values of these
  35842. variables may be lost. In order to avoid this problem, you should set
  35843. @@ -198,11 +311,19 @@
  35844. `configure' Invocation
  35845. ======================
  35846. -`configure' recognizes the following options to control how it operates.
  35847. + `configure' recognizes the following options to control how it
  35848. +operates.
  35849. `--help'
  35850. `-h'
  35851. - Print a summary of the options to `configure', and exit.
  35852. + Print a summary of all of the options to `configure', and exit.
  35853. +
  35854. +`--help=short'
  35855. +`--help=recursive'
  35856. + Print a summary of the options unique to this package's
  35857. + `configure', and exit. The `short' variant lists options used
  35858. + only in the top level, while the `recursive' variant lists options
  35859. + also present in any nested packages.
  35860. `--version'
  35861. `-V'
  35862. @@ -229,6 +350,16 @@
  35863. Look for the package's source code in directory DIR. Usually
  35864. `configure' can determine that directory automatically.
  35865. +`--prefix=DIR'
  35866. + Use DIR as the installation prefix. *note Installation Names::
  35867. + for more details, including other options available for fine-tuning
  35868. + the installation locations.
  35869. +
  35870. +`--no-create'
  35871. +`-n'
  35872. + Run the configure checks, but stop before creating any output
  35873. + files.
  35874. +
  35875. `configure' also accepts some other, not widely useful, options. Run
  35876. `configure --help' for more details.
  35877. diff -Nur libgcrypt-1.4.5.orig/install-sh libgcrypt-1.4.5/install-sh
  35878. --- libgcrypt-1.4.5.orig/install-sh 2009-04-02 11:25:35.000000000 +0200
  35879. +++ libgcrypt-1.4.5/install-sh 2011-02-16 16:00:44.903559235 +0100
  35880. @@ -1,7 +1,7 @@
  35881. #!/bin/sh
  35882. # install - install a program, script, or datafile
  35883. -scriptversion=2006-10-14.15
  35884. +scriptversion=2009-04-28.21; # UTC
  35885. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  35886. # later released in X11R6 (xc/config/util/install.sh) with the
  35887. @@ -48,7 +48,7 @@
  35888. # set DOITPROG to echo to test this script
  35889. # Don't use :- since 4.3BSD and earlier shells don't like it.
  35890. -doit="${DOITPROG-}"
  35891. +doit=${DOITPROG-}
  35892. if test -z "$doit"; then
  35893. doit_exec=exec
  35894. else
  35895. @@ -58,34 +58,49 @@
  35896. # Put in absolute file names if you don't have them in your path;
  35897. # or use environment vars.
  35898. -mvprog="${MVPROG-mv}"
  35899. -cpprog="${CPPROG-cp}"
  35900. -chmodprog="${CHMODPROG-chmod}"
  35901. -chownprog="${CHOWNPROG-chown}"
  35902. -chgrpprog="${CHGRPPROG-chgrp}"
  35903. -stripprog="${STRIPPROG-strip}"
  35904. -rmprog="${RMPROG-rm}"
  35905. -mkdirprog="${MKDIRPROG-mkdir}"
  35906. +chgrpprog=${CHGRPPROG-chgrp}
  35907. +chmodprog=${CHMODPROG-chmod}
  35908. +chownprog=${CHOWNPROG-chown}
  35909. +cmpprog=${CMPPROG-cmp}
  35910. +cpprog=${CPPROG-cp}
  35911. +mkdirprog=${MKDIRPROG-mkdir}
  35912. +mvprog=${MVPROG-mv}
  35913. +rmprog=${RMPROG-rm}
  35914. +stripprog=${STRIPPROG-strip}
  35915. +
  35916. +posix_glob='?'
  35917. +initialize_posix_glob='
  35918. + test "$posix_glob" != "?" || {
  35919. + if (set -f) 2>/dev/null; then
  35920. + posix_glob=
  35921. + else
  35922. + posix_glob=:
  35923. + fi
  35924. + }
  35925. +'
  35926. -posix_glob=
  35927. posix_mkdir=
  35928. # Desired mode of installed file.
  35929. mode=0755
  35930. +chgrpcmd=
  35931. chmodcmd=$chmodprog
  35932. chowncmd=
  35933. -chgrpcmd=
  35934. -stripcmd=
  35935. +mvcmd=$mvprog
  35936. rmcmd="$rmprog -f"
  35937. -mvcmd="$mvprog"
  35938. +stripcmd=
  35939. +
  35940. src=
  35941. dst=
  35942. dir_arg=
  35943. -dstarg=
  35944. +dst_arg=
  35945. +
  35946. +copy_on_change=false
  35947. no_target_directory=
  35948. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  35949. +usage="\
  35950. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  35951. or: $0 [OPTION]... SRCFILES... DIRECTORY
  35952. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  35953. or: $0 [OPTION]... -d DIRECTORIES...
  35954. @@ -95,65 +110,55 @@
  35955. In the 4th, create DIRECTORIES.
  35956. Options:
  35957. --c (ignored)
  35958. --d create directories instead of installing files.
  35959. --g GROUP $chgrpprog installed files to GROUP.
  35960. --m MODE $chmodprog installed files to MODE.
  35961. --o USER $chownprog installed files to USER.
  35962. --s $stripprog installed files.
  35963. --t DIRECTORY install into DIRECTORY.
  35964. --T report an error if DSTFILE is a directory.
  35965. ---help display this help and exit.
  35966. ---version display version info and exit.
  35967. + --help display this help and exit.
  35968. + --version display version info and exit.
  35969. +
  35970. + -c (ignored)
  35971. + -C install only if different (preserve the last data modification time)
  35972. + -d create directories instead of installing files.
  35973. + -g GROUP $chgrpprog installed files to GROUP.
  35974. + -m MODE $chmodprog installed files to MODE.
  35975. + -o USER $chownprog installed files to USER.
  35976. + -s $stripprog installed files.
  35977. + -t DIRECTORY install into DIRECTORY.
  35978. + -T report an error if DSTFILE is a directory.
  35979. Environment variables override the default commands:
  35980. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  35981. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  35982. + RMPROG STRIPPROG
  35983. "
  35984. while test $# -ne 0; do
  35985. case $1 in
  35986. - -c) shift
  35987. - continue;;
  35988. + -c) ;;
  35989. +
  35990. + -C) copy_on_change=true;;
  35991. - -d) dir_arg=true
  35992. - shift
  35993. - continue;;
  35994. + -d) dir_arg=true;;
  35995. -g) chgrpcmd="$chgrpprog $2"
  35996. - shift
  35997. - shift
  35998. - continue;;
  35999. + shift;;
  36000. --help) echo "$usage"; exit $?;;
  36001. -m) mode=$2
  36002. - shift
  36003. - shift
  36004. case $mode in
  36005. *' '* | *' '* | *'
  36006. '* | *'*'* | *'?'* | *'['*)
  36007. echo "$0: invalid mode: $mode" >&2
  36008. exit 1;;
  36009. esac
  36010. - continue;;
  36011. + shift;;
  36012. -o) chowncmd="$chownprog $2"
  36013. - shift
  36014. - shift
  36015. - continue;;
  36016. -
  36017. - -s) stripcmd=$stripprog
  36018. - shift
  36019. - continue;;
  36020. -
  36021. - -t) dstarg=$2
  36022. - shift
  36023. - shift
  36024. - continue;;
  36025. -
  36026. - -T) no_target_directory=true
  36027. - shift
  36028. - continue;;
  36029. + shift;;
  36030. +
  36031. + -s) stripcmd=$stripprog;;
  36032. +
  36033. + -t) dst_arg=$2
  36034. + shift;;
  36035. +
  36036. + -T) no_target_directory=true;;
  36037. --version) echo "$0 $scriptversion"; exit $?;;
  36038. @@ -165,21 +170,22 @@
  36039. *) break;;
  36040. esac
  36041. + shift
  36042. done
  36043. -if test $# -ne 0 && test -z "$dir_arg$dstarg"; then
  36044. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  36045. # When -d is used, all remaining arguments are directories to create.
  36046. # When -t is used, the destination is already specified.
  36047. # Otherwise, the last argument is the destination. Remove it from $@.
  36048. for arg
  36049. do
  36050. - if test -n "$dstarg"; then
  36051. + if test -n "$dst_arg"; then
  36052. # $@ is not empty: it contains at least $arg.
  36053. - set fnord "$@" "$dstarg"
  36054. + set fnord "$@" "$dst_arg"
  36055. shift # fnord
  36056. fi
  36057. shift # arg
  36058. - dstarg=$arg
  36059. + dst_arg=$arg
  36060. done
  36061. fi
  36062. @@ -224,7 +230,7 @@
  36063. do
  36064. # Protect names starting with `-'.
  36065. case $src in
  36066. - -*) src=./$src ;;
  36067. + -*) src=./$src;;
  36068. esac
  36069. if test -n "$dir_arg"; then
  36070. @@ -242,22 +248,22 @@
  36071. exit 1
  36072. fi
  36073. - if test -z "$dstarg"; then
  36074. + if test -z "$dst_arg"; then
  36075. echo "$0: no destination specified." >&2
  36076. exit 1
  36077. fi
  36078. - dst=$dstarg
  36079. + dst=$dst_arg
  36080. # Protect names starting with `-'.
  36081. case $dst in
  36082. - -*) dst=./$dst ;;
  36083. + -*) dst=./$dst;;
  36084. esac
  36085. # If destination is a directory, append the input filename; won't work
  36086. # if double slashes aren't ignored.
  36087. if test -d "$dst"; then
  36088. if test -n "$no_target_directory"; then
  36089. - echo "$0: $dstarg: Is a directory" >&2
  36090. + echo "$0: $dst_arg: Is a directory" >&2
  36091. exit 1
  36092. fi
  36093. dstdir=$dst
  36094. @@ -378,26 +384,19 @@
  36095. # directory the slow way, step by step, checking for races as we go.
  36096. case $dstdir in
  36097. - /*) prefix=/ ;;
  36098. - -*) prefix=./ ;;
  36099. - *) prefix= ;;
  36100. + /*) prefix='/';;
  36101. + -*) prefix='./';;
  36102. + *) prefix='';;
  36103. esac
  36104. - case $posix_glob in
  36105. - '')
  36106. - if (set -f) 2>/dev/null; then
  36107. - posix_glob=true
  36108. - else
  36109. - posix_glob=false
  36110. - fi ;;
  36111. - esac
  36112. + eval "$initialize_posix_glob"
  36113. oIFS=$IFS
  36114. IFS=/
  36115. - $posix_glob && set -f
  36116. + $posix_glob set -f
  36117. set fnord $dstdir
  36118. shift
  36119. - $posix_glob && set +f
  36120. + $posix_glob set +f
  36121. IFS=$oIFS
  36122. prefixes=
  36123. @@ -459,41 +458,54 @@
  36124. # ignore errors from any of these, just make sure not to ignore
  36125. # errors from the above "$doit $cpprog $src $dsttmp" command.
  36126. #
  36127. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  36128. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  36129. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  36130. - && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  36131. -
  36132. - # Now rename the file to the real destination.
  36133. - { $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null \
  36134. - || {
  36135. - # The rename failed, perhaps because mv can't rename something else
  36136. - # to itself, or perhaps because mv is so ancient that it does not
  36137. - # support -f.
  36138. -
  36139. - # Now remove or move aside any old file at destination location.
  36140. - # We try this two ways since rm can't unlink itself on some
  36141. - # systems and the destination file might be busy for other
  36142. - # reasons. In this case, the final cleanup might fail but the new
  36143. - # file should still install successfully.
  36144. - {
  36145. - if test -f "$dst"; then
  36146. - $doit $rmcmd -f "$dst" 2>/dev/null \
  36147. - || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null \
  36148. - && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }; }\
  36149. - || {
  36150. - echo "$0: cannot unlink or rename $dst" >&2
  36151. - (exit 1); exit 1
  36152. - }
  36153. - else
  36154. - :
  36155. - fi
  36156. - } &&
  36157. -
  36158. - # Now rename the file to the real destination.
  36159. - $doit $mvcmd "$dsttmp" "$dst"
  36160. - }
  36161. - } || exit 1
  36162. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  36163. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  36164. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  36165. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  36166. +
  36167. + # If -C, don't bother to copy if it wouldn't change the file.
  36168. + if $copy_on_change &&
  36169. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  36170. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  36171. +
  36172. + eval "$initialize_posix_glob" &&
  36173. + $posix_glob set -f &&
  36174. + set X $old && old=:$2:$4:$5:$6 &&
  36175. + set X $new && new=:$2:$4:$5:$6 &&
  36176. + $posix_glob set +f &&
  36177. +
  36178. + test "$old" = "$new" &&
  36179. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  36180. + then
  36181. + rm -f "$dsttmp"
  36182. + else
  36183. + # Rename the file to the real destination.
  36184. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  36185. +
  36186. + # The rename failed, perhaps because mv can't rename something else
  36187. + # to itself, or perhaps because mv is so ancient that it does not
  36188. + # support -f.
  36189. + {
  36190. + # Now remove or move aside any old file at destination location.
  36191. + # We try this two ways since rm can't unlink itself on some
  36192. + # systems and the destination file might be busy for other
  36193. + # reasons. In this case, the final cleanup might fail but the new
  36194. + # file should still install successfully.
  36195. + {
  36196. + test ! -f "$dst" ||
  36197. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  36198. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  36199. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  36200. + } ||
  36201. + { echo "$0: cannot unlink or rename $dst" >&2
  36202. + (exit 1); exit 1
  36203. + }
  36204. + } &&
  36205. +
  36206. + # Now rename the file to the real destination.
  36207. + $doit $mvcmd "$dsttmp" "$dst"
  36208. + }
  36209. + fi || exit 1
  36210. trap '' 0
  36211. fi
  36212. @@ -503,5 +515,6 @@
  36213. # eval: (add-hook 'write-file-hooks 'time-stamp)
  36214. # time-stamp-start: "scriptversion="
  36215. # time-stamp-format: "%:y-%02m-%02d.%02H"
  36216. -# time-stamp-end: "$"
  36217. +# time-stamp-time-zone: "UTC"
  36218. +# time-stamp-end: "; # UTC"
  36219. # End:
  36220. diff -Nur libgcrypt-1.4.5.orig/ltmain.sh libgcrypt-1.4.5/ltmain.sh
  36221. --- libgcrypt-1.4.5.orig/ltmain.sh 2009-04-02 11:25:35.000000000 +0200
  36222. +++ libgcrypt-1.4.5/ltmain.sh 2011-02-16 16:00:40.264812644 +0100
  36223. @@ -1,30 +1,174 @@
  36224. -# ltmain.sh - Provide generalized library-building support services.
  36225. -# NOTE: Changing this file will not affect anything until you rerun configure.
  36226. -#
  36227. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  36228. -# Free Software Foundation, Inc.
  36229. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  36230. -#
  36231. -# This program is free software; you can redistribute it and/or modify
  36232. +# Generated from ltmain.m4sh.
  36233. +
  36234. +# ltmain.sh (GNU libtool) 2.2.6b
  36235. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  36236. +
  36237. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  36238. +# This is free software; see the source for copying conditions. There is NO
  36239. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  36240. +
  36241. +# GNU Libtool is free software; you can redistribute it and/or modify
  36242. # it under the terms of the GNU General Public License as published by
  36243. # the Free Software Foundation; either version 2 of the License, or
  36244. # (at your option) any later version.
  36245. #
  36246. -# This program is distributed in the hope that it will be useful, but
  36247. +# As a special exception to the GNU General Public License,
  36248. +# if you distribute this file as part of a program or library that
  36249. +# is built using GNU Libtool, you may include this file under the
  36250. +# same distribution terms that you use for the rest of that program.
  36251. +#
  36252. +# GNU Libtool is distributed in the hope that it will be useful, but
  36253. # WITHOUT ANY WARRANTY; without even the implied warranty of
  36254. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  36255. # General Public License for more details.
  36256. #
  36257. # You should have received a copy of the GNU General Public License
  36258. -# along with this program; if not, write to the Free Software
  36259. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  36260. +# along with GNU Libtool; see the file COPYING. If not, a copy
  36261. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  36262. +# or obtained by writing to the Free Software Foundation, Inc.,
  36263. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  36264. +
  36265. +# Usage: $progname [OPTION]... [MODE-ARG]...
  36266. +#
  36267. +# Provide generalized library-building support services.
  36268. #
  36269. -# As a special exception to the GNU General Public License, if you
  36270. -# distribute this file as part of a program that contains a
  36271. -# configuration script generated by Autoconf, you may include it under
  36272. -# the same distribution terms that you use for the rest of that program.
  36273. +# --config show all configuration variables
  36274. +# --debug enable verbose shell tracing
  36275. +# -n, --dry-run display commands without modifying any files
  36276. +# --features display basic configuration information and exit
  36277. +# --mode=MODE use operation mode MODE
  36278. +# --preserve-dup-deps don't remove duplicate dependency libraries
  36279. +# --quiet, --silent don't print informational messages
  36280. +# --tag=TAG use configuration variables from tag TAG
  36281. +# -v, --verbose print informational messages (default)
  36282. +# --version print version information
  36283. +# -h, --help print short or long help message
  36284. +#
  36285. +# MODE must be one of the following:
  36286. +#
  36287. +# clean remove files from the build directory
  36288. +# compile compile a source file into a libtool object
  36289. +# execute automatically set library path, then run a program
  36290. +# finish complete the installation of libtool libraries
  36291. +# install install libraries or executables
  36292. +# link create a library or an executable
  36293. +# uninstall remove libraries from an installed directory
  36294. +#
  36295. +# MODE-ARGS vary depending on the MODE.
  36296. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  36297. +#
  36298. +# When reporting a bug, please describe a test case to reproduce it and
  36299. +# include the following information:
  36300. +#
  36301. +# host-triplet: $host
  36302. +# shell: $SHELL
  36303. +# compiler: $LTCC
  36304. +# compiler flags: $LTCFLAGS
  36305. +# linker: $LD (gnu? $with_gnu_ld)
  36306. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  36307. +# automake: $automake_version
  36308. +# autoconf: $autoconf_version
  36309. +#
  36310. +# Report bugs to <bug-libtool@gnu.org>.
  36311. +
  36312. +PROGRAM=ltmain.sh
  36313. +PACKAGE=libtool
  36314. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  36315. +TIMESTAMP=""
  36316. +package_revision=1.3017
  36317. +
  36318. +# Be Bourne compatible
  36319. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  36320. + emulate sh
  36321. + NULLCMD=:
  36322. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  36323. + # is contrary to our usage. Disable this feature.
  36324. + alias -g '${1+"$@"}'='"$@"'
  36325. + setopt NO_GLOB_SUBST
  36326. +else
  36327. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  36328. +fi
  36329. +BIN_SH=xpg4; export BIN_SH # for Tru64
  36330. +DUALCASE=1; export DUALCASE # for MKS sh
  36331. +
  36332. +# NLS nuisances: We save the old values to restore during execute mode.
  36333. +# Only set LANG and LC_ALL to C if already set.
  36334. +# These must not be set unconditionally because not all systems understand
  36335. +# e.g. LANG=C (notably SCO).
  36336. +lt_user_locale=
  36337. +lt_safe_locale=
  36338. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  36339. +do
  36340. + eval "if test \"\${$lt_var+set}\" = set; then
  36341. + save_$lt_var=\$$lt_var
  36342. + $lt_var=C
  36343. + export $lt_var
  36344. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  36345. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  36346. + fi"
  36347. +done
  36348. +
  36349. +$lt_unset CDPATH
  36350. +
  36351. +
  36352. +
  36353. +
  36354. +
  36355. +: ${CP="cp -f"}
  36356. +: ${ECHO="echo"}
  36357. +: ${EGREP="/bin/grep -E"}
  36358. +: ${FGREP="/bin/grep -F"}
  36359. +: ${GREP="/bin/grep"}
  36360. +: ${LN_S="ln -s"}
  36361. +: ${MAKE="make"}
  36362. +: ${MKDIR="mkdir"}
  36363. +: ${MV="mv -f"}
  36364. +: ${RM="rm -f"}
  36365. +: ${SED="/bin/sed"}
  36366. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  36367. +: ${Xsed="$SED -e 1s/^X//"}
  36368. -basename="s,^.*/,,g"
  36369. +# Global variables:
  36370. +EXIT_SUCCESS=0
  36371. +EXIT_FAILURE=1
  36372. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  36373. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  36374. +
  36375. +exit_status=$EXIT_SUCCESS
  36376. +
  36377. +# Make sure IFS has a sensible default
  36378. +lt_nl='
  36379. +'
  36380. +IFS=" $lt_nl"
  36381. +
  36382. +dirname="s,/[^/]*$,,"
  36383. +basename="s,^.*/,,"
  36384. +
  36385. +# func_dirname_and_basename file append nondir_replacement
  36386. +# perform func_basename and func_dirname in a single function
  36387. +# call:
  36388. +# dirname: Compute the dirname of FILE. If nonempty,
  36389. +# add APPEND to the result, otherwise set result
  36390. +# to NONDIR_REPLACEMENT.
  36391. +# value returned in "$func_dirname_result"
  36392. +# basename: Compute filename of FILE.
  36393. +# value retuned in "$func_basename_result"
  36394. +# Implementation must be kept synchronized with func_dirname
  36395. +# and func_basename. For efficiency, we do not delegate to
  36396. +# those functions but instead duplicate the functionality here.
  36397. +func_dirname_and_basename ()
  36398. +{
  36399. + # Extract subdirectory from the argument.
  36400. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  36401. + if test "X$func_dirname_result" = "X${1}"; then
  36402. + func_dirname_result="${3}"
  36403. + else
  36404. + func_dirname_result="$func_dirname_result${2}"
  36405. + fi
  36406. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  36407. +}
  36408. +
  36409. +# Generated shell functions inserted here.
  36410. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  36411. # is ksh but when the shell is invoked as "sh" and the current value of
  36412. @@ -34,112 +178,174 @@
  36413. progpath="$0"
  36414. # The name of this program:
  36415. -progname=`echo "$progpath" | $SED $basename`
  36416. -modename="$progname"
  36417. +# In the unlikely event $progname began with a '-', it would play havoc with
  36418. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  36419. +func_dirname_and_basename "$progpath"
  36420. +progname=$func_basename_result
  36421. +case $progname in
  36422. + -*) progname=./$progname ;;
  36423. +esac
  36424. -# Global variables:
  36425. -EXIT_SUCCESS=0
  36426. -EXIT_FAILURE=1
  36427. +# Make sure we have an absolute path for reexecution:
  36428. +case $progpath in
  36429. + [\\/]*|[A-Za-z]:\\*) ;;
  36430. + *[\\/]*)
  36431. + progdir=$func_dirname_result
  36432. + progdir=`cd "$progdir" && pwd`
  36433. + progpath="$progdir/$progname"
  36434. + ;;
  36435. + *)
  36436. + save_IFS="$IFS"
  36437. + IFS=:
  36438. + for progdir in $PATH; do
  36439. + IFS="$save_IFS"
  36440. + test -x "$progdir/$progname" && break
  36441. + done
  36442. + IFS="$save_IFS"
  36443. + test -n "$progdir" || progdir=`pwd`
  36444. + progpath="$progdir/$progname"
  36445. + ;;
  36446. +esac
  36447. -PROGRAM=ltmain.sh
  36448. -PACKAGE=libtool
  36449. -VERSION="1.5.22 Debian 1.5.22-4"
  36450. -TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  36451. +# Sed substitution that helps us do robust quoting. It backslashifies
  36452. +# metacharacters that are still active within double-quoted strings.
  36453. +Xsed="${SED}"' -e 1s/^X//'
  36454. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  36455. -# See if we are running on zsh, and set the options which allow our
  36456. -# commands through without removal of \ escapes.
  36457. -if test -n "${ZSH_VERSION+set}" ; then
  36458. - setopt NO_GLOB_SUBST
  36459. -fi
  36460. +# Same as above, but do not quote variable references.
  36461. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  36462. -# Check that we have a working $echo.
  36463. -if test "X$1" = X--no-reexec; then
  36464. - # Discard the --no-reexec flag, and continue.
  36465. - shift
  36466. -elif test "X$1" = X--fallback-echo; then
  36467. - # Avoid inline document here, it may be left over
  36468. - :
  36469. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  36470. - # Yippee, $echo works!
  36471. - :
  36472. -else
  36473. - # Restart under the correct shell, and then maybe $echo will work.
  36474. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  36475. -fi
  36476. +# Re-`\' parameter expansions in output of double_quote_subst that were
  36477. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  36478. +# in input to double_quote_subst, that '$' was protected from expansion.
  36479. +# Since each input `\' is now two `\'s, look for any number of runs of
  36480. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  36481. +bs='\\'
  36482. +bs2='\\\\'
  36483. +bs4='\\\\\\\\'
  36484. +dollar='\$'
  36485. +sed_double_backslash="\
  36486. + s/$bs4/&\\
  36487. +/g
  36488. + s/^$bs2$dollar/$bs&/
  36489. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  36490. + s/\n//g"
  36491. +
  36492. +# Standard options:
  36493. +opt_dry_run=false
  36494. +opt_help=false
  36495. +opt_quiet=false
  36496. +opt_verbose=false
  36497. +opt_warning=:
  36498. +
  36499. +# func_echo arg...
  36500. +# Echo program name prefixed message, along with the current mode
  36501. +# name if it has been set yet.
  36502. +func_echo ()
  36503. +{
  36504. + $ECHO "$progname${mode+: }$mode: $*"
  36505. +}
  36506. -if test "X$1" = X--fallback-echo; then
  36507. - # used as fallback echo
  36508. - shift
  36509. - cat <<EOF
  36510. -$*
  36511. -EOF
  36512. - exit $EXIT_SUCCESS
  36513. -fi
  36514. +# func_verbose arg...
  36515. +# Echo program name prefixed message in verbose mode only.
  36516. +func_verbose ()
  36517. +{
  36518. + $opt_verbose && func_echo ${1+"$@"}
  36519. -default_mode=
  36520. -help="Try \`$progname --help' for more information."
  36521. -magic="%%%MAGIC variable%%%"
  36522. -mkdir="mkdir"
  36523. -mv="mv -f"
  36524. -rm="rm -f"
  36525. + # A bug in bash halts the script if the last line of a function
  36526. + # fails when set -e is in force, so we need another command to
  36527. + # work around that:
  36528. + :
  36529. +}
  36530. -# Sed substitution that helps us do robust quoting. It backslashifies
  36531. -# metacharacters that are still active within double-quoted strings.
  36532. -Xsed="${SED}"' -e 1s/^X//'
  36533. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  36534. -# test EBCDIC or ASCII
  36535. -case `echo X|tr X '\101'` in
  36536. - A) # ASCII based system
  36537. - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  36538. - SP2NL='tr \040 \012'
  36539. - NL2SP='tr \015\012 \040\040'
  36540. - ;;
  36541. - *) # EBCDIC based system
  36542. - SP2NL='tr \100 \n'
  36543. - NL2SP='tr \r\n \100\100'
  36544. - ;;
  36545. -esac
  36546. +# func_error arg...
  36547. +# Echo program name prefixed message to standard error.
  36548. +func_error ()
  36549. +{
  36550. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  36551. +}
  36552. -# NLS nuisances.
  36553. -# Only set LANG and LC_ALL to C if already set.
  36554. -# These must not be set unconditionally because not all systems understand
  36555. -# e.g. LANG=C (notably SCO).
  36556. -# We save the old values to restore during execute mode.
  36557. -if test "${LC_ALL+set}" = set; then
  36558. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  36559. -fi
  36560. -if test "${LANG+set}" = set; then
  36561. - save_LANG="$LANG"; LANG=C; export LANG
  36562. -fi
  36563. +# func_warning arg...
  36564. +# Echo program name prefixed warning message to standard error.
  36565. +func_warning ()
  36566. +{
  36567. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  36568. -# Make sure IFS has a sensible default
  36569. -lt_nl='
  36570. -'
  36571. -IFS=" $lt_nl"
  36572. + # bash bug again:
  36573. + :
  36574. +}
  36575. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  36576. - $echo "$modename: not configured to build any kind of library" 1>&2
  36577. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  36578. - exit $EXIT_FAILURE
  36579. -fi
  36580. +# func_fatal_error arg...
  36581. +# Echo program name prefixed message to standard error, and exit.
  36582. +func_fatal_error ()
  36583. +{
  36584. + func_error ${1+"$@"}
  36585. + exit $EXIT_FAILURE
  36586. +}
  36587. -# Global variables.
  36588. -mode=$default_mode
  36589. -nonopt=
  36590. -prev=
  36591. -prevopt=
  36592. -run=
  36593. -show="$echo"
  36594. -show_help=
  36595. -execute_dlfiles=
  36596. -duplicate_deps=no
  36597. -preserve_args=
  36598. -lo2o="s/\\.lo\$/.${objext}/"
  36599. -o2lo="s/\\.${objext}\$/.lo/"
  36600. +# func_fatal_help arg...
  36601. +# Echo program name prefixed message to standard error, followed by
  36602. +# a help hint, and exit.
  36603. +func_fatal_help ()
  36604. +{
  36605. + func_error ${1+"$@"}
  36606. + func_fatal_error "$help"
  36607. +}
  36608. +help="Try \`$progname --help' for more information." ## default
  36609. +
  36610. +
  36611. +# func_grep expression filename
  36612. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  36613. +func_grep ()
  36614. +{
  36615. + $GREP "$1" "$2" >/dev/null 2>&1
  36616. +}
  36617. +
  36618. +
  36619. +# func_mkdir_p directory-path
  36620. +# Make sure the entire path to DIRECTORY-PATH is available.
  36621. +func_mkdir_p ()
  36622. +{
  36623. + my_directory_path="$1"
  36624. + my_dir_list=
  36625. +
  36626. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  36627. +
  36628. + # Protect directory names starting with `-'
  36629. + case $my_directory_path in
  36630. + -*) my_directory_path="./$my_directory_path" ;;
  36631. + esac
  36632. +
  36633. + # While some portion of DIR does not yet exist...
  36634. + while test ! -d "$my_directory_path"; do
  36635. + # ...make a list in topmost first order. Use a colon delimited
  36636. + # list incase some portion of path contains whitespace.
  36637. + my_dir_list="$my_directory_path:$my_dir_list"
  36638. +
  36639. + # If the last portion added has no slash in it, the list is done
  36640. + case $my_directory_path in */*) ;; *) break ;; esac
  36641. +
  36642. + # ...otherwise throw away the child directory and loop
  36643. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  36644. + done
  36645. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  36646. +
  36647. + save_mkdir_p_IFS="$IFS"; IFS=':'
  36648. + for my_dir in $my_dir_list; do
  36649. + IFS="$save_mkdir_p_IFS"
  36650. + # mkdir can fail with a `File exist' error if two processes
  36651. + # try to create one of the directories concurrently. Don't
  36652. + # stop in that case!
  36653. + $MKDIR "$my_dir" 2>/dev/null || :
  36654. + done
  36655. + IFS="$save_mkdir_p_IFS"
  36656. +
  36657. + # Bail out if we (or some other process) failed to create a directory.
  36658. + test -d "$my_directory_path" || \
  36659. + func_fatal_error "Failed to create \`$1'"
  36660. + fi
  36661. +}
  36662. -#####################################
  36663. -# Shell function definitions:
  36664. -# This seems to be the best place for them
  36665. # func_mktempdir [string]
  36666. # Make a temporary directory that won't clash with other running
  36667. @@ -149,7 +355,7 @@
  36668. {
  36669. my_template="${TMPDIR-/tmp}/${1-$progname}"
  36670. - if test "$run" = ":"; then
  36671. + if test "$opt_dry_run" = ":"; then
  36672. # Return a directory name, but don't create it in dry-run mode
  36673. my_tmpdir="${my_template}-$$"
  36674. else
  36675. @@ -158,546 +364,818 @@
  36676. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  36677. if test ! -d "$my_tmpdir"; then
  36678. - # Failing that, at least try and use $RANDOM to avoid a race
  36679. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  36680. + # Failing that, at least try and use $RANDOM to avoid a race
  36681. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  36682. - save_mktempdir_umask=`umask`
  36683. - umask 0077
  36684. - $mkdir "$my_tmpdir"
  36685. - umask $save_mktempdir_umask
  36686. + save_mktempdir_umask=`umask`
  36687. + umask 0077
  36688. + $MKDIR "$my_tmpdir"
  36689. + umask $save_mktempdir_umask
  36690. fi
  36691. # If we're not in dry-run mode, bomb out on failure
  36692. - test -d "$my_tmpdir" || {
  36693. - $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  36694. - exit $EXIT_FAILURE
  36695. - }
  36696. + test -d "$my_tmpdir" || \
  36697. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  36698. fi
  36699. - $echo "X$my_tmpdir" | $Xsed
  36700. + $ECHO "X$my_tmpdir" | $Xsed
  36701. }
  36702. -# func_win32_libid arg
  36703. -# return the library type of file 'arg'
  36704. -#
  36705. -# Need a lot of goo to handle *both* DLLs and import libs
  36706. -# Has to be a shell function in order to 'eat' the argument
  36707. -# that is supplied when $file_magic_command is called.
  36708. -func_win32_libid ()
  36709. +# func_quote_for_eval arg
  36710. +# Aesthetically quote ARG to be evaled later.
  36711. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  36712. +# is double-quoted, suitable for a subsequent eval, whereas
  36713. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  36714. +# which are still active within double quotes backslashified.
  36715. +func_quote_for_eval ()
  36716. {
  36717. - win32_libid_type="unknown"
  36718. - win32_fileres=`file -L $1 2>/dev/null`
  36719. - case $win32_fileres in
  36720. - *ar\ archive\ import\ library*) # definitely import
  36721. - win32_libid_type="x86 archive import"
  36722. - ;;
  36723. - *ar\ archive*) # could be an import, or static
  36724. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  36725. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  36726. - win32_nmres=`eval $NM -f posix -A $1 | \
  36727. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  36728. - case $win32_nmres in
  36729. - import*) win32_libid_type="x86 archive import";;
  36730. - *) win32_libid_type="x86 archive static";;
  36731. - esac
  36732. - fi
  36733. - ;;
  36734. - *DLL*)
  36735. - win32_libid_type="x86 DLL"
  36736. - ;;
  36737. - *executable*) # but shell scripts are "executable" too...
  36738. - case $win32_fileres in
  36739. - *MS\ Windows\ PE\ Intel*)
  36740. - win32_libid_type="x86 DLL"
  36741. - ;;
  36742. + case $1 in
  36743. + *[\\\`\"\$]*)
  36744. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  36745. + *)
  36746. + func_quote_for_eval_unquoted_result="$1" ;;
  36747. + esac
  36748. +
  36749. + case $func_quote_for_eval_unquoted_result in
  36750. + # Double-quote args containing shell metacharacters to delay
  36751. + # word splitting, command substitution and and variable
  36752. + # expansion for a subsequent eval.
  36753. + # Many Bourne shells cannot handle close brackets correctly
  36754. + # in scan sets, so we specify it separately.
  36755. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  36756. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  36757. + ;;
  36758. + *)
  36759. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  36760. esac
  36761. - ;;
  36762. - esac
  36763. - $echo $win32_libid_type
  36764. }
  36765. -# func_infer_tag arg
  36766. -# Infer tagged configuration to use if any are available and
  36767. -# if one wasn't chosen via the "--tag" command line option.
  36768. -# Only attempt this if the compiler in the base compile
  36769. -# command doesn't match the default compiler.
  36770. -# arg is usually of the form 'gcc ...'
  36771. -func_infer_tag ()
  36772. +# func_quote_for_expand arg
  36773. +# Aesthetically quote ARG to be evaled later; same as above,
  36774. +# but do not quote variable references.
  36775. +func_quote_for_expand ()
  36776. {
  36777. - if test -n "$available_tags" && test -z "$tagname"; then
  36778. - CC_quoted=
  36779. - for arg in $CC; do
  36780. - case $arg in
  36781. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  36782. - arg="\"$arg\""
  36783. - ;;
  36784. - esac
  36785. - CC_quoted="$CC_quoted $arg"
  36786. - done
  36787. - case $@ in
  36788. - # Blanks in the command may have been stripped by the calling shell,
  36789. - # but not from the CC environment variable when configure was run.
  36790. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  36791. - # Blanks at the start of $base_compile will cause this to fail
  36792. - # if we don't check for them as well.
  36793. + case $1 in
  36794. + *[\\\`\"]*)
  36795. + my_arg=`$ECHO "X$1" | $Xsed \
  36796. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  36797. *)
  36798. - for z in $available_tags; do
  36799. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  36800. - # Evaluate the configuration.
  36801. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  36802. - CC_quoted=
  36803. - for arg in $CC; do
  36804. - # Double-quote args containing other shell metacharacters.
  36805. - case $arg in
  36806. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  36807. - arg="\"$arg\""
  36808. - ;;
  36809. - esac
  36810. - CC_quoted="$CC_quoted $arg"
  36811. - done
  36812. - case "$@ " in
  36813. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  36814. - # The compiler in the base compile command matches
  36815. - # the one in the tagged configuration.
  36816. - # Assume this is the tagged configuration we want.
  36817. - tagname=$z
  36818. - break
  36819. - ;;
  36820. - esac
  36821. - fi
  36822. - done
  36823. - # If $tagname still isn't set, then no tagged configuration
  36824. - # was found and let the user know that the "--tag" command
  36825. - # line option must be used.
  36826. - if test -z "$tagname"; then
  36827. - $echo "$modename: unable to infer tagged configuration"
  36828. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  36829. - exit $EXIT_FAILURE
  36830. -# else
  36831. -# $echo "$modename: using $tagname tagged configuration"
  36832. - fi
  36833. - ;;
  36834. - esac
  36835. - fi
  36836. + my_arg="$1" ;;
  36837. + esac
  36838. +
  36839. + case $my_arg in
  36840. + # Double-quote args containing shell metacharacters to delay
  36841. + # word splitting and command substitution for a subsequent eval.
  36842. + # Many Bourne shells cannot handle close brackets correctly
  36843. + # in scan sets, so we specify it separately.
  36844. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  36845. + my_arg="\"$my_arg\""
  36846. + ;;
  36847. + esac
  36848. +
  36849. + func_quote_for_expand_result="$my_arg"
  36850. }
  36851. -# func_extract_an_archive dir oldlib
  36852. -func_extract_an_archive ()
  36853. +# func_show_eval cmd [fail_exp]
  36854. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  36855. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  36856. +# is given, then evaluate it.
  36857. +func_show_eval ()
  36858. {
  36859. - f_ex_an_ar_dir="$1"; shift
  36860. - f_ex_an_ar_oldlib="$1"
  36861. + my_cmd="$1"
  36862. + my_fail_exp="${2-:}"
  36863. - $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  36864. - $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  36865. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  36866. - :
  36867. - else
  36868. - $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  36869. - exit $EXIT_FAILURE
  36870. + ${opt_silent-false} || {
  36871. + func_quote_for_expand "$my_cmd"
  36872. + eval "func_echo $func_quote_for_expand_result"
  36873. + }
  36874. +
  36875. + if ${opt_dry_run-false}; then :; else
  36876. + eval "$my_cmd"
  36877. + my_status=$?
  36878. + if test "$my_status" -eq 0; then :; else
  36879. + eval "(exit $my_status); $my_fail_exp"
  36880. + fi
  36881. fi
  36882. }
  36883. -# func_extract_archives gentop oldlib ...
  36884. -func_extract_archives ()
  36885. +
  36886. +# func_show_eval_locale cmd [fail_exp]
  36887. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  36888. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  36889. +# is given, then evaluate it. Use the saved locale for evaluation.
  36890. +func_show_eval_locale ()
  36891. {
  36892. - my_gentop="$1"; shift
  36893. - my_oldlibs=${1+"$@"}
  36894. - my_oldobjs=""
  36895. - my_xlib=""
  36896. - my_xabs=""
  36897. - my_xdir=""
  36898. - my_status=""
  36899. + my_cmd="$1"
  36900. + my_fail_exp="${2-:}"
  36901. +
  36902. + ${opt_silent-false} || {
  36903. + func_quote_for_expand "$my_cmd"
  36904. + eval "func_echo $func_quote_for_expand_result"
  36905. + }
  36906. - $show "${rm}r $my_gentop"
  36907. - $run ${rm}r "$my_gentop"
  36908. - $show "$mkdir $my_gentop"
  36909. - $run $mkdir "$my_gentop"
  36910. - my_status=$?
  36911. - if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  36912. - exit $my_status
  36913. + if ${opt_dry_run-false}; then :; else
  36914. + eval "$lt_user_locale
  36915. + $my_cmd"
  36916. + my_status=$?
  36917. + eval "$lt_safe_locale"
  36918. + if test "$my_status" -eq 0; then :; else
  36919. + eval "(exit $my_status); $my_fail_exp"
  36920. + fi
  36921. fi
  36922. +}
  36923. - for my_xlib in $my_oldlibs; do
  36924. - # Extract the objects.
  36925. - case $my_xlib in
  36926. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  36927. - *) my_xabs=`pwd`"/$my_xlib" ;;
  36928. - esac
  36929. - my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  36930. - my_xdir="$my_gentop/$my_xlib"
  36931. - $show "${rm}r $my_xdir"
  36932. - $run ${rm}r "$my_xdir"
  36933. - $show "$mkdir $my_xdir"
  36934. - $run $mkdir "$my_xdir"
  36935. - exit_status=$?
  36936. - if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  36937. - exit $exit_status
  36938. - fi
  36939. - case $host in
  36940. - *-darwin*)
  36941. - $show "Extracting $my_xabs"
  36942. - # Do not bother doing anything if just a dry run
  36943. - if test -z "$run"; then
  36944. - darwin_orig_dir=`pwd`
  36945. - cd $my_xdir || exit $?
  36946. - darwin_archive=$my_xabs
  36947. - darwin_curdir=`pwd`
  36948. - darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  36949. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  36950. - if test -n "$darwin_arches"; then
  36951. - darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  36952. - darwin_arch=
  36953. - $show "$darwin_base_archive has multiple architectures $darwin_arches"
  36954. - for darwin_arch in $darwin_arches ; do
  36955. - mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  36956. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  36957. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  36958. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  36959. - cd "$darwin_curdir"
  36960. - $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  36961. - done # $darwin_arches
  36962. - ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  36963. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  36964. - darwin_file=
  36965. - darwin_files=
  36966. - for darwin_file in $darwin_filelist; do
  36967. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  36968. - lipo -create -output "$darwin_file" $darwin_files
  36969. - done # $darwin_filelist
  36970. - ${rm}r unfat-$$
  36971. - cd "$darwin_orig_dir"
  36972. - else
  36973. - cd "$darwin_orig_dir"
  36974. - func_extract_an_archive "$my_xdir" "$my_xabs"
  36975. - fi # $darwin_arches
  36976. - fi # $run
  36977. - ;;
  36978. - *)
  36979. - func_extract_an_archive "$my_xdir" "$my_xabs"
  36980. - ;;
  36981. - esac
  36982. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  36983. - done
  36984. - func_extract_archives_result="$my_oldobjs"
  36985. +
  36986. +
  36987. +
  36988. +# func_version
  36989. +# Echo version message to standard output and exit.
  36990. +func_version ()
  36991. +{
  36992. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  36993. + s/^# //
  36994. + s/^# *$//
  36995. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  36996. + p
  36997. + }' < "$progpath"
  36998. + exit $?
  36999. }
  37000. -# End of Shell function definitions
  37001. -#####################################
  37002. -# Darwin sucks
  37003. -eval std_shrext=\"$shrext_cmds\"
  37004. +# func_usage
  37005. +# Echo short help message to standard output and exit.
  37006. +func_usage ()
  37007. +{
  37008. + $SED -n '/^# Usage:/,/# -h/ {
  37009. + s/^# //
  37010. + s/^# *$//
  37011. + s/\$progname/'$progname'/
  37012. + p
  37013. + }' < "$progpath"
  37014. + $ECHO
  37015. + $ECHO "run \`$progname --help | more' for full usage"
  37016. + exit $?
  37017. +}
  37018. -disable_libs=no
  37019. +# func_help
  37020. +# Echo long help message to standard output and exit.
  37021. +func_help ()
  37022. +{
  37023. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  37024. + s/^# //
  37025. + s/^# *$//
  37026. + s*\$progname*'$progname'*
  37027. + s*\$host*'"$host"'*
  37028. + s*\$SHELL*'"$SHELL"'*
  37029. + s*\$LTCC*'"$LTCC"'*
  37030. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  37031. + s*\$LD*'"$LD"'*
  37032. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  37033. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  37034. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  37035. + p
  37036. + }' < "$progpath"
  37037. + exit $?
  37038. +}
  37039. -# Parse our command line options once, thoroughly.
  37040. -while test "$#" -gt 0
  37041. -do
  37042. - arg="$1"
  37043. +# func_missing_arg argname
  37044. +# Echo program name prefixed message to standard error and set global
  37045. +# exit_cmd.
  37046. +func_missing_arg ()
  37047. +{
  37048. + func_error "missing argument for $1"
  37049. + exit_cmd=exit
  37050. +}
  37051. +
  37052. +exit_cmd=:
  37053. +
  37054. +
  37055. +
  37056. +
  37057. +
  37058. +# Check that we have a working $ECHO.
  37059. +if test "X$1" = X--no-reexec; then
  37060. + # Discard the --no-reexec flag, and continue.
  37061. shift
  37062. +elif test "X$1" = X--fallback-echo; then
  37063. + # Avoid inline document here, it may be left over
  37064. + :
  37065. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  37066. + # Yippee, $ECHO works!
  37067. + :
  37068. +else
  37069. + # Restart under the correct shell, and then maybe $ECHO will work.
  37070. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  37071. +fi
  37072. - case $arg in
  37073. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  37074. - *) optarg= ;;
  37075. - esac
  37076. +if test "X$1" = X--fallback-echo; then
  37077. + # used as fallback echo
  37078. + shift
  37079. + cat <<EOF
  37080. +$*
  37081. +EOF
  37082. + exit $EXIT_SUCCESS
  37083. +fi
  37084. - # If the previous option needs an argument, assign it.
  37085. - if test -n "$prev"; then
  37086. - case $prev in
  37087. - execute_dlfiles)
  37088. - execute_dlfiles="$execute_dlfiles $arg"
  37089. - ;;
  37090. - tag)
  37091. - tagname="$arg"
  37092. - preserve_args="${preserve_args}=$arg"
  37093. -
  37094. - # Check whether tagname contains only valid characters
  37095. - case $tagname in
  37096. - *[!-_A-Za-z0-9,/]*)
  37097. - $echo "$progname: invalid tag name: $tagname" 1>&2
  37098. - exit $EXIT_FAILURE
  37099. - ;;
  37100. - esac
  37101. +magic="%%%MAGIC variable%%%"
  37102. +magic_exe="%%%MAGIC EXE variable%%%"
  37103. - case $tagname in
  37104. - CC)
  37105. - # Don't test for the "default" C tag, as we know, it's there, but
  37106. - # not specially marked.
  37107. - ;;
  37108. - *)
  37109. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  37110. - taglist="$taglist $tagname"
  37111. - # Evaluate the configuration.
  37112. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  37113. - else
  37114. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  37115. - fi
  37116. - ;;
  37117. - esac
  37118. - ;;
  37119. - *)
  37120. - eval "$prev=\$arg"
  37121. - ;;
  37122. - esac
  37123. +# Global variables.
  37124. +# $mode is unset
  37125. +nonopt=
  37126. +execute_dlfiles=
  37127. +preserve_args=
  37128. +lo2o="s/\\.lo\$/.${objext}/"
  37129. +o2lo="s/\\.${objext}\$/.lo/"
  37130. +extracted_archives=
  37131. +extracted_serial=0
  37132. - prev=
  37133. - prevopt=
  37134. - continue
  37135. - fi
  37136. +opt_dry_run=false
  37137. +opt_duplicate_deps=false
  37138. +opt_silent=false
  37139. +opt_debug=:
  37140. - # Have we seen a non-optional argument yet?
  37141. - case $arg in
  37142. - --help)
  37143. - show_help=yes
  37144. - ;;
  37145. +# If this variable is set in any of the actions, the command in it
  37146. +# will be execed at the end. This prevents here-documents from being
  37147. +# left over by shells.
  37148. +exec_cmd=
  37149. - --version)
  37150. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  37151. - $echo
  37152. - $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  37153. - $echo "This is free software; see the source for copying conditions. There is NO"
  37154. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  37155. - exit $?
  37156. - ;;
  37157. +# func_fatal_configuration arg...
  37158. +# Echo program name prefixed message to standard error, followed by
  37159. +# a configuration failure hint, and exit.
  37160. +func_fatal_configuration ()
  37161. +{
  37162. + func_error ${1+"$@"}
  37163. + func_error "See the $PACKAGE documentation for more information."
  37164. + func_fatal_error "Fatal configuration error."
  37165. +}
  37166. +
  37167. +
  37168. +# func_config
  37169. +# Display the configuration for all the tags in this script.
  37170. +func_config ()
  37171. +{
  37172. + re_begincf='^# ### BEGIN LIBTOOL'
  37173. + re_endcf='^# ### END LIBTOOL'
  37174. +
  37175. + # Default configuration.
  37176. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  37177. - --config)
  37178. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  37179. # Now print the configurations for the tags.
  37180. for tagname in $taglist; do
  37181. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  37182. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  37183. done
  37184. - exit $?
  37185. - ;;
  37186. - --debug)
  37187. - $echo "$progname: enabling shell trace mode"
  37188. - set -x
  37189. - preserve_args="$preserve_args $arg"
  37190. - ;;
  37191. -
  37192. - --dry-run | -n)
  37193. - run=:
  37194. - ;;
  37195. + exit $?
  37196. +}
  37197. - --features)
  37198. - $echo "host: $host"
  37199. +# func_features
  37200. +# Display the features supported by this script.
  37201. +func_features ()
  37202. +{
  37203. + $ECHO "host: $host"
  37204. if test "$build_libtool_libs" = yes; then
  37205. - $echo "enable shared libraries"
  37206. + $ECHO "enable shared libraries"
  37207. else
  37208. - $echo "disable shared libraries"
  37209. + $ECHO "disable shared libraries"
  37210. fi
  37211. if test "$build_old_libs" = yes; then
  37212. - $echo "enable static libraries"
  37213. + $ECHO "enable static libraries"
  37214. else
  37215. - $echo "disable static libraries"
  37216. + $ECHO "disable static libraries"
  37217. fi
  37218. +
  37219. exit $?
  37220. - ;;
  37221. +}
  37222. - --finish) mode="finish" ;;
  37223. +# func_enable_tag tagname
  37224. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  37225. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  37226. +# variable here.
  37227. +func_enable_tag ()
  37228. +{
  37229. + # Global variable:
  37230. + tagname="$1"
  37231. - --mode) prevopt="--mode" prev=mode ;;
  37232. - --mode=*) mode="$optarg" ;;
  37233. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  37234. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  37235. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  37236. +
  37237. + # Validate tagname.
  37238. + case $tagname in
  37239. + *[!-_A-Za-z0-9,/]*)
  37240. + func_fatal_error "invalid tag name: $tagname"
  37241. + ;;
  37242. + esac
  37243. - --preserve-dup-deps) duplicate_deps="yes" ;;
  37244. + # Don't test for the "default" C tag, as we know it's
  37245. + # there but not specially marked.
  37246. + case $tagname in
  37247. + CC) ;;
  37248. + *)
  37249. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  37250. + taglist="$taglist $tagname"
  37251. - --quiet | --silent)
  37252. - show=:
  37253. - preserve_args="$preserve_args $arg"
  37254. - ;;
  37255. + # Evaluate the configuration. Be careful to quote the path
  37256. + # and the sed script, to avoid splitting on whitespace, but
  37257. + # also don't use non-portable quotes within backquotes within
  37258. + # quotes we have to do it in 2 steps:
  37259. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  37260. + eval "$extractedcf"
  37261. + else
  37262. + func_error "ignoring unknown tag $tagname"
  37263. + fi
  37264. + ;;
  37265. + esac
  37266. +}
  37267. +
  37268. +# Parse options once, thoroughly. This comes as soon as possible in
  37269. +# the script to make things like `libtool --version' happen quickly.
  37270. +{
  37271. - --tag)
  37272. - prevopt="--tag"
  37273. - prev=tag
  37274. - preserve_args="$preserve_args --tag"
  37275. + # Shorthand for --mode=foo, only valid as the first argument
  37276. + case $1 in
  37277. + clean|clea|cle|cl)
  37278. + shift; set dummy --mode clean ${1+"$@"}; shift
  37279. ;;
  37280. - --tag=*)
  37281. - set tag "$optarg" ${1+"$@"}
  37282. - shift
  37283. - prev=tag
  37284. - preserve_args="$preserve_args --tag"
  37285. + compile|compil|compi|comp|com|co|c)
  37286. + shift; set dummy --mode compile ${1+"$@"}; shift
  37287. ;;
  37288. -
  37289. - -dlopen)
  37290. - prevopt="-dlopen"
  37291. - prev=execute_dlfiles
  37292. + execute|execut|execu|exec|exe|ex|e)
  37293. + shift; set dummy --mode execute ${1+"$@"}; shift
  37294. ;;
  37295. -
  37296. - -*)
  37297. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  37298. - $echo "$help" 1>&2
  37299. - exit $EXIT_FAILURE
  37300. + finish|finis|fini|fin|fi|f)
  37301. + shift; set dummy --mode finish ${1+"$@"}; shift
  37302. ;;
  37303. -
  37304. - *)
  37305. - nonopt="$arg"
  37306. - break
  37307. + install|instal|insta|inst|ins|in|i)
  37308. + shift; set dummy --mode install ${1+"$@"}; shift
  37309. + ;;
  37310. + link|lin|li|l)
  37311. + shift; set dummy --mode link ${1+"$@"}; shift
  37312. + ;;
  37313. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  37314. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  37315. ;;
  37316. esac
  37317. -done
  37318. -if test -n "$prevopt"; then
  37319. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  37320. - $echo "$help" 1>&2
  37321. - exit $EXIT_FAILURE
  37322. -fi
  37323. + # Parse non-mode specific arguments:
  37324. + while test "$#" -gt 0; do
  37325. + opt="$1"
  37326. + shift
  37327. -case $disable_libs in
  37328. -no)
  37329. - ;;
  37330. -shared)
  37331. - build_libtool_libs=no
  37332. - build_old_libs=yes
  37333. - ;;
  37334. -static)
  37335. - build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  37336. - ;;
  37337. -esac
  37338. + case $opt in
  37339. + --config) func_config ;;
  37340. -# If this variable is set in any of the actions, the command in it
  37341. -# will be execed at the end. This prevents here-documents from being
  37342. -# left over by shells.
  37343. -exec_cmd=
  37344. + --debug) preserve_args="$preserve_args $opt"
  37345. + func_echo "enabling shell trace mode"
  37346. + opt_debug='set -x'
  37347. + $opt_debug
  37348. + ;;
  37349. +
  37350. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  37351. + execute_dlfiles="$execute_dlfiles $1"
  37352. + shift
  37353. + ;;
  37354. -if test -z "$show_help"; then
  37355. + --dry-run | -n) opt_dry_run=: ;;
  37356. + --features) func_features ;;
  37357. + --finish) mode="finish" ;;
  37358. +
  37359. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  37360. + case $1 in
  37361. + # Valid mode arguments:
  37362. + clean) ;;
  37363. + compile) ;;
  37364. + execute) ;;
  37365. + finish) ;;
  37366. + install) ;;
  37367. + link) ;;
  37368. + relink) ;;
  37369. + uninstall) ;;
  37370. +
  37371. + # Catch anything else as an error
  37372. + *) func_error "invalid argument for $opt"
  37373. + exit_cmd=exit
  37374. + break
  37375. + ;;
  37376. + esac
  37377. - # Infer the operation mode.
  37378. - if test -z "$mode"; then
  37379. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  37380. - $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  37381. - case $nonopt in
  37382. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  37383. - mode=link
  37384. - for arg
  37385. - do
  37386. - case $arg in
  37387. - -c)
  37388. - mode=compile
  37389. - break
  37390. - ;;
  37391. - esac
  37392. - done
  37393. - ;;
  37394. - *db | *dbx | *strace | *truss)
  37395. - mode=execute
  37396. - ;;
  37397. - *install*|cp|mv)
  37398. - mode=install
  37399. - ;;
  37400. - *rm)
  37401. - mode=uninstall
  37402. + mode="$1"
  37403. + shift
  37404. + ;;
  37405. +
  37406. + --preserve-dup-deps)
  37407. + opt_duplicate_deps=: ;;
  37408. +
  37409. + --quiet|--silent) preserve_args="$preserve_args $opt"
  37410. + opt_silent=:
  37411. + ;;
  37412. +
  37413. + --verbose| -v) preserve_args="$preserve_args $opt"
  37414. + opt_silent=false
  37415. + ;;
  37416. +
  37417. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  37418. + preserve_args="$preserve_args $opt $1"
  37419. + func_enable_tag "$1" # tagname is set here
  37420. + shift
  37421. + ;;
  37422. +
  37423. + # Separate optargs to long options:
  37424. + -dlopen=*|--mode=*|--tag=*)
  37425. + func_opt_split "$opt"
  37426. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  37427. + shift
  37428. + ;;
  37429. +
  37430. + -\?|-h) func_usage ;;
  37431. + --help) opt_help=: ;;
  37432. + --version) func_version ;;
  37433. +
  37434. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  37435. +
  37436. + *) nonopt="$opt"
  37437. + break
  37438. + ;;
  37439. + esac
  37440. + done
  37441. +
  37442. +
  37443. + case $host in
  37444. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  37445. + # don't eliminate duplications in $postdeps and $predeps
  37446. + opt_duplicate_compiler_generated_deps=:
  37447. ;;
  37448. *)
  37449. - # If we have no mode, but dlfiles were specified, then do execute mode.
  37450. - test -n "$execute_dlfiles" && mode=execute
  37451. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  37452. + ;;
  37453. + esac
  37454. - # Just use the default operation mode.
  37455. - if test -z "$mode"; then
  37456. - if test -n "$nonopt"; then
  37457. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  37458. - else
  37459. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  37460. - fi
  37461. + # Having warned about all mis-specified options, bail out if
  37462. + # anything was wrong.
  37463. + $exit_cmd $EXIT_FAILURE
  37464. +}
  37465. +
  37466. +# func_check_version_match
  37467. +# Ensure that we are using m4 macros, and libtool script from the same
  37468. +# release of libtool.
  37469. +func_check_version_match ()
  37470. +{
  37471. + if test "$package_revision" != "$macro_revision"; then
  37472. + if test "$VERSION" != "$macro_version"; then
  37473. + if test -z "$macro_version"; then
  37474. + cat >&2 <<_LT_EOF
  37475. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  37476. +$progname: definition of this LT_INIT comes from an older release.
  37477. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  37478. +$progname: and run autoconf again.
  37479. +_LT_EOF
  37480. + else
  37481. + cat >&2 <<_LT_EOF
  37482. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  37483. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  37484. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  37485. +$progname: and run autoconf again.
  37486. +_LT_EOF
  37487. fi
  37488. - ;;
  37489. - esac
  37490. + else
  37491. + cat >&2 <<_LT_EOF
  37492. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  37493. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  37494. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  37495. +$progname: of $PACKAGE $VERSION and run autoconf again.
  37496. +_LT_EOF
  37497. + fi
  37498. +
  37499. + exit $EXIT_MISMATCH
  37500. + fi
  37501. +}
  37502. +
  37503. +
  37504. +## ----------- ##
  37505. +## Main. ##
  37506. +## ----------- ##
  37507. +
  37508. +$opt_help || {
  37509. + # Sanity checks first:
  37510. + func_check_version_match
  37511. +
  37512. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  37513. + func_fatal_configuration "not configured to build any kind of library"
  37514. fi
  37515. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  37516. +
  37517. +
  37518. + # Darwin sucks
  37519. + eval std_shrext=\"$shrext_cmds\"
  37520. +
  37521. +
  37522. # Only execute mode is allowed to have -dlopen flags.
  37523. if test -n "$execute_dlfiles" && test "$mode" != execute; then
  37524. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  37525. - $echo "$help" 1>&2
  37526. + func_error "unrecognized option \`-dlopen'"
  37527. + $ECHO "$help" 1>&2
  37528. exit $EXIT_FAILURE
  37529. fi
  37530. # Change the help message to a mode-specific one.
  37531. generic_help="$help"
  37532. - help="Try \`$modename --help --mode=$mode' for more information."
  37533. + help="Try \`$progname --help --mode=$mode' for more information."
  37534. +}
  37535. - # These modes are in order of execution frequency so that they run quickly.
  37536. - case $mode in
  37537. - # libtool compile mode
  37538. - compile)
  37539. - modename="$modename: compile"
  37540. - # Get the compilation command and the source file.
  37541. - base_compile=
  37542. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  37543. - suppress_opt=yes
  37544. - suppress_output=
  37545. - arg_mode=normal
  37546. - libobj=
  37547. - later=
  37548. - for arg
  37549. - do
  37550. - case $arg_mode in
  37551. - arg )
  37552. - # do not "continue". Instead, add this to base_compile
  37553. - lastarg="$arg"
  37554. - arg_mode=normal
  37555. - ;;
  37556. +# func_lalib_p file
  37557. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  37558. +# This function is only a basic sanity check; it will hardly flush out
  37559. +# determined imposters.
  37560. +func_lalib_p ()
  37561. +{
  37562. + test -f "$1" &&
  37563. + $SED -e 4q "$1" 2>/dev/null \
  37564. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  37565. +}
  37566. - target )
  37567. - libobj="$arg"
  37568. - arg_mode=normal
  37569. - continue
  37570. - ;;
  37571. +# func_lalib_unsafe_p file
  37572. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  37573. +# This function implements the same check as func_lalib_p without
  37574. +# resorting to external programs. To this end, it redirects stdin and
  37575. +# closes it afterwards, without saving the original file descriptor.
  37576. +# As a safety measure, use it only where a negative result would be
  37577. +# fatal anyway. Works if `file' does not exist.
  37578. +func_lalib_unsafe_p ()
  37579. +{
  37580. + lalib_p=no
  37581. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  37582. + for lalib_p_l in 1 2 3 4
  37583. + do
  37584. + read lalib_p_line
  37585. + case "$lalib_p_line" in
  37586. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  37587. + esac
  37588. + done
  37589. + exec 0<&5 5<&-
  37590. + fi
  37591. + test "$lalib_p" = yes
  37592. +}
  37593. - normal )
  37594. - # Accept any command-line options.
  37595. - case $arg in
  37596. - -o)
  37597. - if test -n "$libobj" ; then
  37598. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  37599. - exit $EXIT_FAILURE
  37600. - fi
  37601. - arg_mode=target
  37602. - continue
  37603. - ;;
  37604. +# func_ltwrapper_script_p file
  37605. +# True iff FILE is a libtool wrapper script
  37606. +# This function is only a basic sanity check; it will hardly flush out
  37607. +# determined imposters.
  37608. +func_ltwrapper_script_p ()
  37609. +{
  37610. + func_lalib_p "$1"
  37611. +}
  37612. - -static | -prefer-pic | -prefer-non-pic)
  37613. - later="$later $arg"
  37614. - continue
  37615. - ;;
  37616. +# func_ltwrapper_executable_p file
  37617. +# True iff FILE is a libtool wrapper executable
  37618. +# This function is only a basic sanity check; it will hardly flush out
  37619. +# determined imposters.
  37620. +func_ltwrapper_executable_p ()
  37621. +{
  37622. + func_ltwrapper_exec_suffix=
  37623. + case $1 in
  37624. + *.exe) ;;
  37625. + *) func_ltwrapper_exec_suffix=.exe ;;
  37626. + esac
  37627. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  37628. +}
  37629. - -no-suppress)
  37630. - suppress_opt=no
  37631. - continue
  37632. - ;;
  37633. +# func_ltwrapper_scriptname file
  37634. +# Assumes file is an ltwrapper_executable
  37635. +# uses $file to determine the appropriate filename for a
  37636. +# temporary ltwrapper_script.
  37637. +func_ltwrapper_scriptname ()
  37638. +{
  37639. + func_ltwrapper_scriptname_result=""
  37640. + if func_ltwrapper_executable_p "$1"; then
  37641. + func_dirname_and_basename "$1" "" "."
  37642. + func_stripname '' '.exe' "$func_basename_result"
  37643. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  37644. + fi
  37645. +}
  37646. - -Xcompiler)
  37647. - arg_mode=arg # the next one goes into the "base_compile" arg list
  37648. - continue # The current "srcfile" will either be retained or
  37649. - ;; # replaced later. I would guess that would be a bug.
  37650. +# func_ltwrapper_p file
  37651. +# True iff FILE is a libtool wrapper script or wrapper executable
  37652. +# This function is only a basic sanity check; it will hardly flush out
  37653. +# determined imposters.
  37654. +func_ltwrapper_p ()
  37655. +{
  37656. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  37657. +}
  37658. - -Wc,*)
  37659. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  37660. - lastarg=
  37661. - save_ifs="$IFS"; IFS=','
  37662. - for arg in $args; do
  37663. - IFS="$save_ifs"
  37664. - # Double-quote args containing other shell metacharacters.
  37665. - # Many Bourne shells cannot handle close brackets correctly
  37666. - # in scan sets, so we specify it separately.
  37667. - case $arg in
  37668. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37669. - arg="\"$arg\""
  37670. +# func_execute_cmds commands fail_cmd
  37671. +# Execute tilde-delimited COMMANDS.
  37672. +# If FAIL_CMD is given, eval that upon failure.
  37673. +# FAIL_CMD may read-access the current command in variable CMD!
  37674. +func_execute_cmds ()
  37675. +{
  37676. + $opt_debug
  37677. + save_ifs=$IFS; IFS='~'
  37678. + for cmd in $1; do
  37679. + IFS=$save_ifs
  37680. + eval cmd=\"$cmd\"
  37681. + func_show_eval "$cmd" "${2-:}"
  37682. + done
  37683. + IFS=$save_ifs
  37684. +}
  37685. +
  37686. +
  37687. +# func_source file
  37688. +# Source FILE, adding directory component if necessary.
  37689. +# Note that it is not necessary on cygwin/mingw to append a dot to
  37690. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  37691. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  37692. +# `FILE.' does not work on cygwin managed mounts.
  37693. +func_source ()
  37694. +{
  37695. + $opt_debug
  37696. + case $1 in
  37697. + */* | *\\*) . "$1" ;;
  37698. + *) . "./$1" ;;
  37699. + esac
  37700. +}
  37701. +
  37702. +
  37703. +# func_infer_tag arg
  37704. +# Infer tagged configuration to use if any are available and
  37705. +# if one wasn't chosen via the "--tag" command line option.
  37706. +# Only attempt this if the compiler in the base compile
  37707. +# command doesn't match the default compiler.
  37708. +# arg is usually of the form 'gcc ...'
  37709. +func_infer_tag ()
  37710. +{
  37711. + $opt_debug
  37712. + if test -n "$available_tags" && test -z "$tagname"; then
  37713. + CC_quoted=
  37714. + for arg in $CC; do
  37715. + func_quote_for_eval "$arg"
  37716. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  37717. + done
  37718. + case $@ in
  37719. + # Blanks in the command may have been stripped by the calling shell,
  37720. + # but not from the CC environment variable when configure was run.
  37721. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  37722. + # Blanks at the start of $base_compile will cause this to fail
  37723. + # if we don't check for them as well.
  37724. + *)
  37725. + for z in $available_tags; do
  37726. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  37727. + # Evaluate the configuration.
  37728. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  37729. + CC_quoted=
  37730. + for arg in $CC; do
  37731. + # Double-quote args containing other shell metacharacters.
  37732. + func_quote_for_eval "$arg"
  37733. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  37734. + done
  37735. + case "$@ " in
  37736. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  37737. + # The compiler in the base compile command matches
  37738. + # the one in the tagged configuration.
  37739. + # Assume this is the tagged configuration we want.
  37740. + tagname=$z
  37741. + break
  37742. ;;
  37743. esac
  37744. - lastarg="$lastarg $arg"
  37745. + fi
  37746. + done
  37747. + # If $tagname still isn't set, then no tagged configuration
  37748. + # was found and let the user know that the "--tag" command
  37749. + # line option must be used.
  37750. + if test -z "$tagname"; then
  37751. + func_echo "unable to infer tagged configuration"
  37752. + func_fatal_error "specify a tag with \`--tag'"
  37753. +# else
  37754. +# func_verbose "using $tagname tagged configuration"
  37755. + fi
  37756. + ;;
  37757. + esac
  37758. + fi
  37759. +}
  37760. +
  37761. +
  37762. +
  37763. +# func_write_libtool_object output_name pic_name nonpic_name
  37764. +# Create a libtool object file (analogous to a ".la" file),
  37765. +# but don't create it if we're doing a dry run.
  37766. +func_write_libtool_object ()
  37767. +{
  37768. + write_libobj=${1}
  37769. + if test "$build_libtool_libs" = yes; then
  37770. + write_lobj=\'${2}\'
  37771. + else
  37772. + write_lobj=none
  37773. + fi
  37774. +
  37775. + if test "$build_old_libs" = yes; then
  37776. + write_oldobj=\'${3}\'
  37777. + else
  37778. + write_oldobj=none
  37779. + fi
  37780. +
  37781. + $opt_dry_run || {
  37782. + cat >${write_libobj}T <<EOF
  37783. +# $write_libobj - a libtool object file
  37784. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  37785. +#
  37786. +# Please DO NOT delete this file!
  37787. +# It is necessary for linking the library.
  37788. +
  37789. +# Name of the PIC object.
  37790. +pic_object=$write_lobj
  37791. +
  37792. +# Name of the non-PIC object
  37793. +non_pic_object=$write_oldobj
  37794. +
  37795. +EOF
  37796. + $MV "${write_libobj}T" "${write_libobj}"
  37797. + }
  37798. +}
  37799. +
  37800. +# func_mode_compile arg...
  37801. +func_mode_compile ()
  37802. +{
  37803. + $opt_debug
  37804. + # Get the compilation command and the source file.
  37805. + base_compile=
  37806. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  37807. + suppress_opt=yes
  37808. + suppress_output=
  37809. + arg_mode=normal
  37810. + libobj=
  37811. + later=
  37812. + pie_flag=
  37813. +
  37814. + for arg
  37815. + do
  37816. + case $arg_mode in
  37817. + arg )
  37818. + # do not "continue". Instead, add this to base_compile
  37819. + lastarg="$arg"
  37820. + arg_mode=normal
  37821. + ;;
  37822. +
  37823. + target )
  37824. + libobj="$arg"
  37825. + arg_mode=normal
  37826. + continue
  37827. + ;;
  37828. +
  37829. + normal )
  37830. + # Accept any command-line options.
  37831. + case $arg in
  37832. + -o)
  37833. + test -n "$libobj" && \
  37834. + func_fatal_error "you cannot specify \`-o' more than once"
  37835. + arg_mode=target
  37836. + continue
  37837. + ;;
  37838. +
  37839. + -pie | -fpie | -fPIE)
  37840. + pie_flag="$pie_flag $arg"
  37841. + continue
  37842. + ;;
  37843. +
  37844. + -shared | -static | -prefer-pic | -prefer-non-pic)
  37845. + later="$later $arg"
  37846. + continue
  37847. + ;;
  37848. +
  37849. + -no-suppress)
  37850. + suppress_opt=no
  37851. + continue
  37852. + ;;
  37853. +
  37854. + -Xcompiler)
  37855. + arg_mode=arg # the next one goes into the "base_compile" arg list
  37856. + continue # The current "srcfile" will either be retained or
  37857. + ;; # replaced later. I would guess that would be a bug.
  37858. +
  37859. + -Wc,*)
  37860. + func_stripname '-Wc,' '' "$arg"
  37861. + args=$func_stripname_result
  37862. + lastarg=
  37863. + save_ifs="$IFS"; IFS=','
  37864. + for arg in $args; do
  37865. + IFS="$save_ifs"
  37866. + func_quote_for_eval "$arg"
  37867. + lastarg="$lastarg $func_quote_for_eval_result"
  37868. done
  37869. IFS="$save_ifs"
  37870. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  37871. + func_stripname ' ' '' "$lastarg"
  37872. + lastarg=$func_stripname_result
  37873. # Add the arguments to base_compile.
  37874. base_compile="$base_compile $lastarg"
  37875. continue
  37876. ;;
  37877. - * )
  37878. + *)
  37879. # Accept the current argument as the source file.
  37880. # The previous "srcfile" becomes the current argument.
  37881. #
  37882. @@ -709,64 +1187,42 @@
  37883. esac # case $arg_mode
  37884. # Aesthetically quote the previous argument.
  37885. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  37886. -
  37887. - case $lastarg in
  37888. - # Double-quote args containing other shell metacharacters.
  37889. - # Many Bourne shells cannot handle close brackets correctly
  37890. - # in scan sets, and some SunOS ksh mistreat backslash-escaping
  37891. - # in scan sets (worked around with variable expansion),
  37892. - # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  37893. - # at all, so we specify them separately.
  37894. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37895. - lastarg="\"$lastarg\""
  37896. - ;;
  37897. - esac
  37898. -
  37899. - base_compile="$base_compile $lastarg"
  37900. + func_quote_for_eval "$lastarg"
  37901. + base_compile="$base_compile $func_quote_for_eval_result"
  37902. done # for arg
  37903. case $arg_mode in
  37904. arg)
  37905. - $echo "$modename: you must specify an argument for -Xcompile"
  37906. - exit $EXIT_FAILURE
  37907. + func_fatal_error "you must specify an argument for -Xcompile"
  37908. ;;
  37909. target)
  37910. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  37911. - exit $EXIT_FAILURE
  37912. + func_fatal_error "you must specify a target with \`-o'"
  37913. ;;
  37914. *)
  37915. # Get the name of the library object.
  37916. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  37917. + test -z "$libobj" && {
  37918. + func_basename "$srcfile"
  37919. + libobj="$func_basename_result"
  37920. + }
  37921. ;;
  37922. esac
  37923. # Recognize several different file suffixes.
  37924. # If the user specifies -o file.o, it is replaced with file.lo
  37925. - xform='[cCFSifmso]'
  37926. case $libobj in
  37927. - *.ada) xform=ada ;;
  37928. - *.adb) xform=adb ;;
  37929. - *.ads) xform=ads ;;
  37930. - *.asm) xform=asm ;;
  37931. - *.c++) xform=c++ ;;
  37932. - *.cc) xform=cc ;;
  37933. - *.ii) xform=ii ;;
  37934. - *.class) xform=class ;;
  37935. - *.cpp) xform=cpp ;;
  37936. - *.cxx) xform=cxx ;;
  37937. - *.f90) xform=f90 ;;
  37938. - *.for) xform=for ;;
  37939. - *.java) xform=java ;;
  37940. + *.[cCFSifmso] | \
  37941. + *.ada | *.adb | *.ads | *.asm | \
  37942. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  37943. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  37944. + func_xform "$libobj"
  37945. + libobj=$func_xform_result
  37946. + ;;
  37947. esac
  37948. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  37949. -
  37950. case $libobj in
  37951. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  37952. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  37953. *)
  37954. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  37955. - exit $EXIT_FAILURE
  37956. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  37957. ;;
  37958. esac
  37959. @@ -774,7 +1230,15 @@
  37960. for arg in $later; do
  37961. case $arg in
  37962. + -shared)
  37963. + test "$build_libtool_libs" != yes && \
  37964. + func_fatal_configuration "can not build a shared library"
  37965. + build_old_libs=no
  37966. + continue
  37967. + ;;
  37968. +
  37969. -static)
  37970. + build_libtool_libs=no
  37971. build_old_libs=yes
  37972. continue
  37973. ;;
  37974. @@ -791,28 +1255,17 @@
  37975. esac
  37976. done
  37977. - qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  37978. - case $qlibobj in
  37979. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  37980. - qlibobj="\"$qlibobj\"" ;;
  37981. - esac
  37982. - test "X$libobj" != "X$qlibobj" \
  37983. - && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  37984. - && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  37985. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  37986. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  37987. - if test "X$xdir" = "X$obj"; then
  37988. - xdir=
  37989. - else
  37990. - xdir=$xdir/
  37991. - fi
  37992. + func_quote_for_eval "$libobj"
  37993. + test "X$libobj" != "X$func_quote_for_eval_result" \
  37994. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  37995. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  37996. + func_dirname_and_basename "$obj" "/" ""
  37997. + objname="$func_basename_result"
  37998. + xdir="$func_dirname_result"
  37999. lobj=${xdir}$objdir/$objname
  38000. - if test -z "$base_compile"; then
  38001. - $echo "$modename: you must specify a compilation command" 1>&2
  38002. - $echo "$help" 1>&2
  38003. - exit $EXIT_FAILURE
  38004. - fi
  38005. + test -z "$base_compile" && \
  38006. + func_fatal_help "you must specify a compilation command"
  38007. # Delete any leftover library objects.
  38008. if test "$build_old_libs" = yes; then
  38009. @@ -821,12 +1274,9 @@
  38010. removelist="$lobj $libobj ${libobj}T"
  38011. fi
  38012. - $run $rm $removelist
  38013. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  38014. -
  38015. # On Cygwin there's no "real" PIC flag so we must build both object types
  38016. case $host_os in
  38017. - cygwin* | mingw* | pw32* | os2*)
  38018. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  38019. pic_mode=default
  38020. ;;
  38021. esac
  38022. @@ -838,10 +1288,8 @@
  38023. # Calculate the filename of the output object if compiler does
  38024. # not support -o with -c
  38025. if test "$compiler_c_o" = no; then
  38026. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  38027. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  38028. lockfile="$output_obj.lock"
  38029. - removelist="$removelist $output_obj $lockfile"
  38030. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  38031. else
  38032. output_obj=
  38033. need_locks=no
  38034. @@ -851,13 +1299,13 @@
  38035. # Lock this critical section if it is needed
  38036. # We use this script file to make the link, it avoids creating a new file
  38037. if test "$need_locks" = yes; then
  38038. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  38039. - $show "Waiting for $lockfile to be removed"
  38040. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  38041. + func_echo "Waiting for $lockfile to be removed"
  38042. sleep 2
  38043. done
  38044. elif test "$need_locks" = warn; then
  38045. if test -f "$lockfile"; then
  38046. - $echo "\
  38047. + $ECHO "\
  38048. *** ERROR, $lockfile exists and contains:
  38049. `cat $lockfile 2>/dev/null`
  38050. @@ -868,34 +1316,22 @@
  38051. avoid parallel builds (make -j) in this platform, or get a better
  38052. compiler."
  38053. - $run $rm $removelist
  38054. + $opt_dry_run || $RM $removelist
  38055. exit $EXIT_FAILURE
  38056. fi
  38057. - $echo "$srcfile" > "$lockfile"
  38058. + removelist="$removelist $output_obj"
  38059. + $ECHO "$srcfile" > "$lockfile"
  38060. fi
  38061. + $opt_dry_run || $RM $removelist
  38062. + removelist="$removelist $lockfile"
  38063. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  38064. +
  38065. if test -n "$fix_srcfile_path"; then
  38066. eval srcfile=\"$fix_srcfile_path\"
  38067. fi
  38068. - qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  38069. - case $qsrcfile in
  38070. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38071. - qsrcfile="\"$qsrcfile\"" ;;
  38072. - esac
  38073. -
  38074. - $run $rm "$libobj" "${libobj}T"
  38075. -
  38076. - # Create a libtool object file (analogous to a ".la" file),
  38077. - # but don't create it if we're doing a dry run.
  38078. - test -z "$run" && cat > ${libobj}T <<EOF
  38079. -# $libobj - a libtool object file
  38080. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  38081. -#
  38082. -# Please DO NOT delete this file!
  38083. -# It is necessary for linking the library.
  38084. -
  38085. -# Name of the PIC object.
  38086. -EOF
  38087. + func_quote_for_eval "$srcfile"
  38088. + qsrcfile=$func_quote_for_eval_result
  38089. # Only build a PIC object if we are building libtool libraries.
  38090. if test "$build_libtool_libs" = yes; then
  38091. @@ -909,32 +1345,19 @@
  38092. command="$base_compile $qsrcfile"
  38093. fi
  38094. - if test ! -d "${xdir}$objdir"; then
  38095. - $show "$mkdir ${xdir}$objdir"
  38096. - $run $mkdir ${xdir}$objdir
  38097. - exit_status=$?
  38098. - if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  38099. - exit $exit_status
  38100. - fi
  38101. - fi
  38102. + func_mkdir_p "$xdir$objdir"
  38103. if test -z "$output_obj"; then
  38104. # Place PIC objects in $objdir
  38105. command="$command -o $lobj"
  38106. fi
  38107. - $run $rm "$lobj" "$output_obj"
  38108. -
  38109. - $show "$command"
  38110. - if $run eval "$command"; then :
  38111. - else
  38112. - test -n "$output_obj" && $run $rm $removelist
  38113. - exit $EXIT_FAILURE
  38114. - fi
  38115. + func_show_eval_locale "$command" \
  38116. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  38117. if test "$need_locks" = warn &&
  38118. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  38119. - $echo "\
  38120. + $ECHO "\
  38121. *** ERROR, $lockfile contains:
  38122. `cat $lockfile 2>/dev/null`
  38123. @@ -948,45 +1371,27 @@
  38124. avoid parallel builds (make -j) in this platform, or get a better
  38125. compiler."
  38126. - $run $rm $removelist
  38127. + $opt_dry_run || $RM $removelist
  38128. exit $EXIT_FAILURE
  38129. fi
  38130. # Just move the object if needed, then go on to compile the next one
  38131. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  38132. - $show "$mv $output_obj $lobj"
  38133. - if $run $mv $output_obj $lobj; then :
  38134. - else
  38135. - error=$?
  38136. - $run $rm $removelist
  38137. - exit $error
  38138. - fi
  38139. + func_show_eval '$MV "$output_obj" "$lobj"' \
  38140. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  38141. fi
  38142. - # Append the name of the PIC object to the libtool object file.
  38143. - test -z "$run" && cat >> ${libobj}T <<EOF
  38144. -pic_object='$objdir/$objname'
  38145. -
  38146. -EOF
  38147. -
  38148. # Allow error messages only from the first compilation.
  38149. if test "$suppress_opt" = yes; then
  38150. - suppress_output=' >/dev/null 2>&1'
  38151. + suppress_output=' >/dev/null 2>&1'
  38152. fi
  38153. - else
  38154. - # No PIC object so indicate it doesn't exist in the libtool
  38155. - # object file.
  38156. - test -z "$run" && cat >> ${libobj}T <<EOF
  38157. -pic_object=none
  38158. -
  38159. -EOF
  38160. fi
  38161. # Only build a position-dependent object if we build old libraries.
  38162. if test "$build_old_libs" = yes; then
  38163. if test "$pic_mode" != yes; then
  38164. # Don't build PIC code
  38165. - command="$base_compile $qsrcfile"
  38166. + command="$base_compile $qsrcfile$pie_flag"
  38167. else
  38168. command="$base_compile $qsrcfile $pic_flag"
  38169. fi
  38170. @@ -996,17 +1401,12 @@
  38171. # Suppress compiler output if we already did a PIC compilation.
  38172. command="$command$suppress_output"
  38173. - $run $rm "$obj" "$output_obj"
  38174. - $show "$command"
  38175. - if $run eval "$command"; then :
  38176. - else
  38177. - $run $rm $removelist
  38178. - exit $EXIT_FAILURE
  38179. - fi
  38180. + func_show_eval_locale "$command" \
  38181. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  38182. if test "$need_locks" = warn &&
  38183. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  38184. - $echo "\
  38185. + $ECHO "\
  38186. *** ERROR, $lockfile contains:
  38187. `cat $lockfile 2>/dev/null`
  38188. @@ -1020,5431 +1420,6784 @@
  38189. avoid parallel builds (make -j) in this platform, or get a better
  38190. compiler."
  38191. - $run $rm $removelist
  38192. + $opt_dry_run || $RM $removelist
  38193. exit $EXIT_FAILURE
  38194. fi
  38195. # Just move the object if needed
  38196. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  38197. - $show "$mv $output_obj $obj"
  38198. - if $run $mv $output_obj $obj; then :
  38199. - else
  38200. - error=$?
  38201. - $run $rm $removelist
  38202. - exit $error
  38203. - fi
  38204. + func_show_eval '$MV "$output_obj" "$obj"' \
  38205. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  38206. fi
  38207. -
  38208. - # Append the name of the non-PIC object the libtool object file.
  38209. - # Only append if the libtool object file exists.
  38210. - test -z "$run" && cat >> ${libobj}T <<EOF
  38211. -# Name of the non-PIC object.
  38212. -non_pic_object='$objname'
  38213. -
  38214. -EOF
  38215. - else
  38216. - # Append the name of the non-PIC object the libtool object file.
  38217. - # Only append if the libtool object file exists.
  38218. - test -z "$run" && cat >> ${libobj}T <<EOF
  38219. -# Name of the non-PIC object.
  38220. -non_pic_object=none
  38221. -
  38222. -EOF
  38223. fi
  38224. - $run $mv "${libobj}T" "${libobj}"
  38225. + $opt_dry_run || {
  38226. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  38227. - # Unlock the critical section if it was locked
  38228. - if test "$need_locks" != no; then
  38229. - $run $rm "$lockfile"
  38230. - fi
  38231. + # Unlock the critical section if it was locked
  38232. + if test "$need_locks" != no; then
  38233. + removelist=$lockfile
  38234. + $RM "$lockfile"
  38235. + fi
  38236. + }
  38237. exit $EXIT_SUCCESS
  38238. - ;;
  38239. -
  38240. - # libtool link mode
  38241. - link | relink)
  38242. - modename="$modename: link"
  38243. - case $host in
  38244. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  38245. - # It is impossible to link a dll without this setting, and
  38246. - # we shouldn't force the makefile maintainer to figure out
  38247. - # which system we are compiling for in order to pass an extra
  38248. - # flag for every libtool invocation.
  38249. - # allow_undefined=no
  38250. +}
  38251. - # FIXME: Unfortunately, there are problems with the above when trying
  38252. - # to make a dll which has undefined symbols, in which case not
  38253. - # even a static library is built. For now, we need to specify
  38254. - # -no-undefined on the libtool link line when we can be certain
  38255. - # that all symbols are satisfied, otherwise we get a static library.
  38256. - allow_undefined=yes
  38257. - ;;
  38258. - *)
  38259. - allow_undefined=yes
  38260. - ;;
  38261. - esac
  38262. - libtool_args="$nonopt"
  38263. - base_compile="$nonopt $@"
  38264. - compile_command="$nonopt"
  38265. - finalize_command="$nonopt"
  38266. +$opt_help || {
  38267. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  38268. +}
  38269. - compile_rpath=
  38270. - finalize_rpath=
  38271. - compile_shlibpath=
  38272. - finalize_shlibpath=
  38273. - convenience=
  38274. - old_convenience=
  38275. - deplibs=
  38276. - old_deplibs=
  38277. - compiler_flags=
  38278. - linker_flags=
  38279. - dllsearchpath=
  38280. - lib_search_path=`pwd`
  38281. - inst_prefix_dir=
  38282. +func_mode_help ()
  38283. +{
  38284. + # We need to display help for each of the modes.
  38285. + case $mode in
  38286. + "")
  38287. + # Generic help is extracted from the usage comments
  38288. + # at the start of this file.
  38289. + func_help
  38290. + ;;
  38291. - avoid_version=no
  38292. - dlfiles=
  38293. - dlprefiles=
  38294. - dlself=no
  38295. - export_dynamic=no
  38296. - export_symbols=
  38297. - export_symbols_regex=
  38298. - generated=
  38299. - libobjs=
  38300. - ltlibs=
  38301. - module=no
  38302. - no_install=no
  38303. - objs=
  38304. - non_pic_objects=
  38305. - notinst_path= # paths that contain not-installed libtool libraries
  38306. - precious_files_regex=
  38307. - prefer_static_libs=no
  38308. - preload=no
  38309. - prev=
  38310. - prevarg=
  38311. - release=
  38312. - rpath=
  38313. - xrpath=
  38314. - perm_rpath=
  38315. - temp_rpath=
  38316. - thread_safe=no
  38317. - vinfo=
  38318. - vinfo_number=no
  38319. + clean)
  38320. + $ECHO \
  38321. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  38322. - func_infer_tag $base_compile
  38323. +Remove files from the build directory.
  38324. - # We need to know -static, to get the right output filenames.
  38325. - for arg
  38326. - do
  38327. - case $arg in
  38328. - -all-static | -static)
  38329. - if test "X$arg" = "X-all-static"; then
  38330. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  38331. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  38332. - fi
  38333. - if test -n "$link_static_flag"; then
  38334. - dlopen_self=$dlopen_self_static
  38335. - fi
  38336. - prefer_static_libs=yes
  38337. - else
  38338. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  38339. - dlopen_self=$dlopen_self_static
  38340. - fi
  38341. - prefer_static_libs=built
  38342. - fi
  38343. - build_libtool_libs=no
  38344. - build_old_libs=yes
  38345. - break
  38346. - ;;
  38347. - esac
  38348. - done
  38349. +RM is the name of the program to use to delete files associated with each FILE
  38350. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  38351. +to RM.
  38352. - # See if our shared archives depend on static archives.
  38353. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  38354. +If FILE is a libtool library, object or program, all the files associated
  38355. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  38356. + ;;
  38357. - # Go through the arguments, transforming them on the way.
  38358. - while test "$#" -gt 0; do
  38359. - arg="$1"
  38360. - shift
  38361. - case $arg in
  38362. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38363. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  38364. - ;;
  38365. - *) qarg=$arg ;;
  38366. - esac
  38367. - libtool_args="$libtool_args $qarg"
  38368. + compile)
  38369. + $ECHO \
  38370. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  38371. - # If the previous option needs an argument, assign it.
  38372. - if test -n "$prev"; then
  38373. - case $prev in
  38374. - output)
  38375. - compile_command="$compile_command @OUTPUT@"
  38376. - finalize_command="$finalize_command @OUTPUT@"
  38377. - ;;
  38378. - esac
  38379. +Compile a source file into a libtool library object.
  38380. - case $prev in
  38381. - dlfiles|dlprefiles)
  38382. - if test "$preload" = no; then
  38383. - # Add the symbol object into the linking commands.
  38384. - compile_command="$compile_command @SYMFILE@"
  38385. - finalize_command="$finalize_command @SYMFILE@"
  38386. - preload=yes
  38387. - fi
  38388. - case $arg in
  38389. - *.la | *.lo) ;; # We handle these cases below.
  38390. - force)
  38391. - if test "$dlself" = no; then
  38392. - dlself=needless
  38393. - export_dynamic=yes
  38394. - fi
  38395. - prev=
  38396. - continue
  38397. - ;;
  38398. - self)
  38399. - if test "$prev" = dlprefiles; then
  38400. - dlself=yes
  38401. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  38402. - dlself=yes
  38403. - else
  38404. - dlself=needless
  38405. - export_dynamic=yes
  38406. - fi
  38407. - prev=
  38408. - continue
  38409. - ;;
  38410. - *)
  38411. - if test "$prev" = dlfiles; then
  38412. - dlfiles="$dlfiles $arg"
  38413. - else
  38414. - dlprefiles="$dlprefiles $arg"
  38415. - fi
  38416. - prev=
  38417. - continue
  38418. - ;;
  38419. - esac
  38420. - ;;
  38421. - expsyms)
  38422. - export_symbols="$arg"
  38423. - if test ! -f "$arg"; then
  38424. - $echo "$modename: symbol file \`$arg' does not exist"
  38425. - exit $EXIT_FAILURE
  38426. - fi
  38427. - prev=
  38428. - continue
  38429. - ;;
  38430. - expsyms_regex)
  38431. - export_symbols_regex="$arg"
  38432. - prev=
  38433. - continue
  38434. - ;;
  38435. - inst_prefix)
  38436. - inst_prefix_dir="$arg"
  38437. - prev=
  38438. - continue
  38439. - ;;
  38440. - precious_regex)
  38441. - precious_files_regex="$arg"
  38442. - prev=
  38443. - continue
  38444. - ;;
  38445. - release)
  38446. - release="-$arg"
  38447. - prev=
  38448. - continue
  38449. - ;;
  38450. - objectlist)
  38451. - if test -f "$arg"; then
  38452. - save_arg=$arg
  38453. - moreargs=
  38454. - for fil in `cat $save_arg`
  38455. - do
  38456. -# moreargs="$moreargs $fil"
  38457. - arg=$fil
  38458. - # A libtool-controlled object.
  38459. +This mode accepts the following additional options:
  38460. - # Check to see that this really is a libtool object.
  38461. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  38462. - pic_object=
  38463. - non_pic_object=
  38464. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  38465. + -no-suppress do not suppress compiler output for multiple passes
  38466. + -prefer-pic try to building PIC objects only
  38467. + -prefer-non-pic try to building non-PIC objects only
  38468. + -shared do not build a \`.o' file suitable for static linking
  38469. + -static only build a \`.o' file suitable for static linking
  38470. - # Read the .lo file
  38471. - # If there is no directory component, then add one.
  38472. - case $arg in
  38473. - */* | *\\*) . $arg ;;
  38474. - *) . ./$arg ;;
  38475. - esac
  38476. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  38477. +from the given SOURCEFILE.
  38478. - if test -z "$pic_object" || \
  38479. - test -z "$non_pic_object" ||
  38480. - test "$pic_object" = none && \
  38481. - test "$non_pic_object" = none; then
  38482. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  38483. - exit $EXIT_FAILURE
  38484. - fi
  38485. +The output file name is determined by removing the directory component from
  38486. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  38487. +library object suffix, \`.lo'."
  38488. + ;;
  38489. - # Extract subdirectory from the argument.
  38490. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  38491. - if test "X$xdir" = "X$arg"; then
  38492. - xdir=
  38493. - else
  38494. - xdir="$xdir/"
  38495. - fi
  38496. + execute)
  38497. + $ECHO \
  38498. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  38499. - if test "$pic_object" != none; then
  38500. - # Prepend the subdirectory the object is found in.
  38501. - pic_object="$xdir$pic_object"
  38502. +Automatically set library path, then run a program.
  38503. - if test "$prev" = dlfiles; then
  38504. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  38505. - dlfiles="$dlfiles $pic_object"
  38506. - prev=
  38507. - continue
  38508. - else
  38509. - # If libtool objects are unsupported, then we need to preload.
  38510. - prev=dlprefiles
  38511. - fi
  38512. - fi
  38513. +This mode accepts the following additional options:
  38514. - # CHECK ME: I think I busted this. -Ossama
  38515. - if test "$prev" = dlprefiles; then
  38516. - # Preload the old-style object.
  38517. - dlprefiles="$dlprefiles $pic_object"
  38518. - prev=
  38519. - fi
  38520. + -dlopen FILE add the directory containing FILE to the library path
  38521. - # A PIC object.
  38522. - libobjs="$libobjs $pic_object"
  38523. - arg="$pic_object"
  38524. - fi
  38525. +This mode sets the library path environment variable according to \`-dlopen'
  38526. +flags.
  38527. - # Non-PIC object.
  38528. - if test "$non_pic_object" != none; then
  38529. - # Prepend the subdirectory the object is found in.
  38530. - non_pic_object="$xdir$non_pic_object"
  38531. +If any of the ARGS are libtool executable wrappers, then they are translated
  38532. +into their corresponding uninstalled binary, and any of their required library
  38533. +directories are added to the library path.
  38534. - # A standard non-PIC object
  38535. - non_pic_objects="$non_pic_objects $non_pic_object"
  38536. - if test -z "$pic_object" || test "$pic_object" = none ; then
  38537. - arg="$non_pic_object"
  38538. - fi
  38539. - else
  38540. - # If the PIC object exists, use it instead.
  38541. - # $xdir was prepended to $pic_object above.
  38542. - non_pic_object="$pic_object"
  38543. - non_pic_objects="$non_pic_objects $non_pic_object"
  38544. - fi
  38545. - else
  38546. - # Only an error if not doing a dry-run.
  38547. - if test -z "$run"; then
  38548. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  38549. - exit $EXIT_FAILURE
  38550. - else
  38551. - # Dry-run case.
  38552. +Then, COMMAND is executed, with ARGS as arguments."
  38553. + ;;
  38554. - # Extract subdirectory from the argument.
  38555. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  38556. - if test "X$xdir" = "X$arg"; then
  38557. - xdir=
  38558. - else
  38559. - xdir="$xdir/"
  38560. - fi
  38561. + finish)
  38562. + $ECHO \
  38563. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  38564. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  38565. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  38566. - libobjs="$libobjs $pic_object"
  38567. - non_pic_objects="$non_pic_objects $non_pic_object"
  38568. - fi
  38569. - fi
  38570. - done
  38571. - else
  38572. - $echo "$modename: link input file \`$save_arg' does not exist"
  38573. - exit $EXIT_FAILURE
  38574. - fi
  38575. - arg=$save_arg
  38576. - prev=
  38577. - continue
  38578. - ;;
  38579. - rpath | xrpath)
  38580. - # We need an absolute path.
  38581. - case $arg in
  38582. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  38583. - *)
  38584. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  38585. - exit $EXIT_FAILURE
  38586. - ;;
  38587. - esac
  38588. - if test "$prev" = rpath; then
  38589. - case "$rpath " in
  38590. - *" $arg "*) ;;
  38591. - *) rpath="$rpath $arg" ;;
  38592. - esac
  38593. - else
  38594. - case "$xrpath " in
  38595. - *" $arg "*) ;;
  38596. - *) xrpath="$xrpath $arg" ;;
  38597. - esac
  38598. - fi
  38599. - prev=
  38600. - continue
  38601. - ;;
  38602. - xcompiler)
  38603. - compiler_flags="$compiler_flags $qarg"
  38604. - prev=
  38605. - compile_command="$compile_command $qarg"
  38606. - finalize_command="$finalize_command $qarg"
  38607. - continue
  38608. - ;;
  38609. - xlinker)
  38610. - linker_flags="$linker_flags $qarg"
  38611. - compiler_flags="$compiler_flags $wl$qarg"
  38612. - prev=
  38613. - compile_command="$compile_command $wl$qarg"
  38614. - finalize_command="$finalize_command $wl$qarg"
  38615. - continue
  38616. - ;;
  38617. - xcclinker)
  38618. - linker_flags="$linker_flags $qarg"
  38619. - compiler_flags="$compiler_flags $qarg"
  38620. - prev=
  38621. - compile_command="$compile_command $qarg"
  38622. - finalize_command="$finalize_command $qarg"
  38623. - continue
  38624. - ;;
  38625. - shrext)
  38626. - shrext_cmds="$arg"
  38627. - prev=
  38628. - continue
  38629. - ;;
  38630. - darwin_framework|darwin_framework_skip)
  38631. - test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  38632. - compile_command="$compile_command $arg"
  38633. - finalize_command="$finalize_command $arg"
  38634. - prev=
  38635. - continue
  38636. - ;;
  38637. - *)
  38638. - eval "$prev=\"\$arg\""
  38639. - prev=
  38640. - continue
  38641. - ;;
  38642. - esac
  38643. - fi # test -n "$prev"
  38644. +Complete the installation of libtool libraries.
  38645. - prevarg="$arg"
  38646. +Each LIBDIR is a directory that contains libtool libraries.
  38647. - case $arg in
  38648. - -all-static)
  38649. - if test -n "$link_static_flag"; then
  38650. - compile_command="$compile_command $link_static_flag"
  38651. - finalize_command="$finalize_command $link_static_flag"
  38652. - fi
  38653. - continue
  38654. - ;;
  38655. +The commands that this mode executes may require superuser privileges. Use
  38656. +the \`--dry-run' option if you just want to see what would be executed."
  38657. + ;;
  38658. - -allow-undefined)
  38659. - # FIXME: remove this flag sometime in the future.
  38660. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  38661. - continue
  38662. - ;;
  38663. + install)
  38664. + $ECHO \
  38665. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  38666. - -avoid-version)
  38667. - avoid_version=yes
  38668. - continue
  38669. - ;;
  38670. +Install executables or libraries.
  38671. - -dlopen)
  38672. - prev=dlfiles
  38673. - continue
  38674. - ;;
  38675. +INSTALL-COMMAND is the installation command. The first component should be
  38676. +either the \`install' or \`cp' program.
  38677. - -dlpreopen)
  38678. - prev=dlprefiles
  38679. - continue
  38680. - ;;
  38681. +The following components of INSTALL-COMMAND are treated specially:
  38682. - -export-dynamic)
  38683. - export_dynamic=yes
  38684. - continue
  38685. - ;;
  38686. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  38687. - -export-symbols | -export-symbols-regex)
  38688. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  38689. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  38690. - exit $EXIT_FAILURE
  38691. - fi
  38692. - if test "X$arg" = "X-export-symbols"; then
  38693. - prev=expsyms
  38694. - else
  38695. - prev=expsyms_regex
  38696. - fi
  38697. - continue
  38698. - ;;
  38699. +The rest of the components are interpreted as arguments to that command (only
  38700. +BSD-compatible install options are recognized)."
  38701. + ;;
  38702. - -framework|-arch|-isysroot)
  38703. - case " $CC " in
  38704. - *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  38705. - prev=darwin_framework_skip ;;
  38706. - *) compiler_flags="$compiler_flags $arg"
  38707. - prev=darwin_framework ;;
  38708. - esac
  38709. - compile_command="$compile_command $arg"
  38710. - finalize_command="$finalize_command $arg"
  38711. - continue
  38712. - ;;
  38713. + link)
  38714. + $ECHO \
  38715. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  38716. - -inst-prefix-dir)
  38717. - prev=inst_prefix
  38718. - continue
  38719. - ;;
  38720. +Link object files or libraries together to form another library, or to
  38721. +create an executable program.
  38722. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  38723. - # so, if we see these flags be careful not to treat them like -L
  38724. - -L[A-Z][A-Z]*:*)
  38725. - case $with_gcc/$host in
  38726. - no/*-*-irix* | /*-*-irix*)
  38727. - compile_command="$compile_command $arg"
  38728. - finalize_command="$finalize_command $arg"
  38729. - ;;
  38730. - esac
  38731. - continue
  38732. - ;;
  38733. +LINK-COMMAND is a command using the C compiler that you would use to create
  38734. +a program from several object files.
  38735. - -L*)
  38736. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  38737. - # We need an absolute path.
  38738. - case $dir in
  38739. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  38740. - *)
  38741. - absdir=`cd "$dir" && pwd`
  38742. - if test -z "$absdir"; then
  38743. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  38744. - absdir="$dir"
  38745. - notinst_path="$notinst_path $dir"
  38746. - fi
  38747. - dir="$absdir"
  38748. - ;;
  38749. - esac
  38750. - case "$deplibs " in
  38751. - *" -L$dir "*) ;;
  38752. - *)
  38753. - deplibs="$deplibs -L$dir"
  38754. - lib_search_path="$lib_search_path $dir"
  38755. - ;;
  38756. - esac
  38757. - case $host in
  38758. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  38759. - testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  38760. - case :$dllsearchpath: in
  38761. - *":$dir:"*) ;;
  38762. - *) dllsearchpath="$dllsearchpath:$dir";;
  38763. - esac
  38764. - case :$dllsearchpath: in
  38765. - *":$testbindir:"*) ;;
  38766. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  38767. - esac
  38768. - ;;
  38769. - esac
  38770. - continue
  38771. - ;;
  38772. +The following components of LINK-COMMAND are treated specially:
  38773. - -l*)
  38774. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  38775. - case $host in
  38776. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  38777. - # These systems don't actually have a C or math library (as such)
  38778. - continue
  38779. - ;;
  38780. - *-*-os2*)
  38781. - # These systems don't actually have a C library (as such)
  38782. - test "X$arg" = "X-lc" && continue
  38783. - ;;
  38784. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  38785. - # Do not include libc due to us having libc/libc_r.
  38786. - test "X$arg" = "X-lc" && continue
  38787. - ;;
  38788. - *-*-rhapsody* | *-*-darwin1.[012])
  38789. - # Rhapsody C and math libraries are in the System framework
  38790. - deplibs="$deplibs -framework System"
  38791. - continue
  38792. - ;;
  38793. - *-*-sco3.2v5* | *-*-sco5v6*)
  38794. - # Causes problems with __ctype
  38795. - test "X$arg" = "X-lc" && continue
  38796. - ;;
  38797. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  38798. - # Compiler inserts libc in the correct place for threads to work
  38799. - test "X$arg" = "X-lc" && continue
  38800. - ;;
  38801. - esac
  38802. - elif test "X$arg" = "X-lc_r"; then
  38803. - case $host in
  38804. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  38805. - # Do not include libc_r directly, use -pthread flag.
  38806. - continue
  38807. - ;;
  38808. - esac
  38809. - fi
  38810. - deplibs="$deplibs $arg"
  38811. - continue
  38812. - ;;
  38813. + -all-static do not do any dynamic linking at all
  38814. + -avoid-version do not add a version suffix if possible
  38815. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  38816. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  38817. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  38818. + -export-symbols SYMFILE
  38819. + try to export only the symbols listed in SYMFILE
  38820. + -export-symbols-regex REGEX
  38821. + try to export only the symbols matching REGEX
  38822. + -LLIBDIR search LIBDIR for required installed libraries
  38823. + -lNAME OUTPUT-FILE requires the installed library libNAME
  38824. + -module build a library that can dlopened
  38825. + -no-fast-install disable the fast-install mode
  38826. + -no-install link a not-installable executable
  38827. + -no-undefined declare that a library does not refer to external symbols
  38828. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  38829. + -objectlist FILE Use a list of object files found in FILE to specify objects
  38830. + -precious-files-regex REGEX
  38831. + don't remove output files matching REGEX
  38832. + -release RELEASE specify package release information
  38833. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  38834. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  38835. + -shared only do dynamic linking of libtool libraries
  38836. + -shrext SUFFIX override the standard shared library file extension
  38837. + -static do not do any dynamic linking of uninstalled libtool libraries
  38838. + -static-libtool-libs
  38839. + do not do any dynamic linking of libtool libraries
  38840. + -version-info CURRENT[:REVISION[:AGE]]
  38841. + specify library version info [each variable defaults to 0]
  38842. + -weak LIBNAME declare that the target provides the LIBNAME interface
  38843. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  38844. - # classes, name mangling, and exception handling.
  38845. - -model)
  38846. - compile_command="$compile_command $arg"
  38847. - compiler_flags="$compiler_flags $arg"
  38848. - finalize_command="$finalize_command $arg"
  38849. - prev=xcompiler
  38850. - continue
  38851. - ;;
  38852. +All other options (arguments beginning with \`-') are ignored.
  38853. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  38854. - compiler_flags="$compiler_flags $arg"
  38855. - compile_command="$compile_command $arg"
  38856. - finalize_command="$finalize_command $arg"
  38857. - continue
  38858. - ;;
  38859. +Every other argument is treated as a filename. Files ending in \`.la' are
  38860. +treated as uninstalled libtool libraries, other files are standard or library
  38861. +object files.
  38862. - -module)
  38863. - module=yes
  38864. - continue
  38865. - ;;
  38866. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  38867. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  38868. +required, except when creating a convenience library.
  38869. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  38870. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  38871. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  38872. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  38873. - # -q* pass through compiler args for the IBM compiler
  38874. - # -m* pass through architecture-specific compiler args for GCC
  38875. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  38876. - # compiler args for GCC
  38877. - # -pg pass through profiling flag for GCC
  38878. - # @file GCC response files
  38879. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  38880. - -t[45]*|-txscale*|@*)
  38881. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  38882. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  38883. - # Unknown arguments in both finalize_command and compile_command need
  38884. - # to be aesthetically quoted because they are evaled later.
  38885. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  38886. - case $arg in
  38887. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  38888. - arg="\"$arg\""
  38889. - ;;
  38890. - esac
  38891. - compile_command="$compile_command $arg"
  38892. - finalize_command="$finalize_command $arg"
  38893. - compiler_flags="$compiler_flags $arg"
  38894. - continue
  38895. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  38896. +is created, otherwise an executable program is created."
  38897. ;;
  38898. - -shrext)
  38899. - prev=shrext
  38900. - continue
  38901. - ;;
  38902. + uninstall)
  38903. + $ECHO \
  38904. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  38905. - -no-fast-install)
  38906. - fast_install=no
  38907. - continue
  38908. - ;;
  38909. +Remove libraries from an installation directory.
  38910. - -no-install)
  38911. - case $host in
  38912. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  38913. - # The PATH hackery in wrapper scripts is required on Windows
  38914. - # in order for the loader to find any dlls it needs.
  38915. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  38916. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  38917. - fast_install=no
  38918. - ;;
  38919. - *) no_install=yes ;;
  38920. - esac
  38921. - continue
  38922. - ;;
  38923. +RM is the name of the program to use to delete files associated with each FILE
  38924. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  38925. +to RM.
  38926. - -no-undefined)
  38927. - allow_undefined=no
  38928. - continue
  38929. - ;;
  38930. +If FILE is a libtool library, all the files associated with it are deleted.
  38931. +Otherwise, only FILE itself is deleted using RM."
  38932. + ;;
  38933. - -objectlist)
  38934. - prev=objectlist
  38935. - continue
  38936. - ;;
  38937. + *)
  38938. + func_fatal_help "invalid operation mode \`$mode'"
  38939. + ;;
  38940. + esac
  38941. - -o) prev=output ;;
  38942. + $ECHO
  38943. + $ECHO "Try \`$progname --help' for more information about other modes."
  38944. - -precious-files-regex)
  38945. - prev=precious_regex
  38946. - continue
  38947. - ;;
  38948. + exit $?
  38949. +}
  38950. - -release)
  38951. - prev=release
  38952. - continue
  38953. - ;;
  38954. + # Now that we've collected a possible --mode arg, show help if necessary
  38955. + $opt_help && func_mode_help
  38956. - -rpath)
  38957. - prev=rpath
  38958. - continue
  38959. - ;;
  38960. - -R)
  38961. - prev=xrpath
  38962. - continue
  38963. - ;;
  38964. +# func_mode_execute arg...
  38965. +func_mode_execute ()
  38966. +{
  38967. + $opt_debug
  38968. + # The first argument is the command name.
  38969. + cmd="$nonopt"
  38970. + test -z "$cmd" && \
  38971. + func_fatal_help "you must specify a COMMAND"
  38972. - -R*)
  38973. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  38974. - # We need an absolute path.
  38975. - case $dir in
  38976. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  38977. - *)
  38978. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  38979. - exit $EXIT_FAILURE
  38980. - ;;
  38981. - esac
  38982. - case "$xrpath " in
  38983. - *" $dir "*) ;;
  38984. - *) xrpath="$xrpath $dir" ;;
  38985. - esac
  38986. - continue
  38987. - ;;
  38988. -
  38989. - -static)
  38990. - # The effects of -static are defined in a previous loop.
  38991. - # We used to do the same as -all-static on platforms that
  38992. - # didn't have a PIC flag, but the assumption that the effects
  38993. - # would be equivalent was wrong. It would break on at least
  38994. - # Digital Unix and AIX.
  38995. - continue
  38996. - ;;
  38997. + # Handle -dlopen flags immediately.
  38998. + for file in $execute_dlfiles; do
  38999. + test -f "$file" \
  39000. + || func_fatal_help "\`$file' is not a file"
  39001. - -thread-safe)
  39002. - thread_safe=yes
  39003. - continue
  39004. - ;;
  39005. + dir=
  39006. + case $file in
  39007. + *.la)
  39008. + # Check to see that this really is a libtool archive.
  39009. + func_lalib_unsafe_p "$file" \
  39010. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  39011. - -version-info)
  39012. - prev=vinfo
  39013. - continue
  39014. - ;;
  39015. - -version-number)
  39016. - prev=vinfo
  39017. - vinfo_number=yes
  39018. - continue
  39019. - ;;
  39020. + # Read the libtool library.
  39021. + dlname=
  39022. + library_names=
  39023. + func_source "$file"
  39024. - -Wc,*)
  39025. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  39026. - arg=
  39027. - save_ifs="$IFS"; IFS=','
  39028. - for flag in $args; do
  39029. - IFS="$save_ifs"
  39030. - case $flag in
  39031. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39032. - flag="\"$flag\""
  39033. - ;;
  39034. - esac
  39035. - arg="$arg $wl$flag"
  39036. - compiler_flags="$compiler_flags $flag"
  39037. - done
  39038. - IFS="$save_ifs"
  39039. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  39040. - ;;
  39041. + # Skip this library if it cannot be dlopened.
  39042. + if test -z "$dlname"; then
  39043. + # Warn if it was a shared library.
  39044. + test -n "$library_names" && \
  39045. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  39046. + continue
  39047. + fi
  39048. - -Wl,*)
  39049. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  39050. - arg=
  39051. - save_ifs="$IFS"; IFS=','
  39052. - for flag in $args; do
  39053. - IFS="$save_ifs"
  39054. - case $flag in
  39055. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39056. - flag="\"$flag\""
  39057. - ;;
  39058. - esac
  39059. - arg="$arg $wl$flag"
  39060. - compiler_flags="$compiler_flags $wl$flag"
  39061. - linker_flags="$linker_flags $flag"
  39062. - done
  39063. - IFS="$save_ifs"
  39064. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  39065. - ;;
  39066. + func_dirname "$file" "" "."
  39067. + dir="$func_dirname_result"
  39068. - -Xcompiler)
  39069. - prev=xcompiler
  39070. - continue
  39071. + if test -f "$dir/$objdir/$dlname"; then
  39072. + dir="$dir/$objdir"
  39073. + else
  39074. + if test ! -f "$dir/$dlname"; then
  39075. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  39076. + fi
  39077. + fi
  39078. ;;
  39079. - -Xlinker)
  39080. - prev=xlinker
  39081. - continue
  39082. + *.lo)
  39083. + # Just add the directory containing the .lo file.
  39084. + func_dirname "$file" "" "."
  39085. + dir="$func_dirname_result"
  39086. ;;
  39087. - -XCClinker)
  39088. - prev=xcclinker
  39089. + *)
  39090. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  39091. continue
  39092. ;;
  39093. + esac
  39094. - # Some other compiler flag.
  39095. - -* | +*)
  39096. - # Unknown arguments in both finalize_command and compile_command need
  39097. - # to be aesthetically quoted because they are evaled later.
  39098. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  39099. - case $arg in
  39100. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39101. - arg="\"$arg\""
  39102. - ;;
  39103. - esac
  39104. - ;;
  39105. + # Get the absolute pathname.
  39106. + absdir=`cd "$dir" && pwd`
  39107. + test -n "$absdir" && dir="$absdir"
  39108. - *.$objext)
  39109. - # A standard object.
  39110. - objs="$objs $arg"
  39111. - ;;
  39112. + # Now add the directory to shlibpath_var.
  39113. + if eval "test -z \"\$$shlibpath_var\""; then
  39114. + eval "$shlibpath_var=\"\$dir\""
  39115. + else
  39116. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  39117. + fi
  39118. + done
  39119. - *.lo)
  39120. - # A libtool-controlled object.
  39121. + # This variable tells wrapper scripts just to set shlibpath_var
  39122. + # rather than running their programs.
  39123. + libtool_execute_magic="$magic"
  39124. - # Check to see that this really is a libtool object.
  39125. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  39126. - pic_object=
  39127. - non_pic_object=
  39128. + # Check if any of the arguments is a wrapper script.
  39129. + args=
  39130. + for file
  39131. + do
  39132. + case $file in
  39133. + -*) ;;
  39134. + *)
  39135. + # Do a test to see if this is really a libtool program.
  39136. + if func_ltwrapper_script_p "$file"; then
  39137. + func_source "$file"
  39138. + # Transform arg to wrapped name.
  39139. + file="$progdir/$program"
  39140. + elif func_ltwrapper_executable_p "$file"; then
  39141. + func_ltwrapper_scriptname "$file"
  39142. + func_source "$func_ltwrapper_scriptname_result"
  39143. + # Transform arg to wrapped name.
  39144. + file="$progdir/$program"
  39145. + fi
  39146. + ;;
  39147. + esac
  39148. + # Quote arguments (to preserve shell metacharacters).
  39149. + func_quote_for_eval "$file"
  39150. + args="$args $func_quote_for_eval_result"
  39151. + done
  39152. - # Read the .lo file
  39153. - # If there is no directory component, then add one.
  39154. - case $arg in
  39155. - */* | *\\*) . $arg ;;
  39156. - *) . ./$arg ;;
  39157. - esac
  39158. + if test "X$opt_dry_run" = Xfalse; then
  39159. + if test -n "$shlibpath_var"; then
  39160. + # Export the shlibpath_var.
  39161. + eval "export $shlibpath_var"
  39162. + fi
  39163. - if test -z "$pic_object" || \
  39164. - test -z "$non_pic_object" ||
  39165. - test "$pic_object" = none && \
  39166. - test "$non_pic_object" = none; then
  39167. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  39168. - exit $EXIT_FAILURE
  39169. - fi
  39170. + # Restore saved environment variables
  39171. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  39172. + do
  39173. + eval "if test \"\${save_$lt_var+set}\" = set; then
  39174. + $lt_var=\$save_$lt_var; export $lt_var
  39175. + else
  39176. + $lt_unset $lt_var
  39177. + fi"
  39178. + done
  39179. - # Extract subdirectory from the argument.
  39180. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  39181. - if test "X$xdir" = "X$arg"; then
  39182. - xdir=
  39183. - else
  39184. - xdir="$xdir/"
  39185. - fi
  39186. + # Now prepare to actually exec the command.
  39187. + exec_cmd="\$cmd$args"
  39188. + else
  39189. + # Display what would be done.
  39190. + if test -n "$shlibpath_var"; then
  39191. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  39192. + $ECHO "export $shlibpath_var"
  39193. + fi
  39194. + $ECHO "$cmd$args"
  39195. + exit $EXIT_SUCCESS
  39196. + fi
  39197. +}
  39198. - if test "$pic_object" != none; then
  39199. - # Prepend the subdirectory the object is found in.
  39200. - pic_object="$xdir$pic_object"
  39201. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  39202. - if test "$prev" = dlfiles; then
  39203. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  39204. - dlfiles="$dlfiles $pic_object"
  39205. - prev=
  39206. - continue
  39207. - else
  39208. - # If libtool objects are unsupported, then we need to preload.
  39209. - prev=dlprefiles
  39210. - fi
  39211. - fi
  39212. - # CHECK ME: I think I busted this. -Ossama
  39213. - if test "$prev" = dlprefiles; then
  39214. - # Preload the old-style object.
  39215. - dlprefiles="$dlprefiles $pic_object"
  39216. - prev=
  39217. - fi
  39218. +# func_mode_finish arg...
  39219. +func_mode_finish ()
  39220. +{
  39221. + $opt_debug
  39222. + libdirs="$nonopt"
  39223. + admincmds=
  39224. - # A PIC object.
  39225. - libobjs="$libobjs $pic_object"
  39226. - arg="$pic_object"
  39227. - fi
  39228. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  39229. + for dir
  39230. + do
  39231. + libdirs="$libdirs $dir"
  39232. + done
  39233. - # Non-PIC object.
  39234. - if test "$non_pic_object" != none; then
  39235. - # Prepend the subdirectory the object is found in.
  39236. - non_pic_object="$xdir$non_pic_object"
  39237. + for libdir in $libdirs; do
  39238. + if test -n "$finish_cmds"; then
  39239. + # Do each command in the finish commands.
  39240. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  39241. +'"$cmd"'"'
  39242. + fi
  39243. + if test -n "$finish_eval"; then
  39244. + # Do the single finish_eval.
  39245. + eval cmds=\"$finish_eval\"
  39246. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  39247. + $cmds"
  39248. + fi
  39249. + done
  39250. + fi
  39251. - # A standard non-PIC object
  39252. - non_pic_objects="$non_pic_objects $non_pic_object"
  39253. - if test -z "$pic_object" || test "$pic_object" = none ; then
  39254. - arg="$non_pic_object"
  39255. - fi
  39256. - else
  39257. - # If the PIC object exists, use it instead.
  39258. - # $xdir was prepended to $pic_object above.
  39259. - non_pic_object="$pic_object"
  39260. - non_pic_objects="$non_pic_objects $non_pic_object"
  39261. - fi
  39262. - else
  39263. - # Only an error if not doing a dry-run.
  39264. - if test -z "$run"; then
  39265. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  39266. - exit $EXIT_FAILURE
  39267. - else
  39268. - # Dry-run case.
  39269. + # Exit here if they wanted silent mode.
  39270. + $opt_silent && exit $EXIT_SUCCESS
  39271. - # Extract subdirectory from the argument.
  39272. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  39273. - if test "X$xdir" = "X$arg"; then
  39274. - xdir=
  39275. - else
  39276. - xdir="$xdir/"
  39277. - fi
  39278. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  39279. + $ECHO "Libraries have been installed in:"
  39280. + for libdir in $libdirs; do
  39281. + $ECHO " $libdir"
  39282. + done
  39283. + $ECHO
  39284. + $ECHO "If you ever happen to want to link against installed libraries"
  39285. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  39286. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  39287. + $ECHO "flag during linking and do at least one of the following:"
  39288. + if test -n "$shlibpath_var"; then
  39289. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  39290. + $ECHO " during execution"
  39291. + fi
  39292. + if test -n "$runpath_var"; then
  39293. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  39294. + $ECHO " during linking"
  39295. + fi
  39296. + if test -n "$hardcode_libdir_flag_spec"; then
  39297. + libdir=LIBDIR
  39298. + eval flag=\"$hardcode_libdir_flag_spec\"
  39299. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  39300. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  39301. - libobjs="$libobjs $pic_object"
  39302. - non_pic_objects="$non_pic_objects $non_pic_object"
  39303. - fi
  39304. - fi
  39305. - ;;
  39306. + $ECHO " - use the \`$flag' linker flag"
  39307. + fi
  39308. + if test -n "$admincmds"; then
  39309. + $ECHO " - have your system administrator run these commands:$admincmds"
  39310. + fi
  39311. + if test -f /etc/ld.so.conf; then
  39312. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  39313. + fi
  39314. + $ECHO
  39315. - *.$libext)
  39316. - # An archive.
  39317. - deplibs="$deplibs $arg"
  39318. - old_deplibs="$old_deplibs $arg"
  39319. - continue
  39320. + $ECHO "See any operating system documentation about shared libraries for"
  39321. + case $host in
  39322. + solaris2.[6789]|solaris2.1[0-9])
  39323. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  39324. + $ECHO "pages."
  39325. ;;
  39326. + *)
  39327. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  39328. + ;;
  39329. + esac
  39330. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  39331. + exit $EXIT_SUCCESS
  39332. +}
  39333. - *.la)
  39334. - # A libtool-controlled library.
  39335. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  39336. - if test "$prev" = dlfiles; then
  39337. - # This library was specified with -dlopen.
  39338. - dlfiles="$dlfiles $arg"
  39339. - prev=
  39340. - elif test "$prev" = dlprefiles; then
  39341. - # The library was specified with -dlpreopen.
  39342. - dlprefiles="$dlprefiles $arg"
  39343. - prev=
  39344. - else
  39345. - deplibs="$deplibs $arg"
  39346. - fi
  39347. - continue
  39348. - ;;
  39349. - # Some other compiler argument.
  39350. - *)
  39351. - # Unknown arguments in both finalize_command and compile_command need
  39352. - # to be aesthetically quoted because they are evaled later.
  39353. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  39354. - case $arg in
  39355. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  39356. - arg="\"$arg\""
  39357. - ;;
  39358. - esac
  39359. - ;;
  39360. - esac # arg
  39361. +# func_mode_install arg...
  39362. +func_mode_install ()
  39363. +{
  39364. + $opt_debug
  39365. + # There may be an optional sh(1) argument at the beginning of
  39366. + # install_prog (especially on Windows NT).
  39367. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  39368. + # Allow the use of GNU shtool's install command.
  39369. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  39370. + # Aesthetically quote it.
  39371. + func_quote_for_eval "$nonopt"
  39372. + install_prog="$func_quote_for_eval_result "
  39373. + arg=$1
  39374. + shift
  39375. + else
  39376. + install_prog=
  39377. + arg=$nonopt
  39378. + fi
  39379. - # Now actually substitute the argument into the commands.
  39380. - if test -n "$arg"; then
  39381. - compile_command="$compile_command $arg"
  39382. - finalize_command="$finalize_command $arg"
  39383. + # The real first argument should be the name of the installation program.
  39384. + # Aesthetically quote it.
  39385. + func_quote_for_eval "$arg"
  39386. + install_prog="$install_prog$func_quote_for_eval_result"
  39387. +
  39388. + # We need to accept at least all the BSD install flags.
  39389. + dest=
  39390. + files=
  39391. + opts=
  39392. + prev=
  39393. + install_type=
  39394. + isdir=no
  39395. + stripme=
  39396. + for arg
  39397. + do
  39398. + if test -n "$dest"; then
  39399. + files="$files $dest"
  39400. + dest=$arg
  39401. + continue
  39402. fi
  39403. - done # argument parsing loop
  39404. - if test -n "$prev"; then
  39405. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  39406. - $echo "$help" 1>&2
  39407. - exit $EXIT_FAILURE
  39408. - fi
  39409. + case $arg in
  39410. + -d) isdir=yes ;;
  39411. + -f)
  39412. + case " $install_prog " in
  39413. + *[\\\ /]cp\ *) ;;
  39414. + *) prev=$arg ;;
  39415. + esac
  39416. + ;;
  39417. + -g | -m | -o)
  39418. + prev=$arg
  39419. + ;;
  39420. + -s)
  39421. + stripme=" -s"
  39422. + continue
  39423. + ;;
  39424. + -*)
  39425. + ;;
  39426. + *)
  39427. + # If the previous option needed an argument, then skip it.
  39428. + if test -n "$prev"; then
  39429. + prev=
  39430. + else
  39431. + dest=$arg
  39432. + continue
  39433. + fi
  39434. + ;;
  39435. + esac
  39436. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  39437. - eval arg=\"$export_dynamic_flag_spec\"
  39438. - compile_command="$compile_command $arg"
  39439. - finalize_command="$finalize_command $arg"
  39440. - fi
  39441. + # Aesthetically quote the argument.
  39442. + func_quote_for_eval "$arg"
  39443. + install_prog="$install_prog $func_quote_for_eval_result"
  39444. + done
  39445. - oldlibs=
  39446. - # calculate the name of the file, without its directory
  39447. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  39448. - libobjs_save="$libobjs"
  39449. + test -z "$install_prog" && \
  39450. + func_fatal_help "you must specify an install program"
  39451. - if test -n "$shlibpath_var"; then
  39452. - # get the directories listed in $shlibpath_var
  39453. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  39454. - else
  39455. - shlib_search_path=
  39456. - fi
  39457. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  39458. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  39459. + test -n "$prev" && \
  39460. + func_fatal_help "the \`$prev' option requires an argument"
  39461. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  39462. - if test "X$output_objdir" = "X$output"; then
  39463. - output_objdir="$objdir"
  39464. - else
  39465. - output_objdir="$output_objdir/$objdir"
  39466. - fi
  39467. - # Create the object directory.
  39468. - if test ! -d "$output_objdir"; then
  39469. - $show "$mkdir $output_objdir"
  39470. - $run $mkdir $output_objdir
  39471. - exit_status=$?
  39472. - if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  39473. - exit $exit_status
  39474. + if test -z "$files"; then
  39475. + if test -z "$dest"; then
  39476. + func_fatal_help "no file or destination specified"
  39477. + else
  39478. + func_fatal_help "you must specify a destination"
  39479. fi
  39480. fi
  39481. - # Determine the type of output
  39482. - case $output in
  39483. - "")
  39484. - $echo "$modename: you must specify an output file" 1>&2
  39485. - $echo "$help" 1>&2
  39486. - exit $EXIT_FAILURE
  39487. - ;;
  39488. - *.$libext) linkmode=oldlib ;;
  39489. - *.lo | *.$objext) linkmode=obj ;;
  39490. - *.la) linkmode=lib ;;
  39491. - *) linkmode=prog ;; # Anything else should be a program.
  39492. - esac
  39493. + # Strip any trailing slash from the destination.
  39494. + func_stripname '' '/' "$dest"
  39495. + dest=$func_stripname_result
  39496. - case $host in
  39497. - *cygwin* | *mingw* | *pw32*)
  39498. - # don't eliminate duplications in $postdeps and $predeps
  39499. - duplicate_compiler_generated_deps=yes
  39500. - ;;
  39501. + # Check to see that the destination is a directory.
  39502. + test -d "$dest" && isdir=yes
  39503. + if test "$isdir" = yes; then
  39504. + destdir="$dest"
  39505. + destname=
  39506. + else
  39507. + func_dirname_and_basename "$dest" "" "."
  39508. + destdir="$func_dirname_result"
  39509. + destname="$func_basename_result"
  39510. +
  39511. + # Not a directory, so check to see that there is only one file specified.
  39512. + set dummy $files; shift
  39513. + test "$#" -gt 1 && \
  39514. + func_fatal_help "\`$dest' is not a directory"
  39515. + fi
  39516. + case $destdir in
  39517. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  39518. *)
  39519. - duplicate_compiler_generated_deps=$duplicate_deps
  39520. + for file in $files; do
  39521. + case $file in
  39522. + *.lo) ;;
  39523. + *)
  39524. + func_fatal_help "\`$destdir' must be an absolute directory name"
  39525. + ;;
  39526. + esac
  39527. + done
  39528. ;;
  39529. esac
  39530. - specialdeplibs=
  39531. - libs=
  39532. - # Find all interdependent deplibs by searching for libraries
  39533. - # that are linked more than once (e.g. -la -lb -la)
  39534. - for deplib in $deplibs; do
  39535. - if test "X$duplicate_deps" = "Xyes" ; then
  39536. - case "$libs " in
  39537. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  39538. - esac
  39539. - fi
  39540. - libs="$libs $deplib"
  39541. - done
  39542. + # This variable tells wrapper scripts just to set variables rather
  39543. + # than running their programs.
  39544. + libtool_install_magic="$magic"
  39545. - if test "$linkmode" = lib; then
  39546. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  39547. + staticlibs=
  39548. + future_libdirs=
  39549. + current_libdirs=
  39550. + for file in $files; do
  39551. - # Compute libraries that are listed more than once in $predeps
  39552. - # $postdeps and mark them as special (i.e., whose duplicates are
  39553. - # not to be eliminated).
  39554. - pre_post_deps=
  39555. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  39556. - for pre_post_dep in $predeps $postdeps; do
  39557. - case "$pre_post_deps " in
  39558. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  39559. + # Do each installation.
  39560. + case $file in
  39561. + *.$libext)
  39562. + # Do the static libraries later.
  39563. + staticlibs="$staticlibs $file"
  39564. + ;;
  39565. +
  39566. + *.la)
  39567. + # Check to see that this really is a libtool archive.
  39568. + func_lalib_unsafe_p "$file" \
  39569. + || func_fatal_help "\`$file' is not a valid libtool archive"
  39570. +
  39571. + library_names=
  39572. + old_library=
  39573. + relink_command=
  39574. + func_source "$file"
  39575. +
  39576. + # Add the libdir to current_libdirs if it is the destination.
  39577. + if test "X$destdir" = "X$libdir"; then
  39578. + case "$current_libdirs " in
  39579. + *" $libdir "*) ;;
  39580. + *) current_libdirs="$current_libdirs $libdir" ;;
  39581. esac
  39582. - pre_post_deps="$pre_post_deps $pre_post_dep"
  39583. - done
  39584. - fi
  39585. - pre_post_deps=
  39586. - fi
  39587. + else
  39588. + # Note the libdir as a future libdir.
  39589. + case "$future_libdirs " in
  39590. + *" $libdir "*) ;;
  39591. + *) future_libdirs="$future_libdirs $libdir" ;;
  39592. + esac
  39593. + fi
  39594. - deplibs=
  39595. - newdependency_libs=
  39596. - newlib_search_path=
  39597. - need_relink=no # whether we're linking any uninstalled libtool libraries
  39598. - notinst_deplibs= # not-installed libtool libraries
  39599. - case $linkmode in
  39600. - lib)
  39601. - passes="conv link"
  39602. - for file in $dlfiles $dlprefiles; do
  39603. - case $file in
  39604. - *.la) ;;
  39605. - *)
  39606. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  39607. - exit $EXIT_FAILURE
  39608. + func_dirname "$file" "/" ""
  39609. + dir="$func_dirname_result"
  39610. + dir="$dir$objdir"
  39611. +
  39612. + if test -n "$relink_command"; then
  39613. + # Determine the prefix the user has applied to our future dir.
  39614. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  39615. +
  39616. + # Don't allow the user to place us outside of our expected
  39617. + # location b/c this prevents finding dependent libraries that
  39618. + # are installed to the same prefix.
  39619. + # At present, this check doesn't affect windows .dll's that
  39620. + # are installed into $libdir/../bin (currently, that works fine)
  39621. + # but it's something to keep an eye on.
  39622. + test "$inst_prefix_dir" = "$destdir" && \
  39623. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  39624. +
  39625. + if test -n "$inst_prefix_dir"; then
  39626. + # Stick the inst_prefix_dir data into the link command.
  39627. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  39628. + else
  39629. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  39630. + fi
  39631. +
  39632. + func_warning "relinking \`$file'"
  39633. + func_show_eval "$relink_command" \
  39634. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  39635. + fi
  39636. +
  39637. + # See the names of the shared library.
  39638. + set dummy $library_names; shift
  39639. + if test -n "$1"; then
  39640. + realname="$1"
  39641. + shift
  39642. +
  39643. + srcname="$realname"
  39644. + test -n "$relink_command" && srcname="$realname"T
  39645. +
  39646. + # Install the shared library and build the symlinks.
  39647. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  39648. + 'exit $?'
  39649. + tstripme="$stripme"
  39650. + case $host_os in
  39651. + cygwin* | mingw* | pw32* | cegcc*)
  39652. + case $realname in
  39653. + *.dll.a)
  39654. + tstripme=""
  39655. + ;;
  39656. + esac
  39657. ;;
  39658. esac
  39659. - done
  39660. - ;;
  39661. - prog)
  39662. - compile_deplibs=
  39663. - finalize_deplibs=
  39664. - alldeplibs=no
  39665. - newdlfiles=
  39666. - newdlprefiles=
  39667. - passes="conv scan dlopen dlpreopen link"
  39668. - ;;
  39669. - *) passes="conv"
  39670. + if test -n "$tstripme" && test -n "$striplib"; then
  39671. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  39672. + fi
  39673. +
  39674. + if test "$#" -gt 0; then
  39675. + # Delete the old symlinks, and create new ones.
  39676. + # Try `ln -sf' first, because the `ln' binary might depend on
  39677. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  39678. + # so we also need to try rm && ln -s.
  39679. + for linkname
  39680. + do
  39681. + test "$linkname" != "$realname" \
  39682. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  39683. + done
  39684. + fi
  39685. +
  39686. + # Do each command in the postinstall commands.
  39687. + lib="$destdir/$realname"
  39688. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  39689. + fi
  39690. +
  39691. + # Install the pseudo-library for information purposes.
  39692. + func_basename "$file"
  39693. + name="$func_basename_result"
  39694. + instname="$dir/$name"i
  39695. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  39696. +
  39697. + # Maybe install the static library, too.
  39698. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  39699. ;;
  39700. - esac
  39701. - for pass in $passes; do
  39702. - if test "$linkmode,$pass" = "lib,link" ||
  39703. - test "$linkmode,$pass" = "prog,scan"; then
  39704. - libs="$deplibs"
  39705. - deplibs=
  39706. - fi
  39707. - if test "$linkmode" = prog; then
  39708. - case $pass in
  39709. - dlopen) libs="$dlfiles" ;;
  39710. - dlpreopen) libs="$dlprefiles" ;;
  39711. - link)
  39712. - libs="$deplibs %DEPLIBS%"
  39713. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  39714. +
  39715. + *.lo)
  39716. + # Install (i.e. copy) a libtool object.
  39717. +
  39718. + # Figure out destination file name, if it wasn't already specified.
  39719. + if test -n "$destname"; then
  39720. + destfile="$destdir/$destname"
  39721. + else
  39722. + func_basename "$file"
  39723. + destfile="$func_basename_result"
  39724. + destfile="$destdir/$destfile"
  39725. + fi
  39726. +
  39727. + # Deduce the name of the destination old-style object file.
  39728. + case $destfile in
  39729. + *.lo)
  39730. + func_lo2o "$destfile"
  39731. + staticdest=$func_lo2o_result
  39732. ;;
  39733. - esac
  39734. - fi
  39735. - if test "$pass" = dlopen; then
  39736. - # Collect dlpreopened libraries
  39737. - save_deplibs="$deplibs"
  39738. - deplibs=
  39739. - fi
  39740. - for deplib in $libs; do
  39741. - lib=
  39742. - found=no
  39743. - case $deplib in
  39744. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  39745. - if test "$linkmode,$pass" = "prog,link"; then
  39746. - compile_deplibs="$deplib $compile_deplibs"
  39747. - finalize_deplibs="$deplib $finalize_deplibs"
  39748. - else
  39749. - compiler_flags="$compiler_flags $deplib"
  39750. - fi
  39751. - continue
  39752. + *.$objext)
  39753. + staticdest="$destfile"
  39754. + destfile=
  39755. ;;
  39756. - -l*)
  39757. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  39758. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  39759. - continue
  39760. - fi
  39761. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  39762. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  39763. - for search_ext in .la $std_shrext .so .a; do
  39764. - # Search the libtool library
  39765. - lib="$searchdir/lib${name}${search_ext}"
  39766. - if test -f "$lib"; then
  39767. - if test "$search_ext" = ".la"; then
  39768. - found=yes
  39769. - else
  39770. - found=no
  39771. - fi
  39772. - break 2
  39773. - fi
  39774. - done
  39775. - done
  39776. - if test "$found" != yes; then
  39777. - # deplib doesn't seem to be a libtool library
  39778. - if test "$linkmode,$pass" = "prog,link"; then
  39779. - compile_deplibs="$deplib $compile_deplibs"
  39780. - finalize_deplibs="$deplib $finalize_deplibs"
  39781. - else
  39782. - deplibs="$deplib $deplibs"
  39783. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  39784. - fi
  39785. - continue
  39786. - else # deplib is a libtool library
  39787. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  39788. - # We need to do some special things here, and not later.
  39789. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  39790. - case " $predeps $postdeps " in
  39791. - *" $deplib "*)
  39792. - if (${SED} -e '2q' $lib |
  39793. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  39794. - library_names=
  39795. - old_library=
  39796. - case $lib in
  39797. - */* | *\\*) . $lib ;;
  39798. - *) . ./$lib ;;
  39799. - esac
  39800. - for l in $old_library $library_names; do
  39801. - ll="$l"
  39802. - done
  39803. - if test "X$ll" = "X$old_library" ; then # only static version available
  39804. - found=no
  39805. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  39806. - test "X$ladir" = "X$lib" && ladir="."
  39807. - lib=$ladir/$old_library
  39808. - if test "$linkmode,$pass" = "prog,link"; then
  39809. - compile_deplibs="$deplib $compile_deplibs"
  39810. - finalize_deplibs="$deplib $finalize_deplibs"
  39811. - else
  39812. - deplibs="$deplib $deplibs"
  39813. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  39814. - fi
  39815. - continue
  39816. - fi
  39817. - fi
  39818. - ;;
  39819. - *) ;;
  39820. - esac
  39821. + *)
  39822. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  39823. + ;;
  39824. + esac
  39825. +
  39826. + # Install the libtool object if requested.
  39827. + test -n "$destfile" && \
  39828. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  39829. +
  39830. + # Install the old object if enabled.
  39831. + if test "$build_old_libs" = yes; then
  39832. + # Deduce the name of the old-style object file.
  39833. + func_lo2o "$file"
  39834. + staticobj=$func_lo2o_result
  39835. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  39836. + fi
  39837. + exit $EXIT_SUCCESS
  39838. + ;;
  39839. +
  39840. + *)
  39841. + # Figure out destination file name, if it wasn't already specified.
  39842. + if test -n "$destname"; then
  39843. + destfile="$destdir/$destname"
  39844. + else
  39845. + func_basename "$file"
  39846. + destfile="$func_basename_result"
  39847. + destfile="$destdir/$destfile"
  39848. + fi
  39849. +
  39850. + # If the file is missing, and there is a .exe on the end, strip it
  39851. + # because it is most likely a libtool script we actually want to
  39852. + # install
  39853. + stripped_ext=""
  39854. + case $file in
  39855. + *.exe)
  39856. + if test ! -f "$file"; then
  39857. + func_stripname '' '.exe' "$file"
  39858. + file=$func_stripname_result
  39859. + stripped_ext=".exe"
  39860. fi
  39861. - fi
  39862. - ;; # -l
  39863. - -L*)
  39864. - case $linkmode in
  39865. - lib)
  39866. - deplibs="$deplib $deplibs"
  39867. - test "$pass" = conv && continue
  39868. - newdependency_libs="$deplib $newdependency_libs"
  39869. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  39870. ;;
  39871. - prog)
  39872. - if test "$pass" = conv; then
  39873. - deplibs="$deplib $deplibs"
  39874. - continue
  39875. - fi
  39876. - if test "$pass" = scan; then
  39877. - deplibs="$deplib $deplibs"
  39878. + esac
  39879. +
  39880. + # Do a test to see if this is really a libtool program.
  39881. + case $host in
  39882. + *cygwin* | *mingw*)
  39883. + if func_ltwrapper_executable_p "$file"; then
  39884. + func_ltwrapper_scriptname "$file"
  39885. + wrapper=$func_ltwrapper_scriptname_result
  39886. else
  39887. - compile_deplibs="$deplib $compile_deplibs"
  39888. - finalize_deplibs="$deplib $finalize_deplibs"
  39889. + func_stripname '' '.exe' "$file"
  39890. + wrapper=$func_stripname_result
  39891. fi
  39892. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  39893. ;;
  39894. - *)
  39895. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  39896. - ;;
  39897. - esac # linkmode
  39898. - continue
  39899. - ;; # -L
  39900. - -R*)
  39901. - if test "$pass" = link; then
  39902. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  39903. - # Make sure the xrpath contains only unique directories.
  39904. - case "$xrpath " in
  39905. - *" $dir "*) ;;
  39906. - *) xrpath="$xrpath $dir" ;;
  39907. - esac
  39908. - fi
  39909. - deplibs="$deplib $deplibs"
  39910. - continue
  39911. - ;;
  39912. - *.la) lib="$deplib" ;;
  39913. - *.$libext)
  39914. - if test "$pass" = conv; then
  39915. - deplibs="$deplib $deplibs"
  39916. - continue
  39917. - fi
  39918. - case $linkmode in
  39919. - lib)
  39920. - valid_a_lib=no
  39921. - case $deplibs_check_method in
  39922. - match_pattern*)
  39923. - set dummy $deplibs_check_method
  39924. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  39925. - if eval $echo \"$deplib\" 2>/dev/null \
  39926. - | $SED 10q \
  39927. - | $EGREP "$match_pattern_regex" > /dev/null; then
  39928. - valid_a_lib=yes
  39929. - fi
  39930. - ;;
  39931. - pass_all)
  39932. - valid_a_lib=yes
  39933. - ;;
  39934. - esac
  39935. - if test "$valid_a_lib" != yes; then
  39936. - $echo
  39937. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  39938. - $echo "*** I have the capability to make that library automatically link in when"
  39939. - $echo "*** you link to this library. But I can only do this if you have a"
  39940. - $echo "*** shared version of the library, which you do not appear to have"
  39941. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  39942. - $echo "*** that it is just a static archive that I should not used here."
  39943. - else
  39944. - $echo
  39945. - $echo "*** Warning: Linking the shared library $output against the"
  39946. - $echo "*** static library $deplib is not portable!"
  39947. - deplibs="$deplib $deplibs"
  39948. - fi
  39949. - continue
  39950. + *)
  39951. + wrapper=$file
  39952. ;;
  39953. - prog)
  39954. - if test "$pass" != link; then
  39955. - deplibs="$deplib $deplibs"
  39956. - else
  39957. - compile_deplibs="$deplib $compile_deplibs"
  39958. - finalize_deplibs="$deplib $finalize_deplibs"
  39959. + esac
  39960. + if func_ltwrapper_script_p "$wrapper"; then
  39961. + notinst_deplibs=
  39962. + relink_command=
  39963. +
  39964. + func_source "$wrapper"
  39965. +
  39966. + # Check the variables that should have been set.
  39967. + test -z "$generated_by_libtool_version" && \
  39968. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  39969. +
  39970. + finalize=yes
  39971. + for lib in $notinst_deplibs; do
  39972. + # Check to see that each library is installed.
  39973. + libdir=
  39974. + if test -f "$lib"; then
  39975. + func_source "$lib"
  39976. fi
  39977. - continue
  39978. - ;;
  39979. - esac # linkmode
  39980. - ;; # *.$libext
  39981. - *.lo | *.$objext)
  39982. - if test "$pass" = conv; then
  39983. - deplibs="$deplib $deplibs"
  39984. - elif test "$linkmode" = prog; then
  39985. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  39986. - # If there is no dlopen support or we're linking statically,
  39987. - # we need to preload.
  39988. - newdlprefiles="$newdlprefiles $deplib"
  39989. - compile_deplibs="$deplib $compile_deplibs"
  39990. - finalize_deplibs="$deplib $finalize_deplibs"
  39991. - else
  39992. - newdlfiles="$newdlfiles $deplib"
  39993. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  39994. + if test -n "$libdir" && test ! -f "$libfile"; then
  39995. + func_warning "\`$lib' has not been installed in \`$libdir'"
  39996. + finalize=no
  39997. fi
  39998. + done
  39999. +
  40000. + relink_command=
  40001. + func_source "$wrapper"
  40002. +
  40003. + outputname=
  40004. + if test "$fast_install" = no && test -n "$relink_command"; then
  40005. + $opt_dry_run || {
  40006. + if test "$finalize" = yes; then
  40007. + tmpdir=`func_mktempdir`
  40008. + func_basename "$file$stripped_ext"
  40009. + file="$func_basename_result"
  40010. + outputname="$tmpdir/$file"
  40011. + # Replace the output file specification.
  40012. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  40013. +
  40014. + $opt_silent || {
  40015. + func_quote_for_expand "$relink_command"
  40016. + eval "func_echo $func_quote_for_expand_result"
  40017. + }
  40018. + if eval "$relink_command"; then :
  40019. + else
  40020. + func_error "error: relink \`$file' with the above command before installing it"
  40021. + $opt_dry_run || ${RM}r "$tmpdir"
  40022. + continue
  40023. + fi
  40024. + file="$outputname"
  40025. + else
  40026. + func_warning "cannot relink \`$file'"
  40027. + fi
  40028. + }
  40029. + else
  40030. + # Install the binary that we compiled earlier.
  40031. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  40032. fi
  40033. - continue
  40034. - ;;
  40035. - %DEPLIBS%)
  40036. - alldeplibs=yes
  40037. - continue
  40038. - ;;
  40039. - esac # case $deplib
  40040. - if test "$found" = yes || test -f "$lib"; then :
  40041. - else
  40042. - $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  40043. - exit $EXIT_FAILURE
  40044. fi
  40045. - # Check to see that this really is a libtool archive.
  40046. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  40047. - else
  40048. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  40049. - exit $EXIT_FAILURE
  40050. + # remove .exe since cygwin /usr/bin/install will append another
  40051. + # one anyway
  40052. + case $install_prog,$host in
  40053. + */usr/bin/install*,*cygwin*)
  40054. + case $file:$destfile in
  40055. + *.exe:*.exe)
  40056. + # this is ok
  40057. + ;;
  40058. + *.exe:*)
  40059. + destfile=$destfile.exe
  40060. + ;;
  40061. + *:*.exe)
  40062. + func_stripname '' '.exe' "$destfile"
  40063. + destfile=$func_stripname_result
  40064. + ;;
  40065. + esac
  40066. + ;;
  40067. + esac
  40068. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  40069. + $opt_dry_run || if test -n "$outputname"; then
  40070. + ${RM}r "$tmpdir"
  40071. fi
  40072. + ;;
  40073. + esac
  40074. + done
  40075. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  40076. - test "X$ladir" = "X$lib" && ladir="."
  40077. + for file in $staticlibs; do
  40078. + func_basename "$file"
  40079. + name="$func_basename_result"
  40080. - dlname=
  40081. - dlopen=
  40082. - dlpreopen=
  40083. - libdir=
  40084. - library_names=
  40085. - old_library=
  40086. - # If the library was installed with an old release of libtool,
  40087. - # it will not redefine variables installed, or shouldnotlink
  40088. - installed=yes
  40089. - shouldnotlink=no
  40090. - avoidtemprpath=
  40091. + # Set up the ranlib parameters.
  40092. + oldlib="$destdir/$name"
  40093. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  40094. - # Read the .la file
  40095. - case $lib in
  40096. - */* | *\\*) . $lib ;;
  40097. - *) . ./$lib ;;
  40098. - esac
  40099. + if test -n "$stripme" && test -n "$old_striplib"; then
  40100. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  40101. + fi
  40102. - if test "$linkmode,$pass" = "lib,link" ||
  40103. - test "$linkmode,$pass" = "prog,scan" ||
  40104. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  40105. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  40106. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  40107. - fi
  40108. + # Do each command in the postinstall commands.
  40109. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  40110. + done
  40111. - if test "$pass" = conv; then
  40112. - # Only check for convenience libraries
  40113. - deplibs="$lib $deplibs"
  40114. - if test -z "$libdir"; then
  40115. - if test -z "$old_library"; then
  40116. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  40117. - exit $EXIT_FAILURE
  40118. - fi
  40119. - # It is a libtool convenience library, so add in its objects.
  40120. - convenience="$convenience $ladir/$objdir/$old_library"
  40121. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  40122. - tmp_libs=
  40123. - for deplib in $dependency_libs; do
  40124. - deplibs="$deplib $deplibs"
  40125. - if test "X$duplicate_deps" = "Xyes" ; then
  40126. - case "$tmp_libs " in
  40127. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  40128. - esac
  40129. - fi
  40130. - tmp_libs="$tmp_libs $deplib"
  40131. - done
  40132. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  40133. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  40134. - exit $EXIT_FAILURE
  40135. - fi
  40136. - continue
  40137. - fi # $pass = conv
  40138. + test -n "$future_libdirs" && \
  40139. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  40140. + if test -n "$current_libdirs"; then
  40141. + # Maybe just do a dry run.
  40142. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  40143. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  40144. + else
  40145. + exit $EXIT_SUCCESS
  40146. + fi
  40147. +}
  40148. - # Get the name of the library we link against.
  40149. - linklib=
  40150. - for l in $old_library $library_names; do
  40151. - linklib="$l"
  40152. - done
  40153. - if test -z "$linklib"; then
  40154. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  40155. - exit $EXIT_FAILURE
  40156. - fi
  40157. +test "$mode" = install && func_mode_install ${1+"$@"}
  40158. - # This library was specified with -dlopen.
  40159. - if test "$pass" = dlopen; then
  40160. - if test -z "$libdir"; then
  40161. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  40162. - exit $EXIT_FAILURE
  40163. - fi
  40164. - if test -z "$dlname" ||
  40165. - test "$dlopen_support" != yes ||
  40166. - test "$build_libtool_libs" = no; then
  40167. - # If there is no dlname, no dlopen support or we're linking
  40168. - # statically, we need to preload. We also need to preload any
  40169. - # dependent libraries so libltdl's deplib preloader doesn't
  40170. - # bomb out in the load deplibs phase.
  40171. - dlprefiles="$dlprefiles $lib $dependency_libs"
  40172. - else
  40173. - newdlfiles="$newdlfiles $lib"
  40174. - fi
  40175. - continue
  40176. - fi # $pass = dlopen
  40177. - # We need an absolute path.
  40178. - case $ladir in
  40179. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  40180. - *)
  40181. - abs_ladir=`cd "$ladir" && pwd`
  40182. - if test -z "$abs_ladir"; then
  40183. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  40184. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  40185. - abs_ladir="$ladir"
  40186. +# func_generate_dlsyms outputname originator pic_p
  40187. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  40188. +# a dlpreopen symbol table.
  40189. +func_generate_dlsyms ()
  40190. +{
  40191. + $opt_debug
  40192. + my_outputname="$1"
  40193. + my_originator="$2"
  40194. + my_pic_p="${3-no}"
  40195. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  40196. + my_dlsyms=
  40197. +
  40198. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  40199. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  40200. + my_dlsyms="${my_outputname}S.c"
  40201. + else
  40202. + func_error "not configured to extract global symbols from dlpreopened files"
  40203. + fi
  40204. + fi
  40205. +
  40206. + if test -n "$my_dlsyms"; then
  40207. + case $my_dlsyms in
  40208. + "") ;;
  40209. + *.c)
  40210. + # Discover the nlist of each of the dlfiles.
  40211. + nlist="$output_objdir/${my_outputname}.nm"
  40212. +
  40213. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  40214. +
  40215. + # Parse the name list into a source file.
  40216. + func_verbose "creating $output_objdir/$my_dlsyms"
  40217. +
  40218. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  40219. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  40220. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  40221. +
  40222. +#ifdef __cplusplus
  40223. +extern \"C\" {
  40224. +#endif
  40225. +
  40226. +/* External symbol declarations for the compiler. */\
  40227. +"
  40228. +
  40229. + if test "$dlself" = yes; then
  40230. + func_verbose "generating symbol list for \`$output'"
  40231. +
  40232. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  40233. +
  40234. + # Add our own program objects to the symbol list.
  40235. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  40236. + for progfile in $progfiles; do
  40237. + func_verbose "extracting global C symbols from \`$progfile'"
  40238. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  40239. + done
  40240. +
  40241. + if test -n "$exclude_expsyms"; then
  40242. + $opt_dry_run || {
  40243. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  40244. + eval '$MV "$nlist"T "$nlist"'
  40245. + }
  40246. fi
  40247. - ;;
  40248. - esac
  40249. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  40250. - # Find the relevant object directory and library name.
  40251. - if test "X$installed" = Xyes; then
  40252. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  40253. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  40254. - dir="$ladir"
  40255. - absdir="$abs_ladir"
  40256. - libdir="$abs_ladir"
  40257. - else
  40258. - dir="$libdir"
  40259. - absdir="$libdir"
  40260. + if test -n "$export_symbols_regex"; then
  40261. + $opt_dry_run || {
  40262. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  40263. + eval '$MV "$nlist"T "$nlist"'
  40264. + }
  40265. fi
  40266. - test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  40267. - else
  40268. - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  40269. - dir="$ladir"
  40270. - absdir="$abs_ladir"
  40271. - # Remove this search path later
  40272. - notinst_path="$notinst_path $abs_ladir"
  40273. +
  40274. + # Prepare the list of exported symbols
  40275. + if test -z "$export_symbols"; then
  40276. + export_symbols="$output_objdir/$outputname.exp"
  40277. + $opt_dry_run || {
  40278. + $RM $export_symbols
  40279. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  40280. + case $host in
  40281. + *cygwin* | *mingw* | *cegcc* )
  40282. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  40283. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  40284. + ;;
  40285. + esac
  40286. + }
  40287. else
  40288. - dir="$ladir/$objdir"
  40289. - absdir="$abs_ladir/$objdir"
  40290. - # Remove this search path later
  40291. - notinst_path="$notinst_path $abs_ladir"
  40292. + $opt_dry_run || {
  40293. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  40294. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  40295. + eval '$MV "$nlist"T "$nlist"'
  40296. + case $host in
  40297. + *cygwin | *mingw* | *cegcc* )
  40298. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  40299. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  40300. + ;;
  40301. + esac
  40302. + }
  40303. fi
  40304. - fi # $installed = yes
  40305. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  40306. + fi
  40307. - # This library was specified with -dlpreopen.
  40308. - if test "$pass" = dlpreopen; then
  40309. - if test -z "$libdir"; then
  40310. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  40311. - exit $EXIT_FAILURE
  40312. + for dlprefile in $dlprefiles; do
  40313. + func_verbose "extracting global C symbols from \`$dlprefile'"
  40314. + func_basename "$dlprefile"
  40315. + name="$func_basename_result"
  40316. + $opt_dry_run || {
  40317. + eval '$ECHO ": $name " >> "$nlist"'
  40318. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  40319. + }
  40320. + done
  40321. +
  40322. + $opt_dry_run || {
  40323. + # Make sure we have at least an empty file.
  40324. + test -f "$nlist" || : > "$nlist"
  40325. +
  40326. + if test -n "$exclude_expsyms"; then
  40327. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  40328. + $MV "$nlist"T "$nlist"
  40329. fi
  40330. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  40331. - # are required to link).
  40332. - if test -n "$old_library"; then
  40333. - newdlprefiles="$newdlprefiles $dir/$old_library"
  40334. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  40335. - elif test -n "$dlname"; then
  40336. - newdlprefiles="$newdlprefiles $dir/$dlname"
  40337. +
  40338. + # Try sorting and uniquifying the output.
  40339. + if $GREP -v "^: " < "$nlist" |
  40340. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  40341. + sort -k 3
  40342. + else
  40343. + sort +2
  40344. + fi |
  40345. + uniq > "$nlist"S; then
  40346. + :
  40347. else
  40348. - newdlprefiles="$newdlprefiles $dir/$linklib"
  40349. + $GREP -v "^: " < "$nlist" > "$nlist"S
  40350. fi
  40351. - fi # $pass = dlpreopen
  40352. - if test -z "$libdir"; then
  40353. - # Link the convenience library
  40354. - if test "$linkmode" = lib; then
  40355. - deplibs="$dir/$old_library $deplibs"
  40356. - elif test "$linkmode,$pass" = "prog,link"; then
  40357. - compile_deplibs="$dir/$old_library $compile_deplibs"
  40358. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  40359. + if test -f "$nlist"S; then
  40360. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  40361. else
  40362. - deplibs="$lib $deplibs" # used for prog,scan pass
  40363. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  40364. fi
  40365. - continue
  40366. - fi
  40367. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  40368. - if test "$linkmode" = prog && test "$pass" != link; then
  40369. - newlib_search_path="$newlib_search_path $ladir"
  40370. - deplibs="$lib $deplibs"
  40371. -
  40372. - linkalldeplibs=no
  40373. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  40374. - test "$build_libtool_libs" = no; then
  40375. - linkalldeplibs=yes
  40376. - fi
  40377. +/* The mapping between symbol names and symbols. */
  40378. +typedef struct {
  40379. + const char *name;
  40380. + void *address;
  40381. +} lt_dlsymlist;
  40382. +"
  40383. + case $host in
  40384. + *cygwin* | *mingw* | *cegcc* )
  40385. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  40386. +/* DATA imports from DLLs on WIN32 con't be const, because
  40387. + runtime relocations are performed -- see ld's documentation
  40388. + on pseudo-relocs. */"
  40389. + lt_dlsym_const= ;;
  40390. + *osf5*)
  40391. + echo >> "$output_objdir/$my_dlsyms" "\
  40392. +/* This system does not cope well with relocations in const data */"
  40393. + lt_dlsym_const= ;;
  40394. + *)
  40395. + lt_dlsym_const=const ;;
  40396. + esac
  40397. - tmp_libs=
  40398. - for deplib in $dependency_libs; do
  40399. - case $deplib in
  40400. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  40401. - esac
  40402. - # Need to link against all dependency_libs?
  40403. - if test "$linkalldeplibs" = yes; then
  40404. - deplibs="$deplib $deplibs"
  40405. - else
  40406. - # Need to hardcode shared library paths
  40407. - # or/and link against static libraries
  40408. - newdependency_libs="$deplib $newdependency_libs"
  40409. - fi
  40410. - if test "X$duplicate_deps" = "Xyes" ; then
  40411. - case "$tmp_libs " in
  40412. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  40413. - esac
  40414. - fi
  40415. - tmp_libs="$tmp_libs $deplib"
  40416. - done # for deplib
  40417. - continue
  40418. - fi # $linkmode = prog...
  40419. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  40420. +extern $lt_dlsym_const lt_dlsymlist
  40421. +lt_${my_prefix}_LTX_preloaded_symbols[];
  40422. +$lt_dlsym_const lt_dlsymlist
  40423. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  40424. +{\
  40425. + { \"$my_originator\", (void *) 0 },"
  40426. - if test "$linkmode,$pass" = "prog,link"; then
  40427. - if test -n "$library_names" &&
  40428. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  40429. - # We need to hardcode the library path
  40430. - if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  40431. - # Make sure the rpath contains only unique directories.
  40432. - case "$temp_rpath " in
  40433. - *" $dir "*) ;;
  40434. - *" $absdir "*) ;;
  40435. - *) temp_rpath="$temp_rpath $absdir" ;;
  40436. - esac
  40437. - fi
  40438. + case $need_lib_prefix in
  40439. + no)
  40440. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  40441. + ;;
  40442. + *)
  40443. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  40444. + ;;
  40445. + esac
  40446. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  40447. + {0, (void *) 0}
  40448. +};
  40449. - # Hardcode the library path.
  40450. - # Skip directories that are in the system default run-time
  40451. - # search path.
  40452. - case " $sys_lib_dlsearch_path " in
  40453. - *" $absdir "*) ;;
  40454. - *)
  40455. - case "$compile_rpath " in
  40456. - *" $absdir "*) ;;
  40457. - *) compile_rpath="$compile_rpath $absdir"
  40458. - esac
  40459. - ;;
  40460. - esac
  40461. - case " $sys_lib_dlsearch_path " in
  40462. - *" $libdir "*) ;;
  40463. - *)
  40464. - case "$finalize_rpath " in
  40465. - *" $libdir "*) ;;
  40466. - *) finalize_rpath="$finalize_rpath $libdir"
  40467. - esac
  40468. - ;;
  40469. - esac
  40470. - fi # $linkmode,$pass = prog,link...
  40471. +/* This works around a problem in FreeBSD linker */
  40472. +#ifdef FREEBSD_WORKAROUND
  40473. +static const void *lt_preloaded_setup() {
  40474. + return lt_${my_prefix}_LTX_preloaded_symbols;
  40475. +}
  40476. +#endif
  40477. - if test "$alldeplibs" = yes &&
  40478. - { test "$deplibs_check_method" = pass_all ||
  40479. - { test "$build_libtool_libs" = yes &&
  40480. - test -n "$library_names"; }; }; then
  40481. - # We only need to search for static libraries
  40482. - continue
  40483. - fi
  40484. - fi
  40485. +#ifdef __cplusplus
  40486. +}
  40487. +#endif\
  40488. +"
  40489. + } # !$opt_dry_run
  40490. - link_static=no # Whether the deplib will be linked statically
  40491. - use_static_libs=$prefer_static_libs
  40492. - if test "$use_static_libs" = built && test "$installed" = yes ; then
  40493. - use_static_libs=no
  40494. - fi
  40495. - if test -n "$library_names" &&
  40496. - { test "$use_static_libs" = no || test -z "$old_library"; }; then
  40497. - if test "$installed" = no; then
  40498. - notinst_deplibs="$notinst_deplibs $lib"
  40499. - need_relink=yes
  40500. - fi
  40501. - # This is a shared library
  40502. -
  40503. - # Warn about portability, can't link against -module's on
  40504. - # some systems (darwin)
  40505. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  40506. - $echo
  40507. - if test "$linkmode" = prog; then
  40508. - $echo "*** Warning: Linking the executable $output against the loadable module"
  40509. - else
  40510. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  40511. + pic_flag_for_symtable=
  40512. + case "$compile_command " in
  40513. + *" -static "*) ;;
  40514. + *)
  40515. + case $host in
  40516. + # compiling the symbol table file with pic_flag works around
  40517. + # a FreeBSD bug that causes programs to crash when -lm is
  40518. + # linked before any other PIC object. But we must not use
  40519. + # pic_flag when linking with -static. The problem exists in
  40520. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  40521. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  40522. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  40523. + *-*-hpux*)
  40524. + pic_flag_for_symtable=" $pic_flag" ;;
  40525. + *)
  40526. + if test "X$my_pic_p" != Xno; then
  40527. + pic_flag_for_symtable=" $pic_flag"
  40528. fi
  40529. - $echo "*** $linklib is not portable!"
  40530. - fi
  40531. - if test "$linkmode" = lib &&
  40532. - test "$hardcode_into_libs" = yes; then
  40533. - # Hardcode the library path.
  40534. - # Skip directories that are in the system default run-time
  40535. - # search path.
  40536. - case " $sys_lib_dlsearch_path " in
  40537. - *" $absdir "*) ;;
  40538. - *)
  40539. - case "$compile_rpath " in
  40540. - *" $absdir "*) ;;
  40541. - *) compile_rpath="$compile_rpath $absdir"
  40542. - esac
  40543. - ;;
  40544. - esac
  40545. - case " $sys_lib_dlsearch_path " in
  40546. - *" $libdir "*) ;;
  40547. - *)
  40548. - case "$finalize_rpath " in
  40549. - *" $libdir "*) ;;
  40550. - *) finalize_rpath="$finalize_rpath $libdir"
  40551. - esac
  40552. - ;;
  40553. - esac
  40554. - fi
  40555. + ;;
  40556. + esac
  40557. + ;;
  40558. + esac
  40559. + symtab_cflags=
  40560. + for arg in $LTCFLAGS; do
  40561. + case $arg in
  40562. + -pie | -fpie | -fPIE) ;;
  40563. + *) symtab_cflags="$symtab_cflags $arg" ;;
  40564. + esac
  40565. + done
  40566. - if test -n "$old_archive_from_expsyms_cmds"; then
  40567. - # figure out the soname
  40568. - set dummy $library_names
  40569. - realname="$2"
  40570. - shift; shift
  40571. - libname=`eval \\$echo \"$libname_spec\"`
  40572. - # use dlname if we got it. it's perfectly good, no?
  40573. - if test -n "$dlname"; then
  40574. - soname="$dlname"
  40575. - elif test -n "$soname_spec"; then
  40576. - # bleh windows
  40577. - case $host in
  40578. - *cygwin* | mingw*)
  40579. - major=`expr $current - $age`
  40580. - versuffix="-$major"
  40581. - ;;
  40582. - esac
  40583. - eval soname=\"$soname_spec\"
  40584. - else
  40585. - soname="$realname"
  40586. - fi
  40587. + # Now compile the dynamic symbol file.
  40588. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  40589. - # Make a new name for the extract_expsyms_cmds to use
  40590. - soroot="$soname"
  40591. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  40592. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  40593. + # Clean up the generated files.
  40594. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  40595. - # If the library has no export list, then create one now
  40596. - if test -f "$output_objdir/$soname-def"; then :
  40597. - else
  40598. - $show "extracting exported symbol list from \`$soname'"
  40599. - save_ifs="$IFS"; IFS='~'
  40600. - cmds=$extract_expsyms_cmds
  40601. - for cmd in $cmds; do
  40602. - IFS="$save_ifs"
  40603. - eval cmd=\"$cmd\"
  40604. - $show "$cmd"
  40605. - $run eval "$cmd" || exit $?
  40606. - done
  40607. - IFS="$save_ifs"
  40608. - fi
  40609. + # Transform the symbol file into the correct name.
  40610. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  40611. + case $host in
  40612. + *cygwin* | *mingw* | *cegcc* )
  40613. + if test -f "$output_objdir/$my_outputname.def"; then
  40614. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  40615. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  40616. + else
  40617. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  40618. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  40619. + fi
  40620. + ;;
  40621. + *)
  40622. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  40623. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  40624. + ;;
  40625. + esac
  40626. + ;;
  40627. + *)
  40628. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  40629. + ;;
  40630. + esac
  40631. + else
  40632. + # We keep going just in case the user didn't refer to
  40633. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  40634. + # really was required.
  40635. +
  40636. + # Nullify the symbol file.
  40637. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  40638. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  40639. + fi
  40640. +}
  40641. - # Create $newlib
  40642. - if test -f "$output_objdir/$newlib"; then :; else
  40643. - $show "generating import library for \`$soname'"
  40644. - save_ifs="$IFS"; IFS='~'
  40645. - cmds=$old_archive_from_expsyms_cmds
  40646. - for cmd in $cmds; do
  40647. - IFS="$save_ifs"
  40648. - eval cmd=\"$cmd\"
  40649. - $show "$cmd"
  40650. - $run eval "$cmd" || exit $?
  40651. - done
  40652. - IFS="$save_ifs"
  40653. - fi
  40654. - # make sure the library variables are pointing to the new library
  40655. - dir=$output_objdir
  40656. - linklib=$newlib
  40657. - fi # test -n "$old_archive_from_expsyms_cmds"
  40658. +# func_win32_libid arg
  40659. +# return the library type of file 'arg'
  40660. +#
  40661. +# Need a lot of goo to handle *both* DLLs and import libs
  40662. +# Has to be a shell function in order to 'eat' the argument
  40663. +# that is supplied when $file_magic_command is called.
  40664. +func_win32_libid ()
  40665. +{
  40666. + $opt_debug
  40667. + win32_libid_type="unknown"
  40668. + win32_fileres=`file -L $1 2>/dev/null`
  40669. + case $win32_fileres in
  40670. + *ar\ archive\ import\ library*) # definitely import
  40671. + win32_libid_type="x86 archive import"
  40672. + ;;
  40673. + *ar\ archive*) # could be an import, or static
  40674. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  40675. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  40676. + win32_nmres=`eval $NM -f posix -A $1 |
  40677. + $SED -n -e '
  40678. + 1,100{
  40679. + / I /{
  40680. + s,.*,import,
  40681. + p
  40682. + q
  40683. + }
  40684. + }'`
  40685. + case $win32_nmres in
  40686. + import*) win32_libid_type="x86 archive import";;
  40687. + *) win32_libid_type="x86 archive static";;
  40688. + esac
  40689. + fi
  40690. + ;;
  40691. + *DLL*)
  40692. + win32_libid_type="x86 DLL"
  40693. + ;;
  40694. + *executable*) # but shell scripts are "executable" too...
  40695. + case $win32_fileres in
  40696. + *MS\ Windows\ PE\ Intel*)
  40697. + win32_libid_type="x86 DLL"
  40698. + ;;
  40699. + esac
  40700. + ;;
  40701. + esac
  40702. + $ECHO "$win32_libid_type"
  40703. +}
  40704. - if test "$linkmode" = prog || test "$mode" != relink; then
  40705. - add_shlibpath=
  40706. - add_dir=
  40707. - add=
  40708. - lib_linked=yes
  40709. - case $hardcode_action in
  40710. - immediate | unsupported)
  40711. - if test "$hardcode_direct" = no; then
  40712. - add="$dir/$linklib"
  40713. - case $host in
  40714. - *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  40715. - *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  40716. - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  40717. - *-*-unixware7*) add_dir="-L$dir" ;;
  40718. - *-*-darwin* )
  40719. - # if the lib is a module then we can not link against
  40720. - # it, someone is ignoring the new warnings I added
  40721. - if /usr/bin/file -L $add 2> /dev/null |
  40722. - $EGREP ": [^:]* bundle" >/dev/null ; then
  40723. - $echo "** Warning, lib $linklib is a module, not a shared library"
  40724. - if test -z "$old_library" ; then
  40725. - $echo
  40726. - $echo "** And there doesn't seem to be a static archive available"
  40727. - $echo "** The link will probably fail, sorry"
  40728. - else
  40729. - add="$dir/$old_library"
  40730. - fi
  40731. - fi
  40732. - esac
  40733. - elif test "$hardcode_minus_L" = no; then
  40734. - case $host in
  40735. - *-*-sunos*) add_shlibpath="$dir" ;;
  40736. - esac
  40737. - add_dir="-L$dir"
  40738. - add="-l$name"
  40739. - elif test "$hardcode_shlibpath_var" = no; then
  40740. - add_shlibpath="$dir"
  40741. - add="-l$name"
  40742. - else
  40743. - lib_linked=no
  40744. - fi
  40745. - ;;
  40746. - relink)
  40747. - if test "$hardcode_direct" = yes; then
  40748. - add="$dir/$linklib"
  40749. - elif test "$hardcode_minus_L" = yes; then
  40750. - add_dir="-L$dir"
  40751. - # Try looking first in the location we're being installed to.
  40752. - if test -n "$inst_prefix_dir"; then
  40753. - case $libdir in
  40754. - [\\/]*)
  40755. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  40756. - ;;
  40757. - esac
  40758. - fi
  40759. - add="-l$name"
  40760. - elif test "$hardcode_shlibpath_var" = yes; then
  40761. - add_shlibpath="$dir"
  40762. - add="-l$name"
  40763. - else
  40764. - lib_linked=no
  40765. - fi
  40766. - ;;
  40767. - *) lib_linked=no ;;
  40768. - esac
  40769. - if test "$lib_linked" != yes; then
  40770. - $echo "$modename: configuration error: unsupported hardcode properties"
  40771. - exit $EXIT_FAILURE
  40772. - fi
  40773. - if test -n "$add_shlibpath"; then
  40774. - case :$compile_shlibpath: in
  40775. - *":$add_shlibpath:"*) ;;
  40776. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  40777. - esac
  40778. - fi
  40779. - if test "$linkmode" = prog; then
  40780. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  40781. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  40782. - else
  40783. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  40784. - test -n "$add" && deplibs="$add $deplibs"
  40785. - if test "$hardcode_direct" != yes && \
  40786. - test "$hardcode_minus_L" != yes && \
  40787. - test "$hardcode_shlibpath_var" = yes; then
  40788. - case :$finalize_shlibpath: in
  40789. - *":$libdir:"*) ;;
  40790. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  40791. - esac
  40792. - fi
  40793. - fi
  40794. - fi
  40795. +# func_extract_an_archive dir oldlib
  40796. +func_extract_an_archive ()
  40797. +{
  40798. + $opt_debug
  40799. + f_ex_an_ar_dir="$1"; shift
  40800. + f_ex_an_ar_oldlib="$1"
  40801. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  40802. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  40803. + :
  40804. + else
  40805. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  40806. + fi
  40807. +}
  40808. - if test "$linkmode" = prog || test "$mode" = relink; then
  40809. - add_shlibpath=
  40810. - add_dir=
  40811. - add=
  40812. - # Finalize command for both is simple: just hardcode it.
  40813. - if test "$hardcode_direct" = yes; then
  40814. - add="$libdir/$linklib"
  40815. - elif test "$hardcode_minus_L" = yes; then
  40816. - add_dir="-L$libdir"
  40817. - add="-l$name"
  40818. - elif test "$hardcode_shlibpath_var" = yes; then
  40819. - case :$finalize_shlibpath: in
  40820. - *":$libdir:"*) ;;
  40821. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  40822. - esac
  40823. - add="-l$name"
  40824. - elif test "$hardcode_automatic" = yes; then
  40825. - if test -n "$inst_prefix_dir" &&
  40826. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  40827. - add="$inst_prefix_dir$libdir/$linklib"
  40828. - else
  40829. - add="$libdir/$linklib"
  40830. - fi
  40831. - else
  40832. - # We cannot seem to hardcode it, guess we'll fake it.
  40833. - add_dir="-L$libdir"
  40834. - # Try looking first in the location we're being installed to.
  40835. - if test -n "$inst_prefix_dir"; then
  40836. - case $libdir in
  40837. - [\\/]*)
  40838. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  40839. - ;;
  40840. - esac
  40841. - fi
  40842. - add="-l$name"
  40843. - fi
  40844. - if test "$linkmode" = prog; then
  40845. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  40846. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  40847. - else
  40848. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  40849. - test -n "$add" && deplibs="$add $deplibs"
  40850. - fi
  40851. - fi
  40852. - elif test "$linkmode" = prog; then
  40853. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  40854. - # is not unsupported. This is valid on all known static and
  40855. - # shared platforms.
  40856. - if test "$hardcode_direct" != unsupported; then
  40857. - test -n "$old_library" && linklib="$old_library"
  40858. - compile_deplibs="$dir/$linklib $compile_deplibs"
  40859. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  40860. - else
  40861. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  40862. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  40863. - fi
  40864. - elif test "$build_libtool_libs" = yes; then
  40865. - # Not a shared library
  40866. - if test "$deplibs_check_method" != pass_all; then
  40867. - # We're trying link a shared library against a static one
  40868. - # but the system doesn't support it.
  40869. +# func_extract_archives gentop oldlib ...
  40870. +func_extract_archives ()
  40871. +{
  40872. + $opt_debug
  40873. + my_gentop="$1"; shift
  40874. + my_oldlibs=${1+"$@"}
  40875. + my_oldobjs=""
  40876. + my_xlib=""
  40877. + my_xabs=""
  40878. + my_xdir=""
  40879. - # Just print a warning and add the library to dependency_libs so
  40880. - # that the program can be linked against the static library.
  40881. - $echo
  40882. - $echo "*** Warning: This system can not link to static lib archive $lib."
  40883. - $echo "*** I have the capability to make that library automatically link in when"
  40884. - $echo "*** you link to this library. But I can only do this if you have a"
  40885. - $echo "*** shared version of the library, which you do not appear to have."
  40886. - if test "$module" = yes; then
  40887. - $echo "*** But as you try to build a module library, libtool will still create "
  40888. - $echo "*** a static module, that should work as long as the dlopening application"
  40889. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  40890. - if test -z "$global_symbol_pipe"; then
  40891. - $echo
  40892. - $echo "*** However, this would only work if libtool was able to extract symbol"
  40893. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  40894. - $echo "*** not find such a program. So, this module is probably useless."
  40895. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  40896. - fi
  40897. - if test "$build_old_libs" = no; then
  40898. - build_libtool_libs=module
  40899. - build_old_libs=yes
  40900. - else
  40901. - build_libtool_libs=no
  40902. - fi
  40903. - fi
  40904. + for my_xlib in $my_oldlibs; do
  40905. + # Extract the objects.
  40906. + case $my_xlib in
  40907. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  40908. + *) my_xabs=`pwd`"/$my_xlib" ;;
  40909. + esac
  40910. + func_basename "$my_xlib"
  40911. + my_xlib="$func_basename_result"
  40912. + my_xlib_u=$my_xlib
  40913. + while :; do
  40914. + case " $extracted_archives " in
  40915. + *" $my_xlib_u "*)
  40916. + func_arith $extracted_serial + 1
  40917. + extracted_serial=$func_arith_result
  40918. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  40919. + *) break ;;
  40920. + esac
  40921. + done
  40922. + extracted_archives="$extracted_archives $my_xlib_u"
  40923. + my_xdir="$my_gentop/$my_xlib_u"
  40924. +
  40925. + func_mkdir_p "$my_xdir"
  40926. +
  40927. + case $host in
  40928. + *-darwin*)
  40929. + func_verbose "Extracting $my_xabs"
  40930. + # Do not bother doing anything if just a dry run
  40931. + $opt_dry_run || {
  40932. + darwin_orig_dir=`pwd`
  40933. + cd $my_xdir || exit $?
  40934. + darwin_archive=$my_xabs
  40935. + darwin_curdir=`pwd`
  40936. + darwin_base_archive=`basename "$darwin_archive"`
  40937. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  40938. + if test -n "$darwin_arches"; then
  40939. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  40940. + darwin_arch=
  40941. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  40942. + for darwin_arch in $darwin_arches ; do
  40943. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  40944. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  40945. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  40946. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  40947. + cd "$darwin_curdir"
  40948. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  40949. + done # $darwin_arches
  40950. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  40951. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  40952. + darwin_file=
  40953. + darwin_files=
  40954. + for darwin_file in $darwin_filelist; do
  40955. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  40956. + $LIPO -create -output "$darwin_file" $darwin_files
  40957. + done # $darwin_filelist
  40958. + $RM -rf unfat-$$
  40959. + cd "$darwin_orig_dir"
  40960. else
  40961. - deplibs="$dir/$old_library $deplibs"
  40962. - link_static=yes
  40963. - fi
  40964. - fi # link shared/static library?
  40965. + cd $darwin_orig_dir
  40966. + func_extract_an_archive "$my_xdir" "$my_xabs"
  40967. + fi # $darwin_arches
  40968. + } # !$opt_dry_run
  40969. + ;;
  40970. + *)
  40971. + func_extract_an_archive "$my_xdir" "$my_xabs"
  40972. + ;;
  40973. + esac
  40974. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  40975. + done
  40976. - if test "$linkmode" = lib; then
  40977. - if test -n "$dependency_libs" &&
  40978. - { test "$hardcode_into_libs" != yes ||
  40979. - test "$build_old_libs" = yes ||
  40980. - test "$link_static" = yes; }; then
  40981. - # Extract -R from dependency_libs
  40982. - temp_deplibs=
  40983. - for libdir in $dependency_libs; do
  40984. - case $libdir in
  40985. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  40986. - case " $xrpath " in
  40987. - *" $temp_xrpath "*) ;;
  40988. - *) xrpath="$xrpath $temp_xrpath";;
  40989. - esac;;
  40990. - *) temp_deplibs="$temp_deplibs $libdir";;
  40991. - esac
  40992. - done
  40993. - dependency_libs="$temp_deplibs"
  40994. - fi
  40995. + func_extract_archives_result="$my_oldobjs"
  40996. +}
  40997. - newlib_search_path="$newlib_search_path $absdir"
  40998. - # Link against this library
  40999. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  41000. - # ... and its dependency_libs
  41001. - tmp_libs=
  41002. - for deplib in $dependency_libs; do
  41003. - newdependency_libs="$deplib $newdependency_libs"
  41004. - if test "X$duplicate_deps" = "Xyes" ; then
  41005. - case "$tmp_libs " in
  41006. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  41007. - esac
  41008. - fi
  41009. - tmp_libs="$tmp_libs $deplib"
  41010. - done
  41011. - if test "$link_all_deplibs" != no; then
  41012. - # Add the search paths of all dependency libraries
  41013. - for deplib in $dependency_libs; do
  41014. - case $deplib in
  41015. - -L*) path="$deplib" ;;
  41016. - *.la)
  41017. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  41018. - test "X$dir" = "X$deplib" && dir="."
  41019. - # We need an absolute path.
  41020. - case $dir in
  41021. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  41022. - *)
  41023. - absdir=`cd "$dir" && pwd`
  41024. - if test -z "$absdir"; then
  41025. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  41026. - absdir="$dir"
  41027. - fi
  41028. - ;;
  41029. - esac
  41030. - if grep "^installed=no" $deplib > /dev/null; then
  41031. - path="$absdir/$objdir"
  41032. - else
  41033. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  41034. - if test -z "$libdir"; then
  41035. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  41036. - exit $EXIT_FAILURE
  41037. - fi
  41038. - if test "$absdir" != "$libdir"; then
  41039. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  41040. - fi
  41041. - path="$absdir"
  41042. - fi
  41043. - depdepl=
  41044. - case $host in
  41045. - *-*-darwin*)
  41046. - # we do not want to link against static libs,
  41047. - # but need to link against shared
  41048. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  41049. - if test -n "$deplibrary_names" ; then
  41050. - for tmp in $deplibrary_names ; do
  41051. - depdepl=$tmp
  41052. - done
  41053. - if test -f "$path/$depdepl" ; then
  41054. - depdepl="$path/$depdepl"
  41055. - fi
  41056. - # do not add paths which are already there
  41057. - case " $newlib_search_path " in
  41058. - *" $path "*) ;;
  41059. - *) newlib_search_path="$newlib_search_path $path";;
  41060. - esac
  41061. - fi
  41062. - path=""
  41063. - ;;
  41064. - *)
  41065. - path="-L$path"
  41066. - ;;
  41067. - esac
  41068. - ;;
  41069. - -l*)
  41070. - case $host in
  41071. - *-*-darwin*)
  41072. - # Again, we only want to link against shared libraries
  41073. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  41074. - for tmp in $newlib_search_path ; do
  41075. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  41076. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  41077. - break
  41078. - fi
  41079. - done
  41080. - path=""
  41081. - ;;
  41082. - *) continue ;;
  41083. - esac
  41084. - ;;
  41085. - *) continue ;;
  41086. - esac
  41087. - case " $deplibs " in
  41088. - *" $path "*) ;;
  41089. - *) deplibs="$path $deplibs" ;;
  41090. - esac
  41091. - case " $deplibs " in
  41092. - *" $depdepl "*) ;;
  41093. - *) deplibs="$depdepl $deplibs" ;;
  41094. - esac
  41095. - done
  41096. - fi # link_all_deplibs != no
  41097. - fi # linkmode = lib
  41098. - done # for deplib in $libs
  41099. - dependency_libs="$newdependency_libs"
  41100. - if test "$pass" = dlpreopen; then
  41101. - # Link the dlpreopened libraries before other libraries
  41102. - for deplib in $save_deplibs; do
  41103. - deplibs="$deplib $deplibs"
  41104. - done
  41105. - fi
  41106. - if test "$pass" != dlopen; then
  41107. - if test "$pass" != conv; then
  41108. - # Make sure lib_search_path contains only unique directories.
  41109. - lib_search_path=
  41110. - for dir in $newlib_search_path; do
  41111. - case "$lib_search_path " in
  41112. - *" $dir "*) ;;
  41113. - *) lib_search_path="$lib_search_path $dir" ;;
  41114. - esac
  41115. - done
  41116. - newlib_search_path=
  41117. - fi
  41118. - if test "$linkmode,$pass" != "prog,link"; then
  41119. - vars="deplibs"
  41120. - else
  41121. - vars="compile_deplibs finalize_deplibs"
  41122. +# func_emit_wrapper_part1 [arg=no]
  41123. +#
  41124. +# Emit the first part of a libtool wrapper script on stdout.
  41125. +# For more information, see the description associated with
  41126. +# func_emit_wrapper(), below.
  41127. +func_emit_wrapper_part1 ()
  41128. +{
  41129. + func_emit_wrapper_part1_arg1=no
  41130. + if test -n "$1" ; then
  41131. + func_emit_wrapper_part1_arg1=$1
  41132. fi
  41133. - for var in $vars dependency_libs; do
  41134. - # Add libraries to $var in reverse order
  41135. - eval tmp_libs=\"\$$var\"
  41136. - new_libs=
  41137. - for deplib in $tmp_libs; do
  41138. - # FIXME: Pedantically, this is the right thing to do, so
  41139. - # that some nasty dependency loop isn't accidentally
  41140. - # broken:
  41141. - #new_libs="$deplib $new_libs"
  41142. - # Pragmatically, this seems to cause very few problems in
  41143. - # practice:
  41144. - case $deplib in
  41145. - -L*) new_libs="$deplib $new_libs" ;;
  41146. - -R*) ;;
  41147. - *)
  41148. - # And here is the reason: when a library appears more
  41149. - # than once as an explicit dependence of a library, or
  41150. - # is implicitly linked in more than once by the
  41151. - # compiler, it is considered special, and multiple
  41152. - # occurrences thereof are not removed. Compare this
  41153. - # with having the same library being listed as a
  41154. - # dependency of multiple other libraries: in this case,
  41155. - # we know (pedantically, we assume) the library does not
  41156. - # need to be listed more than once, so we keep only the
  41157. - # last copy. This is not always right, but it is rare
  41158. - # enough that we require users that really mean to play
  41159. - # such unportable linking tricks to link the library
  41160. - # using -Wl,-lname, so that libtool does not consider it
  41161. - # for duplicate removal.
  41162. - case " $specialdeplibs " in
  41163. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  41164. - *)
  41165. - case " $new_libs " in
  41166. - *" $deplib "*) ;;
  41167. - *) new_libs="$deplib $new_libs" ;;
  41168. - esac
  41169. - ;;
  41170. - esac
  41171. - ;;
  41172. - esac
  41173. - done
  41174. - tmp_libs=
  41175. - for deplib in $new_libs; do
  41176. - case $deplib in
  41177. - -L*)
  41178. - case " $tmp_libs " in
  41179. - *" $deplib "*) ;;
  41180. - *) tmp_libs="$tmp_libs $deplib" ;;
  41181. - esac
  41182. - ;;
  41183. - *) tmp_libs="$tmp_libs $deplib" ;;
  41184. - esac
  41185. - done
  41186. - eval $var=\"$tmp_libs\"
  41187. - done # for var
  41188. - fi
  41189. - # Last step: remove runtime libs from dependency_libs
  41190. - # (they stay in deplibs)
  41191. - tmp_libs=
  41192. - for i in $dependency_libs ; do
  41193. - case " $predeps $postdeps $compiler_lib_search_path " in
  41194. - *" $i "*)
  41195. - i=""
  41196. - ;;
  41197. - esac
  41198. - if test -n "$i" ; then
  41199. - tmp_libs="$tmp_libs $i"
  41200. - fi
  41201. - done
  41202. - dependency_libs=$tmp_libs
  41203. - done # for pass
  41204. - if test "$linkmode" = prog; then
  41205. - dlfiles="$newdlfiles"
  41206. - dlprefiles="$newdlprefiles"
  41207. - fi
  41208. - case $linkmode in
  41209. - oldlib)
  41210. - if test -n "$deplibs"; then
  41211. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  41212. - fi
  41213. + $ECHO "\
  41214. +#! $SHELL
  41215. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  41216. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  41217. - fi
  41218. +# $output - temporary wrapper script for $objdir/$outputname
  41219. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  41220. +#
  41221. +# The $output program cannot be directly executed until all the libtool
  41222. +# libraries that it depends on are installed.
  41223. +#
  41224. +# This wrapper script should never be moved out of the build directory.
  41225. +# If it is, it will not operate correctly.
  41226. - if test -n "$rpath"; then
  41227. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  41228. - fi
  41229. +# Sed substitution that helps us do robust quoting. It backslashifies
  41230. +# metacharacters that are still active within double-quoted strings.
  41231. +Xsed='${SED} -e 1s/^X//'
  41232. +sed_quote_subst='$sed_quote_subst'
  41233. - if test -n "$xrpath"; then
  41234. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  41235. - fi
  41236. +# Be Bourne compatible
  41237. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  41238. + emulate sh
  41239. + NULLCMD=:
  41240. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  41241. + # is contrary to our usage. Disable this feature.
  41242. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  41243. + setopt NO_GLOB_SUBST
  41244. +else
  41245. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  41246. +fi
  41247. +BIN_SH=xpg4; export BIN_SH # for Tru64
  41248. +DUALCASE=1; export DUALCASE # for MKS sh
  41249. - if test -n "$vinfo"; then
  41250. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  41251. - fi
  41252. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  41253. +# if CDPATH is set.
  41254. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41255. - if test -n "$release"; then
  41256. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  41257. - fi
  41258. +relink_command=\"$relink_command\"
  41259. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  41260. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  41261. - fi
  41262. +# This environment variable determines our operation mode.
  41263. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  41264. + # install mode needs the following variables:
  41265. + generated_by_libtool_version='$macro_version'
  41266. + notinst_deplibs='$notinst_deplibs'
  41267. +else
  41268. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  41269. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  41270. + ECHO=\"$qecho\"
  41271. + file=\"\$0\"
  41272. + # Make sure echo works.
  41273. + if test \"X\$1\" = X--no-reexec; then
  41274. + # Discard the --no-reexec flag, and continue.
  41275. + shift
  41276. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  41277. + # Yippee, \$ECHO works!
  41278. + :
  41279. + else
  41280. + # Restart under the correct shell, and then maybe \$ECHO will work.
  41281. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  41282. + fi
  41283. + fi\
  41284. +"
  41285. + $ECHO "\
  41286. - # Now set the variables for building old libraries.
  41287. - build_libtool_libs=no
  41288. - oldlibs="$output"
  41289. - objs="$objs$old_deplibs"
  41290. - ;;
  41291. + # Find the directory that this script lives in.
  41292. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  41293. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  41294. - lib)
  41295. - # Make sure we only generate libraries of the form `libNAME.la'.
  41296. - case $outputname in
  41297. - lib*)
  41298. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  41299. - eval shared_ext=\"$shrext_cmds\"
  41300. - eval libname=\"$libname_spec\"
  41301. - ;;
  41302. - *)
  41303. - if test "$module" = no; then
  41304. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  41305. - $echo "$help" 1>&2
  41306. - exit $EXIT_FAILURE
  41307. - fi
  41308. - if test "$need_lib_prefix" != no; then
  41309. - # Add the "lib" prefix for modules if required
  41310. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  41311. - eval shared_ext=\"$shrext_cmds\"
  41312. - eval libname=\"$libname_spec\"
  41313. - else
  41314. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  41315. - fi
  41316. - ;;
  41317. + # Follow symbolic links until we get to the real thisdir.
  41318. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  41319. + while test -n \"\$file\"; do
  41320. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  41321. +
  41322. + # If there was a directory component, then change thisdir.
  41323. + if test \"x\$destdir\" != \"x\$file\"; then
  41324. + case \"\$destdir\" in
  41325. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  41326. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  41327. esac
  41328. + fi
  41329. - if test -n "$objs"; then
  41330. - if test "$deplibs_check_method" != pass_all; then
  41331. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  41332. - exit $EXIT_FAILURE
  41333. - else
  41334. - $echo
  41335. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  41336. - $echo "*** objects $objs is not portable!"
  41337. - libobjs="$libobjs $objs"
  41338. - fi
  41339. - fi
  41340. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  41341. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  41342. + done
  41343. +"
  41344. +}
  41345. +# end: func_emit_wrapper_part1
  41346. - if test "$dlself" != no; then
  41347. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  41348. - fi
  41349. +# func_emit_wrapper_part2 [arg=no]
  41350. +#
  41351. +# Emit the second part of a libtool wrapper script on stdout.
  41352. +# For more information, see the description associated with
  41353. +# func_emit_wrapper(), below.
  41354. +func_emit_wrapper_part2 ()
  41355. +{
  41356. + func_emit_wrapper_part2_arg1=no
  41357. + if test -n "$1" ; then
  41358. + func_emit_wrapper_part2_arg1=$1
  41359. + fi
  41360. +
  41361. + $ECHO "\
  41362. +
  41363. + # Usually 'no', except on cygwin/mingw when embedded into
  41364. + # the cwrapper.
  41365. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  41366. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  41367. + # special case for '.'
  41368. + if test \"\$thisdir\" = \".\"; then
  41369. + thisdir=\`pwd\`
  41370. + fi
  41371. + # remove .libs from thisdir
  41372. + case \"\$thisdir\" in
  41373. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  41374. + $objdir ) thisdir=. ;;
  41375. + esac
  41376. + fi
  41377. - set dummy $rpath
  41378. - if test "$#" -gt 2; then
  41379. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  41380. + # Try to get the absolute directory name.
  41381. + absdir=\`cd \"\$thisdir\" && pwd\`
  41382. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  41383. +"
  41384. +
  41385. + if test "$fast_install" = yes; then
  41386. + $ECHO "\
  41387. + program=lt-'$outputname'$exeext
  41388. + progdir=\"\$thisdir/$objdir\"
  41389. +
  41390. + if test ! -f \"\$progdir/\$program\" ||
  41391. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  41392. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  41393. +
  41394. + file=\"\$\$-\$program\"
  41395. +
  41396. + if test ! -d \"\$progdir\"; then
  41397. + $MKDIR \"\$progdir\"
  41398. + else
  41399. + $RM \"\$progdir/\$file\"
  41400. + fi"
  41401. +
  41402. + $ECHO "\
  41403. +
  41404. + # relink executable if necessary
  41405. + if test -n \"\$relink_command\"; then
  41406. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  41407. + else
  41408. + $ECHO \"\$relink_command_output\" >&2
  41409. + $RM \"\$progdir/\$file\"
  41410. + exit 1
  41411. fi
  41412. - install_libdir="$2"
  41413. + fi
  41414. - oldlibs=
  41415. - if test -z "$rpath"; then
  41416. - if test "$build_libtool_libs" = yes; then
  41417. - # Building a libtool convenience library.
  41418. - # Some compilers have problems with a `.al' extension so
  41419. - # convenience libraries should have the same extension an
  41420. - # archive normally would.
  41421. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  41422. - build_libtool_libs=convenience
  41423. - build_old_libs=yes
  41424. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  41425. + { $RM \"\$progdir/\$program\";
  41426. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  41427. + $RM \"\$progdir/\$file\"
  41428. + fi"
  41429. + else
  41430. + $ECHO "\
  41431. + program='$outputname'
  41432. + progdir=\"\$thisdir/$objdir\"
  41433. +"
  41434. fi
  41435. - if test -n "$vinfo"; then
  41436. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  41437. - fi
  41438. + $ECHO "\
  41439. - if test -n "$release"; then
  41440. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  41441. - fi
  41442. - else
  41443. + if test -f \"\$progdir/\$program\"; then"
  41444. - # Parse the version information argument.
  41445. - save_ifs="$IFS"; IFS=':'
  41446. - set dummy $vinfo 0 0 0
  41447. - IFS="$save_ifs"
  41448. + # Export our shlibpath_var if we have one.
  41449. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  41450. + $ECHO "\
  41451. + # Add our own library path to $shlibpath_var
  41452. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  41453. - if test -n "$8"; then
  41454. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  41455. - $echo "$help" 1>&2
  41456. - exit $EXIT_FAILURE
  41457. - fi
  41458. + # Some systems cannot cope with colon-terminated $shlibpath_var
  41459. + # The second colon is a workaround for a bug in BeOS R4 sed
  41460. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  41461. - # convert absolute version numbers to libtool ages
  41462. - # this retains compatibility with .la files and attempts
  41463. - # to make the code below a bit more comprehensible
  41464. + export $shlibpath_var
  41465. +"
  41466. + fi
  41467. - case $vinfo_number in
  41468. - yes)
  41469. - number_major="$2"
  41470. - number_minor="$3"
  41471. - number_revision="$4"
  41472. - #
  41473. - # There are really only two kinds -- those that
  41474. - # use the current revision as the major version
  41475. - # and those that subtract age and use age as
  41476. - # a minor version. But, then there is irix
  41477. - # which has an extra 1 added just for fun
  41478. - #
  41479. - case $version_type in
  41480. - darwin|linux|osf|windows)
  41481. - current=`expr $number_major + $number_minor`
  41482. - age="$number_minor"
  41483. - revision="$number_revision"
  41484. - ;;
  41485. - freebsd-aout|freebsd-elf|sunos)
  41486. - current="$number_major"
  41487. - revision="$number_minor"
  41488. - age="0"
  41489. - ;;
  41490. - irix|nonstopux)
  41491. - current=`expr $number_major + $number_minor - 1`
  41492. - age="$number_minor"
  41493. - revision="$number_minor"
  41494. - ;;
  41495. - *)
  41496. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  41497. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  41498. - exit $EXIT_FAILURE
  41499. - ;;
  41500. - esac
  41501. - ;;
  41502. - no)
  41503. - current="$2"
  41504. - revision="$3"
  41505. - age="$4"
  41506. - ;;
  41507. - esac
  41508. + # fixup the dll searchpath if we need to.
  41509. + if test -n "$dllsearchpath"; then
  41510. + $ECHO "\
  41511. + # Add the dll search path components to the executable PATH
  41512. + PATH=$dllsearchpath:\$PATH
  41513. +"
  41514. + fi
  41515. - # Check that each of the things are valid numbers.
  41516. - case $current in
  41517. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  41518. - *)
  41519. - $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  41520. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  41521. - exit $EXIT_FAILURE
  41522. + $ECHO "\
  41523. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  41524. + # Run the actual program with our arguments.
  41525. +"
  41526. + case $host in
  41527. + # Backslashes separate directories on plain windows
  41528. + *-*-mingw | *-*-os2* | *-cegcc*)
  41529. + $ECHO "\
  41530. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  41531. +"
  41532. ;;
  41533. - esac
  41534. - case $revision in
  41535. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  41536. *)
  41537. - $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  41538. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  41539. - exit $EXIT_FAILURE
  41540. + $ECHO "\
  41541. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  41542. +"
  41543. ;;
  41544. esac
  41545. + $ECHO "\
  41546. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  41547. + exit 1
  41548. + fi
  41549. + else
  41550. + # The program doesn't exist.
  41551. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  41552. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  41553. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  41554. + exit 1
  41555. + fi
  41556. +fi\
  41557. +"
  41558. +}
  41559. +# end: func_emit_wrapper_part2
  41560. - case $age in
  41561. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  41562. - *)
  41563. - $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  41564. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  41565. - exit $EXIT_FAILURE
  41566. - ;;
  41567. - esac
  41568. - if test "$age" -gt "$current"; then
  41569. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  41570. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  41571. - exit $EXIT_FAILURE
  41572. +# func_emit_wrapper [arg=no]
  41573. +#
  41574. +# Emit a libtool wrapper script on stdout.
  41575. +# Don't directly open a file because we may want to
  41576. +# incorporate the script contents within a cygwin/mingw
  41577. +# wrapper executable. Must ONLY be called from within
  41578. +# func_mode_link because it depends on a number of variables
  41579. +# set therein.
  41580. +#
  41581. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  41582. +# variable will take. If 'yes', then the emitted script
  41583. +# will assume that the directory in which it is stored is
  41584. +# the $objdir directory. This is a cygwin/mingw-specific
  41585. +# behavior.
  41586. +func_emit_wrapper ()
  41587. +{
  41588. + func_emit_wrapper_arg1=no
  41589. + if test -n "$1" ; then
  41590. + func_emit_wrapper_arg1=$1
  41591. fi
  41592. - # Calculate the version variables.
  41593. - major=
  41594. - versuffix=
  41595. - verstring=
  41596. - case $version_type in
  41597. - none) ;;
  41598. -
  41599. - darwin)
  41600. - # Like Linux, but with the current version available in
  41601. - # verstring for coding it into the library header
  41602. - major=.`expr $current - $age`
  41603. - versuffix="$major.$age.$revision"
  41604. - # Darwin ld doesn't like 0 for these options...
  41605. - minor_current=`expr $current + 1`
  41606. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  41607. - ;;
  41608. -
  41609. - freebsd-aout)
  41610. - major=".$current"
  41611. - versuffix=".$current.$revision";
  41612. - ;;
  41613. + # split this up so that func_emit_cwrapperexe_src
  41614. + # can call each part independently.
  41615. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  41616. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  41617. +}
  41618. - freebsd-elf)
  41619. - major=".$current"
  41620. - versuffix=".$current";
  41621. - ;;
  41622. - irix | nonstopux)
  41623. - major=`expr $current - $age + 1`
  41624. +# func_to_host_path arg
  41625. +#
  41626. +# Convert paths to host format when used with build tools.
  41627. +# Intended for use with "native" mingw (where libtool itself
  41628. +# is running under the msys shell), or in the following cross-
  41629. +# build environments:
  41630. +# $build $host
  41631. +# mingw (msys) mingw [e.g. native]
  41632. +# cygwin mingw
  41633. +# *nix + wine mingw
  41634. +# where wine is equipped with the `winepath' executable.
  41635. +# In the native mingw case, the (msys) shell automatically
  41636. +# converts paths for any non-msys applications it launches,
  41637. +# but that facility isn't available from inside the cwrapper.
  41638. +# Similar accommodations are necessary for $host mingw and
  41639. +# $build cygwin. Calling this function does no harm for other
  41640. +# $host/$build combinations not listed above.
  41641. +#
  41642. +# ARG is the path (on $build) that should be converted to
  41643. +# the proper representation for $host. The result is stored
  41644. +# in $func_to_host_path_result.
  41645. +func_to_host_path ()
  41646. +{
  41647. + func_to_host_path_result="$1"
  41648. + if test -n "$1" ; then
  41649. + case $host in
  41650. + *mingw* )
  41651. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  41652. + case $build in
  41653. + *mingw* ) # actually, msys
  41654. + # awkward: cmd appends spaces to result
  41655. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  41656. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  41657. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  41658. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  41659. + $SED -e "$lt_sed_naive_backslashify"`
  41660. + ;;
  41661. + *cygwin* )
  41662. + func_to_host_path_tmp1=`cygpath -w "$1"`
  41663. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  41664. + $SED -e "$lt_sed_naive_backslashify"`
  41665. + ;;
  41666. + * )
  41667. + # Unfortunately, winepath does not exit with a non-zero
  41668. + # error code, so we are forced to check the contents of
  41669. + # stdout. On the other hand, if the command is not
  41670. + # found, the shell will set an exit code of 127 and print
  41671. + # *an error message* to stdout. So we must check for both
  41672. + # error code of zero AND non-empty stdout, which explains
  41673. + # the odd construction:
  41674. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  41675. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  41676. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  41677. + $SED -e "$lt_sed_naive_backslashify"`
  41678. + else
  41679. + # Allow warning below.
  41680. + func_to_host_path_result=""
  41681. + fi
  41682. + ;;
  41683. + esac
  41684. + if test -z "$func_to_host_path_result" ; then
  41685. + func_error "Could not determine host path corresponding to"
  41686. + func_error " '$1'"
  41687. + func_error "Continuing, but uninstalled executables may not work."
  41688. + # Fallback:
  41689. + func_to_host_path_result="$1"
  41690. + fi
  41691. + ;;
  41692. + esac
  41693. + fi
  41694. +}
  41695. +# end: func_to_host_path
  41696. - case $version_type in
  41697. - nonstopux) verstring_prefix=nonstopux ;;
  41698. - *) verstring_prefix=sgi ;;
  41699. - esac
  41700. - verstring="$verstring_prefix$major.$revision"
  41701. +# func_to_host_pathlist arg
  41702. +#
  41703. +# Convert pathlists to host format when used with build tools.
  41704. +# See func_to_host_path(), above. This function supports the
  41705. +# following $build/$host combinations (but does no harm for
  41706. +# combinations not listed here):
  41707. +# $build $host
  41708. +# mingw (msys) mingw [e.g. native]
  41709. +# cygwin mingw
  41710. +# *nix + wine mingw
  41711. +#
  41712. +# Path separators are also converted from $build format to
  41713. +# $host format. If ARG begins or ends with a path separator
  41714. +# character, it is preserved (but converted to $host format)
  41715. +# on output.
  41716. +#
  41717. +# ARG is a pathlist (on $build) that should be converted to
  41718. +# the proper representation on $host. The result is stored
  41719. +# in $func_to_host_pathlist_result.
  41720. +func_to_host_pathlist ()
  41721. +{
  41722. + func_to_host_pathlist_result="$1"
  41723. + if test -n "$1" ; then
  41724. + case $host in
  41725. + *mingw* )
  41726. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  41727. + # Remove leading and trailing path separator characters from
  41728. + # ARG. msys behavior is inconsistent here, cygpath turns them
  41729. + # into '.;' and ';.', and winepath ignores them completely.
  41730. + func_to_host_pathlist_tmp2="$1"
  41731. + # Once set for this call, this variable should not be
  41732. + # reassigned. It is used in tha fallback case.
  41733. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  41734. + $SED -e 's|^:*||' -e 's|:*$||'`
  41735. + case $build in
  41736. + *mingw* ) # Actually, msys.
  41737. + # Awkward: cmd appends spaces to result.
  41738. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  41739. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  41740. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  41741. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  41742. + $SED -e "$lt_sed_naive_backslashify"`
  41743. + ;;
  41744. + *cygwin* )
  41745. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  41746. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  41747. + $SED -e "$lt_sed_naive_backslashify"`
  41748. + ;;
  41749. + * )
  41750. + # unfortunately, winepath doesn't convert pathlists
  41751. + func_to_host_pathlist_result=""
  41752. + func_to_host_pathlist_oldIFS=$IFS
  41753. + IFS=:
  41754. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  41755. + IFS=$func_to_host_pathlist_oldIFS
  41756. + if test -n "$func_to_host_pathlist_f" ; then
  41757. + func_to_host_path "$func_to_host_pathlist_f"
  41758. + if test -n "$func_to_host_path_result" ; then
  41759. + if test -z "$func_to_host_pathlist_result" ; then
  41760. + func_to_host_pathlist_result="$func_to_host_path_result"
  41761. + else
  41762. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  41763. + fi
  41764. + fi
  41765. + fi
  41766. + IFS=:
  41767. + done
  41768. + IFS=$func_to_host_pathlist_oldIFS
  41769. + ;;
  41770. + esac
  41771. + if test -z "$func_to_host_pathlist_result" ; then
  41772. + func_error "Could not determine the host path(s) corresponding to"
  41773. + func_error " '$1'"
  41774. + func_error "Continuing, but uninstalled executables may not work."
  41775. + # Fallback. This may break if $1 contains DOS-style drive
  41776. + # specifications. The fix is not to complicate the expression
  41777. + # below, but for the user to provide a working wine installation
  41778. + # with winepath so that path translation in the cross-to-mingw
  41779. + # case works properly.
  41780. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  41781. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  41782. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  41783. + fi
  41784. + # Now, add the leading and trailing path separators back
  41785. + case "$1" in
  41786. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  41787. + ;;
  41788. + esac
  41789. + case "$1" in
  41790. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  41791. + ;;
  41792. + esac
  41793. + ;;
  41794. + esac
  41795. + fi
  41796. +}
  41797. +# end: func_to_host_pathlist
  41798. - # Add in all the interfaces that we are compatible with.
  41799. - loop=$revision
  41800. - while test "$loop" -ne 0; do
  41801. - iface=`expr $revision - $loop`
  41802. - loop=`expr $loop - 1`
  41803. - verstring="$verstring_prefix$major.$iface:$verstring"
  41804. - done
  41805. +# func_emit_cwrapperexe_src
  41806. +# emit the source code for a wrapper executable on stdout
  41807. +# Must ONLY be called from within func_mode_link because
  41808. +# it depends on a number of variable set therein.
  41809. +func_emit_cwrapperexe_src ()
  41810. +{
  41811. + cat <<EOF
  41812. - # Before this point, $major must not contain `.'.
  41813. - major=.$major
  41814. - versuffix="$major.$revision"
  41815. - ;;
  41816. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  41817. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  41818. - linux)
  41819. - major=.`expr $current - $age`
  41820. - versuffix="$major.$age.$revision"
  41821. - ;;
  41822. + The $output program cannot be directly executed until all the libtool
  41823. + libraries that it depends on are installed.
  41824. - osf)
  41825. - major=.`expr $current - $age`
  41826. - versuffix=".$current.$age.$revision"
  41827. - verstring="$current.$age.$revision"
  41828. + This wrapper executable should never be moved out of the build directory.
  41829. + If it is, it will not operate correctly.
  41830. - # Add in all the interfaces that we are compatible with.
  41831. - loop=$age
  41832. - while test "$loop" -ne 0; do
  41833. - iface=`expr $current - $loop`
  41834. - loop=`expr $loop - 1`
  41835. - verstring="$verstring:${iface}.0"
  41836. - done
  41837. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  41838. + but could eventually absorb all of the scripts functionality and
  41839. + exec $objdir/$outputname directly.
  41840. +*/
  41841. +EOF
  41842. + cat <<"EOF"
  41843. +#include <stdio.h>
  41844. +#include <stdlib.h>
  41845. +#ifdef _MSC_VER
  41846. +# include <direct.h>
  41847. +# include <process.h>
  41848. +# include <io.h>
  41849. +# define setmode _setmode
  41850. +#else
  41851. +# include <unistd.h>
  41852. +# include <stdint.h>
  41853. +# ifdef __CYGWIN__
  41854. +# include <io.h>
  41855. +# define HAVE_SETENV
  41856. +# ifdef __STRICT_ANSI__
  41857. +char *realpath (const char *, char *);
  41858. +int putenv (char *);
  41859. +int setenv (const char *, const char *, int);
  41860. +# endif
  41861. +# endif
  41862. +#endif
  41863. +#include <malloc.h>
  41864. +#include <stdarg.h>
  41865. +#include <assert.h>
  41866. +#include <string.h>
  41867. +#include <ctype.h>
  41868. +#include <errno.h>
  41869. +#include <fcntl.h>
  41870. +#include <sys/stat.h>
  41871. - # Make executables depend on our current version.
  41872. - verstring="$verstring:${current}.0"
  41873. - ;;
  41874. +#if defined(PATH_MAX)
  41875. +# define LT_PATHMAX PATH_MAX
  41876. +#elif defined(MAXPATHLEN)
  41877. +# define LT_PATHMAX MAXPATHLEN
  41878. +#else
  41879. +# define LT_PATHMAX 1024
  41880. +#endif
  41881. - sunos)
  41882. - major=".$current"
  41883. - versuffix=".$current.$revision"
  41884. - ;;
  41885. +#ifndef S_IXOTH
  41886. +# define S_IXOTH 0
  41887. +#endif
  41888. +#ifndef S_IXGRP
  41889. +# define S_IXGRP 0
  41890. +#endif
  41891. - windows)
  41892. - # Use '-' rather than '.', since we only want one
  41893. - # extension on DOS 8.3 filesystems.
  41894. - major=`expr $current - $age`
  41895. - versuffix="-$major"
  41896. - ;;
  41897. +#ifdef _MSC_VER
  41898. +# define S_IXUSR _S_IEXEC
  41899. +# define stat _stat
  41900. +# ifndef _INTPTR_T_DEFINED
  41901. +# define intptr_t int
  41902. +# endif
  41903. +#endif
  41904. - *)
  41905. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  41906. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  41907. - exit $EXIT_FAILURE
  41908. - ;;
  41909. - esac
  41910. +#ifndef DIR_SEPARATOR
  41911. +# define DIR_SEPARATOR '/'
  41912. +# define PATH_SEPARATOR ':'
  41913. +#endif
  41914. - # Clear the version info if we defaulted, and they specified a release.
  41915. - if test -z "$vinfo" && test -n "$release"; then
  41916. - major=
  41917. - case $version_type in
  41918. - darwin)
  41919. - # we can't check for "0.0" in archive_cmds due to quoting
  41920. - # problems, so we reset it completely
  41921. - verstring=
  41922. - ;;
  41923. - *)
  41924. - verstring="0.0"
  41925. - ;;
  41926. - esac
  41927. - if test "$need_version" = no; then
  41928. - versuffix=
  41929. - else
  41930. - versuffix=".0.0"
  41931. - fi
  41932. - fi
  41933. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  41934. + defined (__OS2__)
  41935. +# define HAVE_DOS_BASED_FILE_SYSTEM
  41936. +# define FOPEN_WB "wb"
  41937. +# ifndef DIR_SEPARATOR_2
  41938. +# define DIR_SEPARATOR_2 '\\'
  41939. +# endif
  41940. +# ifndef PATH_SEPARATOR_2
  41941. +# define PATH_SEPARATOR_2 ';'
  41942. +# endif
  41943. +#endif
  41944. - # Remove version info from name if versioning should be avoided
  41945. - if test "$avoid_version" = yes && test "$need_version" = no; then
  41946. - major=
  41947. - versuffix=
  41948. - verstring=""
  41949. - fi
  41950. +#ifndef DIR_SEPARATOR_2
  41951. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  41952. +#else /* DIR_SEPARATOR_2 */
  41953. +# define IS_DIR_SEPARATOR(ch) \
  41954. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  41955. +#endif /* DIR_SEPARATOR_2 */
  41956. - # Check to see if the archive will have undefined symbols.
  41957. - if test "$allow_undefined" = yes; then
  41958. - if test "$allow_undefined_flag" = unsupported; then
  41959. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  41960. - build_libtool_libs=no
  41961. - build_old_libs=yes
  41962. - fi
  41963. - else
  41964. - # Don't allow undefined symbols.
  41965. - allow_undefined_flag="$no_undefined_flag"
  41966. - fi
  41967. - fi
  41968. +#ifndef PATH_SEPARATOR_2
  41969. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  41970. +#else /* PATH_SEPARATOR_2 */
  41971. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  41972. +#endif /* PATH_SEPARATOR_2 */
  41973. - if test "$mode" != relink; then
  41974. - # Remove our outputs, but don't remove object files since they
  41975. - # may have been created when compiling PIC objects.
  41976. - removelist=
  41977. - tempremovelist=`$echo "$output_objdir/*"`
  41978. - for p in $tempremovelist; do
  41979. - case $p in
  41980. - *.$objext)
  41981. - ;;
  41982. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  41983. - if test "X$precious_files_regex" != "X"; then
  41984. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  41985. - then
  41986. - continue
  41987. - fi
  41988. - fi
  41989. - removelist="$removelist $p"
  41990. - ;;
  41991. - *) ;;
  41992. - esac
  41993. - done
  41994. - if test -n "$removelist"; then
  41995. - $show "${rm}r $removelist"
  41996. - $run ${rm}r $removelist
  41997. - fi
  41998. - fi
  41999. +#ifdef __CYGWIN__
  42000. +# define FOPEN_WB "wb"
  42001. +#endif
  42002. - # Now set the variables for building old libraries.
  42003. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  42004. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  42005. +#ifndef FOPEN_WB
  42006. +# define FOPEN_WB "w"
  42007. +#endif
  42008. +#ifndef _O_BINARY
  42009. +# define _O_BINARY 0
  42010. +#endif
  42011. - # Transform .lo files to .o files.
  42012. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  42013. - fi
  42014. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  42015. +#define XFREE(stale) do { \
  42016. + if (stale) { free ((void *) stale); stale = 0; } \
  42017. +} while (0)
  42018. - # Eliminate all temporary directories.
  42019. - for path in $notinst_path; do
  42020. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  42021. - deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  42022. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  42023. - done
  42024. +#undef LTWRAPPER_DEBUGPRINTF
  42025. +#if defined DEBUGWRAPPER
  42026. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  42027. +static void
  42028. +ltwrapper_debugprintf (const char *fmt, ...)
  42029. +{
  42030. + va_list args;
  42031. + va_start (args, fmt);
  42032. + (void) vfprintf (stderr, fmt, args);
  42033. + va_end (args);
  42034. +}
  42035. +#else
  42036. +# define LTWRAPPER_DEBUGPRINTF(args)
  42037. +#endif
  42038. - if test -n "$xrpath"; then
  42039. - # If the user specified any rpath flags, then add them.
  42040. - temp_xrpath=
  42041. - for libdir in $xrpath; do
  42042. - temp_xrpath="$temp_xrpath -R$libdir"
  42043. - case "$finalize_rpath " in
  42044. - *" $libdir "*) ;;
  42045. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  42046. - esac
  42047. - done
  42048. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  42049. - dependency_libs="$temp_xrpath $dependency_libs"
  42050. - fi
  42051. - fi
  42052. +const char *program_name = NULL;
  42053. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  42054. - old_dlfiles="$dlfiles"
  42055. - dlfiles=
  42056. - for lib in $old_dlfiles; do
  42057. - case " $dlprefiles $dlfiles " in
  42058. - *" $lib "*) ;;
  42059. - *) dlfiles="$dlfiles $lib" ;;
  42060. - esac
  42061. - done
  42062. +void *xmalloc (size_t num);
  42063. +char *xstrdup (const char *string);
  42064. +const char *base_name (const char *name);
  42065. +char *find_executable (const char *wrapper);
  42066. +char *chase_symlinks (const char *pathspec);
  42067. +int make_executable (const char *path);
  42068. +int check_executable (const char *path);
  42069. +char *strendzap (char *str, const char *pat);
  42070. +void lt_fatal (const char *message, ...);
  42071. +void lt_setenv (const char *name, const char *value);
  42072. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  42073. +void lt_opt_process_env_set (const char *arg);
  42074. +void lt_opt_process_env_prepend (const char *arg);
  42075. +void lt_opt_process_env_append (const char *arg);
  42076. +int lt_split_name_value (const char *arg, char** name, char** value);
  42077. +void lt_update_exe_path (const char *name, const char *value);
  42078. +void lt_update_lib_path (const char *name, const char *value);
  42079. - # Make sure dlprefiles contains only unique files
  42080. - old_dlprefiles="$dlprefiles"
  42081. - dlprefiles=
  42082. - for lib in $old_dlprefiles; do
  42083. - case "$dlprefiles " in
  42084. - *" $lib "*) ;;
  42085. - *) dlprefiles="$dlprefiles $lib" ;;
  42086. - esac
  42087. - done
  42088. +static const char *script_text_part1 =
  42089. +EOF
  42090. - if test "$build_libtool_libs" = yes; then
  42091. - if test -n "$rpath"; then
  42092. - case $host in
  42093. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  42094. - # these systems don't actually have a c library (as such)!
  42095. - ;;
  42096. - *-*-rhapsody* | *-*-darwin1.[012])
  42097. - # Rhapsody C library is in the System framework
  42098. - deplibs="$deplibs -framework System"
  42099. - ;;
  42100. - *-*-netbsd*)
  42101. - # Don't link with libc until the a.out ld.so is fixed.
  42102. - ;;
  42103. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  42104. - # Do not include libc due to us having libc/libc_r.
  42105. - ;;
  42106. - *-*-sco3.2v5* | *-*-sco5v6*)
  42107. - # Causes problems with __ctype
  42108. - ;;
  42109. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  42110. - # Compiler inserts libc in the correct place for threads to work
  42111. - ;;
  42112. - *)
  42113. - # Add libc to deplibs on all other systems if necessary.
  42114. - if test "$build_libtool_need_lc" = "yes"; then
  42115. - deplibs="$deplibs -lc"
  42116. - fi
  42117. - ;;
  42118. - esac
  42119. - fi
  42120. + func_emit_wrapper_part1 yes |
  42121. + $SED -e 's/\([\\"]\)/\\\1/g' \
  42122. + -e 's/^/ "/' -e 's/$/\\n"/'
  42123. + echo ";"
  42124. + cat <<EOF
  42125. - # Transform deplibs into only deplibs that can be linked in shared.
  42126. - name_save=$name
  42127. - libname_save=$libname
  42128. - release_save=$release
  42129. - versuffix_save=$versuffix
  42130. - major_save=$major
  42131. - # I'm not sure if I'm treating the release correctly. I think
  42132. - # release should show up in the -l (ie -lgmp5) so we don't want to
  42133. - # add it in twice. Is that correct?
  42134. - release=""
  42135. - versuffix=""
  42136. - major=""
  42137. - newdeplibs=
  42138. - droppeddeps=no
  42139. - case $deplibs_check_method in
  42140. - pass_all)
  42141. - # Don't check for shared/static. Everything works.
  42142. - # This might be a little naive. We might want to check
  42143. - # whether the library exists or not. But this is on
  42144. - # osf3 & osf4 and I'm not really sure... Just
  42145. - # implementing what was already the behavior.
  42146. - newdeplibs=$deplibs
  42147. - ;;
  42148. - test_compile)
  42149. - # This code stresses the "libraries are programs" paradigm to its
  42150. - # limits. Maybe even breaks it. We compile a program, linking it
  42151. - # against the deplibs as a proxy for the library. Then we can check
  42152. - # whether they linked in statically or dynamically with ldd.
  42153. - $rm conftest.c
  42154. - cat > conftest.c <<EOF
  42155. - int main() { return 0; }
  42156. +static const char *script_text_part2 =
  42157. +EOF
  42158. + func_emit_wrapper_part2 yes |
  42159. + $SED -e 's/\([\\"]\)/\\\1/g' \
  42160. + -e 's/^/ "/' -e 's/$/\\n"/'
  42161. + echo ";"
  42162. +
  42163. + cat <<EOF
  42164. +const char * MAGIC_EXE = "$magic_exe";
  42165. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  42166. +EOF
  42167. +
  42168. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  42169. + func_to_host_pathlist "$temp_rpath"
  42170. + cat <<EOF
  42171. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  42172. EOF
  42173. - $rm conftest
  42174. - $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  42175. - if test "$?" -eq 0 ; then
  42176. - ldd_output=`ldd conftest`
  42177. - for i in $deplibs; do
  42178. - name=`expr $i : '-l\(.*\)'`
  42179. - # If $name is empty we are operating on a -L argument.
  42180. - if test "$name" != "" && test "$name" -ne "0"; then
  42181. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  42182. - case " $predeps $postdeps " in
  42183. - *" $i "*)
  42184. - newdeplibs="$newdeplibs $i"
  42185. - i=""
  42186. - ;;
  42187. - esac
  42188. - fi
  42189. - if test -n "$i" ; then
  42190. - libname=`eval \\$echo \"$libname_spec\"`
  42191. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  42192. - set dummy $deplib_matches
  42193. - deplib_match=$2
  42194. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  42195. - newdeplibs="$newdeplibs $i"
  42196. - else
  42197. - droppeddeps=yes
  42198. - $echo
  42199. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  42200. - $echo "*** I have the capability to make that library automatically link in when"
  42201. - $echo "*** you link to this library. But I can only do this if you have a"
  42202. - $echo "*** shared version of the library, which I believe you do not have"
  42203. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  42204. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  42205. - fi
  42206. - fi
  42207. - else
  42208. - newdeplibs="$newdeplibs $i"
  42209. - fi
  42210. - done
  42211. - else
  42212. - # Error occurred in the first compile. Let's try to salvage
  42213. - # the situation: Compile a separate program for each library.
  42214. - for i in $deplibs; do
  42215. - name=`expr $i : '-l\(.*\)'`
  42216. - # If $name is empty we are operating on a -L argument.
  42217. - if test "$name" != "" && test "$name" != "0"; then
  42218. - $rm conftest
  42219. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  42220. - # Did it work?
  42221. - if test "$?" -eq 0 ; then
  42222. - ldd_output=`ldd conftest`
  42223. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  42224. - case " $predeps $postdeps " in
  42225. - *" $i "*)
  42226. - newdeplibs="$newdeplibs $i"
  42227. - i=""
  42228. - ;;
  42229. - esac
  42230. - fi
  42231. - if test -n "$i" ; then
  42232. - libname=`eval \\$echo \"$libname_spec\"`
  42233. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  42234. - set dummy $deplib_matches
  42235. - deplib_match=$2
  42236. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  42237. - newdeplibs="$newdeplibs $i"
  42238. - else
  42239. - droppeddeps=yes
  42240. - $echo
  42241. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  42242. - $echo "*** I have the capability to make that library automatically link in when"
  42243. - $echo "*** you link to this library. But I can only do this if you have a"
  42244. - $echo "*** shared version of the library, which you do not appear to have"
  42245. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  42246. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  42247. - fi
  42248. - fi
  42249. - else
  42250. - droppeddeps=yes
  42251. - $echo
  42252. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  42253. - $echo "*** make it link in! You will probably need to install it or some"
  42254. - $echo "*** library that it depends on before this library will be fully"
  42255. - $echo "*** functional. Installing it before continuing would be even better."
  42256. - fi
  42257. - else
  42258. - newdeplibs="$newdeplibs $i"
  42259. - fi
  42260. - done
  42261. - fi
  42262. - ;;
  42263. - file_magic*)
  42264. - set dummy $deplibs_check_method
  42265. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  42266. - for a_deplib in $deplibs; do
  42267. - name=`expr $a_deplib : '-l\(.*\)'`
  42268. - # If $name is empty we are operating on a -L argument.
  42269. - if test "$name" != "" && test "$name" != "0"; then
  42270. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  42271. - case " $predeps $postdeps " in
  42272. - *" $a_deplib "*)
  42273. - newdeplibs="$newdeplibs $a_deplib"
  42274. - a_deplib=""
  42275. - ;;
  42276. - esac
  42277. - fi
  42278. - if test -n "$a_deplib" ; then
  42279. - libname=`eval \\$echo \"$libname_spec\"`
  42280. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  42281. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  42282. - for potent_lib in $potential_libs; do
  42283. - # Follow soft links.
  42284. - if ls -lLd "$potent_lib" 2>/dev/null \
  42285. - | grep " -> " >/dev/null; then
  42286. - continue
  42287. - fi
  42288. - # The statement above tries to avoid entering an
  42289. - # endless loop below, in case of cyclic links.
  42290. - # We might still enter an endless loop, since a link
  42291. - # loop can be closed while we follow links,
  42292. - # but so what?
  42293. - potlib="$potent_lib"
  42294. - while test -h "$potlib" 2>/dev/null; do
  42295. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  42296. - case $potliblink in
  42297. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  42298. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  42299. - esac
  42300. - done
  42301. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  42302. - | ${SED} 10q \
  42303. - | $EGREP "$file_magic_regex" > /dev/null; then
  42304. - newdeplibs="$newdeplibs $a_deplib"
  42305. - a_deplib=""
  42306. - break 2
  42307. - fi
  42308. - done
  42309. - done
  42310. - fi
  42311. - if test -n "$a_deplib" ; then
  42312. - droppeddeps=yes
  42313. - $echo
  42314. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  42315. - $echo "*** I have the capability to make that library automatically link in when"
  42316. - $echo "*** you link to this library. But I can only do this if you have a"
  42317. - $echo "*** shared version of the library, which you do not appear to have"
  42318. - $echo "*** because I did check the linker path looking for a file starting"
  42319. - if test -z "$potlib" ; then
  42320. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  42321. - else
  42322. - $echo "*** with $libname and none of the candidates passed a file format test"
  42323. - $echo "*** using a file magic. Last file checked: $potlib"
  42324. - fi
  42325. - fi
  42326. else
  42327. - # Add a -L argument.
  42328. - newdeplibs="$newdeplibs $a_deplib"
  42329. + cat <<"EOF"
  42330. +const char * LIB_PATH_VALUE = "";
  42331. +EOF
  42332. fi
  42333. - done # Gone through all deplibs.
  42334. - ;;
  42335. - match_pattern*)
  42336. - set dummy $deplibs_check_method
  42337. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  42338. - for a_deplib in $deplibs; do
  42339. - name=`expr $a_deplib : '-l\(.*\)'`
  42340. - # If $name is empty we are operating on a -L argument.
  42341. - if test -n "$name" && test "$name" != "0"; then
  42342. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  42343. - case " $predeps $postdeps " in
  42344. - *" $a_deplib "*)
  42345. - newdeplibs="$newdeplibs $a_deplib"
  42346. - a_deplib=""
  42347. - ;;
  42348. - esac
  42349. - fi
  42350. - if test -n "$a_deplib" ; then
  42351. - libname=`eval \\$echo \"$libname_spec\"`
  42352. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  42353. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  42354. - for potent_lib in $potential_libs; do
  42355. - potlib="$potent_lib" # see symlink-check above in file_magic test
  42356. - if eval $echo \"$potent_lib\" 2>/dev/null \
  42357. - | ${SED} 10q \
  42358. - | $EGREP "$match_pattern_regex" > /dev/null; then
  42359. - newdeplibs="$newdeplibs $a_deplib"
  42360. - a_deplib=""
  42361. - break 2
  42362. - fi
  42363. - done
  42364. - done
  42365. - fi
  42366. - if test -n "$a_deplib" ; then
  42367. - droppeddeps=yes
  42368. - $echo
  42369. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  42370. - $echo "*** I have the capability to make that library automatically link in when"
  42371. - $echo "*** you link to this library. But I can only do this if you have a"
  42372. - $echo "*** shared version of the library, which you do not appear to have"
  42373. - $echo "*** because I did check the linker path looking for a file starting"
  42374. - if test -z "$potlib" ; then
  42375. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  42376. - else
  42377. - $echo "*** with $libname and none of the candidates passed a file format test"
  42378. - $echo "*** using a regex pattern. Last file checked: $potlib"
  42379. - fi
  42380. - fi
  42381. +
  42382. + if test -n "$dllsearchpath"; then
  42383. + func_to_host_pathlist "$dllsearchpath:"
  42384. + cat <<EOF
  42385. +const char * EXE_PATH_VARNAME = "PATH";
  42386. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  42387. +EOF
  42388. else
  42389. - # Add a -L argument.
  42390. - newdeplibs="$newdeplibs $a_deplib"
  42391. + cat <<"EOF"
  42392. +const char * EXE_PATH_VARNAME = "";
  42393. +const char * EXE_PATH_VALUE = "";
  42394. +EOF
  42395. fi
  42396. - done # Gone through all deplibs.
  42397. - ;;
  42398. - none | unknown | *)
  42399. - newdeplibs=""
  42400. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  42401. - -e 's/ -[LR][^ ]*//g'`
  42402. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  42403. - for i in $predeps $postdeps ; do
  42404. - # can't use Xsed below, because $i might contain '/'
  42405. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  42406. - done
  42407. - fi
  42408. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  42409. - | grep . >/dev/null; then
  42410. - $echo
  42411. - if test "X$deplibs_check_method" = "Xnone"; then
  42412. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  42413. +
  42414. + if test "$fast_install" = yes; then
  42415. + cat <<EOF
  42416. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  42417. +EOF
  42418. else
  42419. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  42420. + cat <<EOF
  42421. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  42422. +EOF
  42423. fi
  42424. - $echo "*** All declared inter-library dependencies are being dropped."
  42425. - droppeddeps=yes
  42426. - fi
  42427. - ;;
  42428. - esac
  42429. - versuffix=$versuffix_save
  42430. - major=$major_save
  42431. - release=$release_save
  42432. - libname=$libname_save
  42433. - name=$name_save
  42434. - case $host in
  42435. - *-*-rhapsody* | *-*-darwin1.[012])
  42436. - # On Rhapsody replace the C library is the System framework
  42437. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  42438. - ;;
  42439. - esac
  42440. - if test "$droppeddeps" = yes; then
  42441. - if test "$module" = yes; then
  42442. - $echo
  42443. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  42444. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  42445. - $echo "*** a static module, that should work as long as the dlopening"
  42446. - $echo "*** application is linked with the -dlopen flag."
  42447. - if test -z "$global_symbol_pipe"; then
  42448. - $echo
  42449. - $echo "*** However, this would only work if libtool was able to extract symbol"
  42450. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  42451. - $echo "*** not find such a program. So, this module is probably useless."
  42452. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  42453. - fi
  42454. - if test "$build_old_libs" = no; then
  42455. - oldlibs="$output_objdir/$libname.$libext"
  42456. - build_libtool_libs=module
  42457. - build_old_libs=yes
  42458. - else
  42459. - build_libtool_libs=no
  42460. - fi
  42461. - else
  42462. - $echo "*** The inter-library dependencies that have been dropped here will be"
  42463. - $echo "*** automatically added whenever a program is linked with this library"
  42464. - $echo "*** or is declared to -dlopen it."
  42465. + cat <<"EOF"
  42466. - if test "$allow_undefined" = no; then
  42467. - $echo
  42468. - $echo "*** Since this library must not contain undefined symbols,"
  42469. - $echo "*** because either the platform does not support them or"
  42470. - $echo "*** it was explicitly requested with -no-undefined,"
  42471. - $echo "*** libtool will only create a static version of it."
  42472. - if test "$build_old_libs" = no; then
  42473. - oldlibs="$output_objdir/$libname.$libext"
  42474. - build_libtool_libs=module
  42475. - build_old_libs=yes
  42476. - else
  42477. - build_libtool_libs=no
  42478. - fi
  42479. - fi
  42480. - fi
  42481. - fi
  42482. - # Done checking deplibs!
  42483. - deplibs=$newdeplibs
  42484. - fi
  42485. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  42486. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  42487. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  42488. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  42489. - # move library search paths that coincide with paths to not yet
  42490. - # installed libraries to the beginning of the library search list
  42491. - new_libs=
  42492. - for path in $notinst_path; do
  42493. - case " $new_libs " in
  42494. - *" -L$path/$objdir "*) ;;
  42495. - *)
  42496. - case " $deplibs " in
  42497. - *" -L$path/$objdir "*)
  42498. - new_libs="$new_libs -L$path/$objdir" ;;
  42499. - esac
  42500. - ;;
  42501. - esac
  42502. - done
  42503. - for deplib in $deplibs; do
  42504. - case $deplib in
  42505. - -L*)
  42506. - case " $new_libs " in
  42507. - *" $deplib "*) ;;
  42508. - *) new_libs="$new_libs $deplib" ;;
  42509. - esac
  42510. - ;;
  42511. - *) new_libs="$new_libs $deplib" ;;
  42512. - esac
  42513. - done
  42514. - deplibs="$new_libs"
  42515. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  42516. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  42517. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  42518. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  42519. - # All the library-specific variables (install_libdir is set above).
  42520. - library_names=
  42521. - old_library=
  42522. - dlname=
  42523. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  42524. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  42525. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  42526. - # Test again, we may have decided not to build it any more
  42527. - if test "$build_libtool_libs" = yes; then
  42528. - if test "$hardcode_into_libs" = yes; then
  42529. - # Hardcode the library paths
  42530. - hardcode_libdirs=
  42531. - dep_rpath=
  42532. - rpath="$finalize_rpath"
  42533. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  42534. - for libdir in $rpath; do
  42535. - if test -n "$hardcode_libdir_flag_spec"; then
  42536. - if test -n "$hardcode_libdir_separator"; then
  42537. - if test -z "$hardcode_libdirs"; then
  42538. - hardcode_libdirs="$libdir"
  42539. - else
  42540. - # Just accumulate the unique libdirs.
  42541. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  42542. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  42543. - ;;
  42544. - *)
  42545. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  42546. - ;;
  42547. - esac
  42548. - fi
  42549. - else
  42550. - eval flag=\"$hardcode_libdir_flag_spec\"
  42551. - dep_rpath="$dep_rpath $flag"
  42552. - fi
  42553. - elif test -n "$runpath_var"; then
  42554. - case "$perm_rpath " in
  42555. - *" $libdir "*) ;;
  42556. - *) perm_rpath="$perm_rpath $libdir" ;;
  42557. - esac
  42558. - fi
  42559. - done
  42560. - # Substitute the hardcoded libdirs into the rpath.
  42561. - if test -n "$hardcode_libdir_separator" &&
  42562. - test -n "$hardcode_libdirs"; then
  42563. - libdir="$hardcode_libdirs"
  42564. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  42565. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  42566. - else
  42567. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  42568. - fi
  42569. - fi
  42570. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  42571. - # We should set the runpath_var.
  42572. - rpath=
  42573. - for dir in $perm_rpath; do
  42574. - rpath="$rpath$dir:"
  42575. - done
  42576. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  42577. - fi
  42578. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  42579. - fi
  42580. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  42581. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  42582. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  42583. - shlibpath="$finalize_shlibpath"
  42584. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  42585. - if test -n "$shlibpath"; then
  42586. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  42587. - fi
  42588. +int
  42589. +main (int argc, char *argv[])
  42590. +{
  42591. + char **newargz;
  42592. + int newargc;
  42593. + char *tmp_pathspec;
  42594. + char *actual_cwrapper_path;
  42595. + char *actual_cwrapper_name;
  42596. + char *target_name;
  42597. + char *lt_argv_zero;
  42598. + intptr_t rval = 127;
  42599. - # Get the real and link names of the library.
  42600. - eval shared_ext=\"$shrext_cmds\"
  42601. - eval library_names=\"$library_names_spec\"
  42602. - set dummy $library_names
  42603. - realname="$2"
  42604. - shift; shift
  42605. + int i;
  42606. - if test -n "$soname_spec"; then
  42607. - eval soname=\"$soname_spec\"
  42608. - else
  42609. - soname="$realname"
  42610. - fi
  42611. - if test -z "$dlname"; then
  42612. - dlname=$soname
  42613. - fi
  42614. + program_name = (char *) xstrdup (base_name (argv[0]));
  42615. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  42616. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  42617. - lib="$output_objdir/$realname"
  42618. - linknames=
  42619. - for link
  42620. - do
  42621. - linknames="$linknames $link"
  42622. - done
  42623. + /* very simple arg parsing; don't want to rely on getopt */
  42624. + for (i = 1; i < argc; i++)
  42625. + {
  42626. + if (strcmp (argv[i], dumpscript_opt) == 0)
  42627. + {
  42628. +EOF
  42629. + case "$host" in
  42630. + *mingw* | *cygwin* )
  42631. + # make stdout use "unix" line endings
  42632. + echo " setmode(1,_O_BINARY);"
  42633. + ;;
  42634. + esac
  42635. - # Use standard objects if they are pic
  42636. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  42637. + cat <<"EOF"
  42638. + printf ("%s", script_text_part1);
  42639. + printf ("%s", script_text_part2);
  42640. + return 0;
  42641. + }
  42642. + }
  42643. - # Prepare the list of exported symbols
  42644. - if test -z "$export_symbols"; then
  42645. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  42646. - $show "generating symbol list for \`$libname.la'"
  42647. - export_symbols="$output_objdir/$libname.exp"
  42648. - $run $rm $export_symbols
  42649. - cmds=$export_symbols_cmds
  42650. - save_ifs="$IFS"; IFS='~'
  42651. - for cmd in $cmds; do
  42652. - IFS="$save_ifs"
  42653. - eval cmd=\"$cmd\"
  42654. - if len=`expr "X$cmd" : ".*"` &&
  42655. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  42656. - $show "$cmd"
  42657. - $run eval "$cmd" || exit $?
  42658. - skipped_export=false
  42659. - else
  42660. - # The command line is too long to execute in one step.
  42661. - $show "using reloadable object file for export list..."
  42662. - skipped_export=:
  42663. - # Break out early, otherwise skipped_export may be
  42664. - # set to false by a later but shorter cmd.
  42665. - break
  42666. - fi
  42667. - done
  42668. - IFS="$save_ifs"
  42669. - if test -n "$export_symbols_regex"; then
  42670. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  42671. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  42672. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  42673. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  42674. - fi
  42675. - fi
  42676. - fi
  42677. + newargz = XMALLOC (char *, argc + 1);
  42678. + tmp_pathspec = find_executable (argv[0]);
  42679. + if (tmp_pathspec == NULL)
  42680. + lt_fatal ("Couldn't find %s", argv[0]);
  42681. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  42682. + tmp_pathspec));
  42683. +
  42684. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  42685. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  42686. + actual_cwrapper_path));
  42687. + XFREE (tmp_pathspec);
  42688. +
  42689. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  42690. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  42691. +
  42692. + /* wrapper name transforms */
  42693. + strendzap (actual_cwrapper_name, ".exe");
  42694. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  42695. + XFREE (actual_cwrapper_name);
  42696. + actual_cwrapper_name = tmp_pathspec;
  42697. + tmp_pathspec = 0;
  42698. +
  42699. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  42700. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  42701. + strendzap (target_name, ".exe");
  42702. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  42703. + XFREE (target_name);
  42704. + target_name = tmp_pathspec;
  42705. + tmp_pathspec = 0;
  42706. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  42707. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  42708. - fi
  42709. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  42710. + target_name));
  42711. +EOF
  42712. - tmp_deplibs=
  42713. - for test_deplib in $deplibs; do
  42714. - case " $convenience " in
  42715. - *" $test_deplib "*) ;;
  42716. - *)
  42717. - tmp_deplibs="$tmp_deplibs $test_deplib"
  42718. - ;;
  42719. - esac
  42720. - done
  42721. - deplibs="$tmp_deplibs"
  42722. + cat <<EOF
  42723. + newargz[0] =
  42724. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  42725. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  42726. + strcpy (newargz[0], actual_cwrapper_path);
  42727. + strcat (newargz[0], "$objdir");
  42728. + strcat (newargz[0], "/");
  42729. +EOF
  42730. - if test -n "$convenience"; then
  42731. - if test -n "$whole_archive_flag_spec"; then
  42732. - save_libobjs=$libobjs
  42733. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  42734. - else
  42735. - gentop="$output_objdir/${outputname}x"
  42736. - generated="$generated $gentop"
  42737. + cat <<"EOF"
  42738. + /* stop here, and copy so we don't have to do this twice */
  42739. + tmp_pathspec = xstrdup (newargz[0]);
  42740. +
  42741. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  42742. + strcat (newargz[0], actual_cwrapper_name);
  42743. +
  42744. + /* DO want the lt- prefix here if it exists, so use target_name */
  42745. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  42746. + XFREE (tmp_pathspec);
  42747. + tmp_pathspec = NULL;
  42748. +EOF
  42749. - func_extract_archives $gentop $convenience
  42750. - libobjs="$libobjs $func_extract_archives_result"
  42751. - fi
  42752. - fi
  42753. -
  42754. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  42755. - eval flag=\"$thread_safe_flag_spec\"
  42756. - linker_flags="$linker_flags $flag"
  42757. - fi
  42758. + case $host_os in
  42759. + mingw*)
  42760. + cat <<"EOF"
  42761. + {
  42762. + char* p;
  42763. + while ((p = strchr (newargz[0], '\\')) != NULL)
  42764. + {
  42765. + *p = '/';
  42766. + }
  42767. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  42768. + {
  42769. + *p = '/';
  42770. + }
  42771. + }
  42772. +EOF
  42773. + ;;
  42774. + esac
  42775. - # Make a backup of the uninstalled library when relinking
  42776. - if test "$mode" = relink; then
  42777. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  42778. - fi
  42779. + cat <<"EOF"
  42780. + XFREE (target_name);
  42781. + XFREE (actual_cwrapper_path);
  42782. + XFREE (actual_cwrapper_name);
  42783. +
  42784. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  42785. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  42786. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  42787. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  42788. - # Do each of the archive commands.
  42789. - if test "$module" = yes && test -n "$module_cmds" ; then
  42790. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  42791. - eval test_cmds=\"$module_expsym_cmds\"
  42792. - cmds=$module_expsym_cmds
  42793. - else
  42794. - eval test_cmds=\"$module_cmds\"
  42795. - cmds=$module_cmds
  42796. - fi
  42797. - else
  42798. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  42799. - eval test_cmds=\"$archive_expsym_cmds\"
  42800. - cmds=$archive_expsym_cmds
  42801. - else
  42802. - eval test_cmds=\"$archive_cmds\"
  42803. - cmds=$archive_cmds
  42804. - fi
  42805. - fi
  42806. + newargc=0;
  42807. + for (i = 1; i < argc; i++)
  42808. + {
  42809. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  42810. + {
  42811. + if (argv[i][env_set_opt_len] == '=')
  42812. + {
  42813. + const char *p = argv[i] + env_set_opt_len + 1;
  42814. + lt_opt_process_env_set (p);
  42815. + }
  42816. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  42817. + {
  42818. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  42819. + }
  42820. + else
  42821. + lt_fatal ("%s missing required argument", env_set_opt);
  42822. + continue;
  42823. + }
  42824. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  42825. + {
  42826. + if (argv[i][env_prepend_opt_len] == '=')
  42827. + {
  42828. + const char *p = argv[i] + env_prepend_opt_len + 1;
  42829. + lt_opt_process_env_prepend (p);
  42830. + }
  42831. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  42832. + {
  42833. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  42834. + }
  42835. + else
  42836. + lt_fatal ("%s missing required argument", env_prepend_opt);
  42837. + continue;
  42838. + }
  42839. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  42840. + {
  42841. + if (argv[i][env_append_opt_len] == '=')
  42842. + {
  42843. + const char *p = argv[i] + env_append_opt_len + 1;
  42844. + lt_opt_process_env_append (p);
  42845. + }
  42846. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  42847. + {
  42848. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  42849. + }
  42850. + else
  42851. + lt_fatal ("%s missing required argument", env_append_opt);
  42852. + continue;
  42853. + }
  42854. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  42855. + {
  42856. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  42857. + namespace, but it is not one of the ones we know about and
  42858. + have already dealt with, above (inluding dump-script), then
  42859. + report an error. Otherwise, targets might begin to believe
  42860. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  42861. + namespace. The first time any user complains about this, we'll
  42862. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  42863. + or a configure.ac-settable value.
  42864. + */
  42865. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  42866. + ltwrapper_option_prefix, argv[i]);
  42867. + }
  42868. + /* otherwise ... */
  42869. + newargz[++newargc] = xstrdup (argv[i]);
  42870. + }
  42871. + newargz[++newargc] = NULL;
  42872. - if test "X$skipped_export" != "X:" &&
  42873. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  42874. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  42875. - :
  42876. - else
  42877. - # The command line is too long to link in one step, link piecewise.
  42878. - $echo "creating reloadable object files..."
  42879. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  42880. + for (i = 0; i < newargc; i++)
  42881. + {
  42882. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  42883. + }
  42884. - # Save the value of $output and $libobjs because we want to
  42885. - # use them later. If we have whole_archive_flag_spec, we
  42886. - # want to use save_libobjs as it was before
  42887. - # whole_archive_flag_spec was expanded, because we can't
  42888. - # assume the linker understands whole_archive_flag_spec.
  42889. - # This may have to be revisited, in case too many
  42890. - # convenience libraries get linked in and end up exceeding
  42891. - # the spec.
  42892. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  42893. - save_libobjs=$libobjs
  42894. - fi
  42895. - save_output=$output
  42896. - output_la=`$echo "X$output" | $Xsed -e "$basename"`
  42897. +EOF
  42898. - # Clear the reloadable object creation command queue and
  42899. - # initialize k to one.
  42900. - test_cmds=
  42901. - concat_cmds=
  42902. - objlist=
  42903. - delfiles=
  42904. - last_robj=
  42905. - k=1
  42906. - output=$output_objdir/$output_la-${k}.$objext
  42907. - # Loop over the list of objects to be linked.
  42908. - for obj in $save_libobjs
  42909. - do
  42910. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  42911. - if test "X$objlist" = X ||
  42912. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  42913. - test "$len" -le "$max_cmd_len"; }; then
  42914. - objlist="$objlist $obj"
  42915. - else
  42916. - # The command $test_cmds is almost too long, add a
  42917. - # command to the queue.
  42918. - if test "$k" -eq 1 ; then
  42919. - # The first file doesn't have a previous command to add.
  42920. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  42921. - else
  42922. - # All subsequent reloadable object files will link in
  42923. - # the last one created.
  42924. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  42925. - fi
  42926. - last_robj=$output_objdir/$output_la-${k}.$objext
  42927. - k=`expr $k + 1`
  42928. - output=$output_objdir/$output_la-${k}.$objext
  42929. - objlist=$obj
  42930. - len=1
  42931. - fi
  42932. - done
  42933. - # Handle the remaining objects by creating one last
  42934. - # reloadable object file. All subsequent reloadable object
  42935. - # files will link in the last one created.
  42936. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  42937. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  42938. + case $host_os in
  42939. + mingw*)
  42940. + cat <<"EOF"
  42941. + /* execv doesn't actually work on mingw as expected on unix */
  42942. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  42943. + if (rval == -1)
  42944. + {
  42945. + /* failed to start process */
  42946. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  42947. + return 127;
  42948. + }
  42949. + return rval;
  42950. +EOF
  42951. + ;;
  42952. + *)
  42953. + cat <<"EOF"
  42954. + execv (lt_argv_zero, newargz);
  42955. + return rval; /* =127, but avoids unused variable warning */
  42956. +EOF
  42957. + ;;
  42958. + esac
  42959. - if ${skipped_export-false}; then
  42960. - $show "generating symbol list for \`$libname.la'"
  42961. - export_symbols="$output_objdir/$libname.exp"
  42962. - $run $rm $export_symbols
  42963. - libobjs=$output
  42964. - # Append the command to create the export file.
  42965. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  42966. - fi
  42967. -
  42968. - # Set up a command to remove the reloadable object files
  42969. - # after they are used.
  42970. - i=0
  42971. - while test "$i" -lt "$k"
  42972. - do
  42973. - i=`expr $i + 1`
  42974. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  42975. - done
  42976. + cat <<"EOF"
  42977. +}
  42978. - $echo "creating a temporary reloadable object file: $output"
  42979. +void *
  42980. +xmalloc (size_t num)
  42981. +{
  42982. + void *p = (void *) malloc (num);
  42983. + if (!p)
  42984. + lt_fatal ("Memory exhausted");
  42985. - # Loop through the commands generated above and execute them.
  42986. - save_ifs="$IFS"; IFS='~'
  42987. - for cmd in $concat_cmds; do
  42988. - IFS="$save_ifs"
  42989. - $show "$cmd"
  42990. - $run eval "$cmd" || exit $?
  42991. - done
  42992. - IFS="$save_ifs"
  42993. + return p;
  42994. +}
  42995. - libobjs=$output
  42996. - # Restore the value of output.
  42997. - output=$save_output
  42998. +char *
  42999. +xstrdup (const char *string)
  43000. +{
  43001. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  43002. + string) : NULL;
  43003. +}
  43004. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  43005. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  43006. - fi
  43007. - # Expand the library linking commands again to reset the
  43008. - # value of $libobjs for piecewise linking.
  43009. +const char *
  43010. +base_name (const char *name)
  43011. +{
  43012. + const char *base;
  43013. - # Do each of the archive commands.
  43014. - if test "$module" = yes && test -n "$module_cmds" ; then
  43015. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  43016. - cmds=$module_expsym_cmds
  43017. - else
  43018. - cmds=$module_cmds
  43019. - fi
  43020. - else
  43021. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  43022. - cmds=$archive_expsym_cmds
  43023. - else
  43024. - cmds=$archive_cmds
  43025. - fi
  43026. - fi
  43027. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  43028. + /* Skip over the disk name in MSDOS pathnames. */
  43029. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  43030. + name += 2;
  43031. +#endif
  43032. - # Append the command to remove the reloadable object files
  43033. - # to the just-reset $cmds.
  43034. - eval cmds=\"\$cmds~\$rm $delfiles\"
  43035. - fi
  43036. - save_ifs="$IFS"; IFS='~'
  43037. - for cmd in $cmds; do
  43038. - IFS="$save_ifs"
  43039. - eval cmd=\"$cmd\"
  43040. - $show "$cmd"
  43041. - $run eval "$cmd" || {
  43042. - lt_exit=$?
  43043. + for (base = name; *name; name++)
  43044. + if (IS_DIR_SEPARATOR (*name))
  43045. + base = name + 1;
  43046. + return base;
  43047. +}
  43048. - # Restore the uninstalled library and exit
  43049. - if test "$mode" = relink; then
  43050. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  43051. - fi
  43052. +int
  43053. +check_executable (const char *path)
  43054. +{
  43055. + struct stat st;
  43056. - exit $lt_exit
  43057. - }
  43058. - done
  43059. - IFS="$save_ifs"
  43060. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  43061. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  43062. + if ((!path) || (!*path))
  43063. + return 0;
  43064. - # Restore the uninstalled library and exit
  43065. - if test "$mode" = relink; then
  43066. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  43067. + if ((stat (path, &st) >= 0)
  43068. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  43069. + return 1;
  43070. + else
  43071. + return 0;
  43072. +}
  43073. - if test -n "$convenience"; then
  43074. - if test -z "$whole_archive_flag_spec"; then
  43075. - $show "${rm}r $gentop"
  43076. - $run ${rm}r "$gentop"
  43077. - fi
  43078. - fi
  43079. +int
  43080. +make_executable (const char *path)
  43081. +{
  43082. + int rval = 0;
  43083. + struct stat st;
  43084. - exit $EXIT_SUCCESS
  43085. - fi
  43086. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  43087. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  43088. + if ((!path) || (!*path))
  43089. + return 0;
  43090. - # Create links to the real library.
  43091. - for linkname in $linknames; do
  43092. - if test "$realname" != "$linkname"; then
  43093. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  43094. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  43095. - fi
  43096. - done
  43097. + if (stat (path, &st) >= 0)
  43098. + {
  43099. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  43100. + }
  43101. + return rval;
  43102. +}
  43103. - # If -module or -export-dynamic was specified, set the dlname.
  43104. - if test "$module" = yes || test "$export_dynamic" = yes; then
  43105. - # On all known operating systems, these are identical.
  43106. - dlname="$soname"
  43107. - fi
  43108. - fi
  43109. - ;;
  43110. +/* Searches for the full path of the wrapper. Returns
  43111. + newly allocated full path name if found, NULL otherwise
  43112. + Does not chase symlinks, even on platforms that support them.
  43113. +*/
  43114. +char *
  43115. +find_executable (const char *wrapper)
  43116. +{
  43117. + int has_slash = 0;
  43118. + const char *p;
  43119. + const char *p_next;
  43120. + /* static buffer for getcwd */
  43121. + char tmp[LT_PATHMAX + 1];
  43122. + int tmp_len;
  43123. + char *concat_name;
  43124. - obj)
  43125. - if test -n "$deplibs"; then
  43126. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  43127. - fi
  43128. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  43129. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  43130. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  43131. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  43132. - fi
  43133. + if ((wrapper == NULL) || (*wrapper == '\0'))
  43134. + return NULL;
  43135. - if test -n "$rpath"; then
  43136. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  43137. - fi
  43138. + /* Absolute path? */
  43139. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  43140. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  43141. + {
  43142. + concat_name = xstrdup (wrapper);
  43143. + if (check_executable (concat_name))
  43144. + return concat_name;
  43145. + XFREE (concat_name);
  43146. + }
  43147. + else
  43148. + {
  43149. +#endif
  43150. + if (IS_DIR_SEPARATOR (wrapper[0]))
  43151. + {
  43152. + concat_name = xstrdup (wrapper);
  43153. + if (check_executable (concat_name))
  43154. + return concat_name;
  43155. + XFREE (concat_name);
  43156. + }
  43157. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  43158. + }
  43159. +#endif
  43160. - if test -n "$xrpath"; then
  43161. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  43162. - fi
  43163. + for (p = wrapper; *p; p++)
  43164. + if (*p == '/')
  43165. + {
  43166. + has_slash = 1;
  43167. + break;
  43168. + }
  43169. + if (!has_slash)
  43170. + {
  43171. + /* no slashes; search PATH */
  43172. + const char *path = getenv ("PATH");
  43173. + if (path != NULL)
  43174. + {
  43175. + for (p = path; *p; p = p_next)
  43176. + {
  43177. + const char *q;
  43178. + size_t p_len;
  43179. + for (q = p; *q; q++)
  43180. + if (IS_PATH_SEPARATOR (*q))
  43181. + break;
  43182. + p_len = q - p;
  43183. + p_next = (*q == '\0' ? q : q + 1);
  43184. + if (p_len == 0)
  43185. + {
  43186. + /* empty path: current directory */
  43187. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  43188. + lt_fatal ("getcwd failed");
  43189. + tmp_len = strlen (tmp);
  43190. + concat_name =
  43191. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  43192. + memcpy (concat_name, tmp, tmp_len);
  43193. + concat_name[tmp_len] = '/';
  43194. + strcpy (concat_name + tmp_len + 1, wrapper);
  43195. + }
  43196. + else
  43197. + {
  43198. + concat_name =
  43199. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  43200. + memcpy (concat_name, p, p_len);
  43201. + concat_name[p_len] = '/';
  43202. + strcpy (concat_name + p_len + 1, wrapper);
  43203. + }
  43204. + if (check_executable (concat_name))
  43205. + return concat_name;
  43206. + XFREE (concat_name);
  43207. + }
  43208. + }
  43209. + /* not found in PATH; assume curdir */
  43210. + }
  43211. + /* Relative path | not found in path: prepend cwd */
  43212. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  43213. + lt_fatal ("getcwd failed");
  43214. + tmp_len = strlen (tmp);
  43215. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  43216. + memcpy (concat_name, tmp, tmp_len);
  43217. + concat_name[tmp_len] = '/';
  43218. + strcpy (concat_name + tmp_len + 1, wrapper);
  43219. - if test -n "$vinfo"; then
  43220. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  43221. - fi
  43222. + if (check_executable (concat_name))
  43223. + return concat_name;
  43224. + XFREE (concat_name);
  43225. + return NULL;
  43226. +}
  43227. - if test -n "$release"; then
  43228. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  43229. - fi
  43230. +char *
  43231. +chase_symlinks (const char *pathspec)
  43232. +{
  43233. +#ifndef S_ISLNK
  43234. + return xstrdup (pathspec);
  43235. +#else
  43236. + char buf[LT_PATHMAX];
  43237. + struct stat s;
  43238. + char *tmp_pathspec = xstrdup (pathspec);
  43239. + char *p;
  43240. + int has_symlinks = 0;
  43241. + while (strlen (tmp_pathspec) && !has_symlinks)
  43242. + {
  43243. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  43244. + tmp_pathspec));
  43245. + if (lstat (tmp_pathspec, &s) == 0)
  43246. + {
  43247. + if (S_ISLNK (s.st_mode) != 0)
  43248. + {
  43249. + has_symlinks = 1;
  43250. + break;
  43251. + }
  43252. - case $output in
  43253. - *.lo)
  43254. - if test -n "$objs$old_deplibs"; then
  43255. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  43256. - exit $EXIT_FAILURE
  43257. - fi
  43258. - libobj="$output"
  43259. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  43260. - ;;
  43261. - *)
  43262. - libobj=
  43263. - obj="$output"
  43264. - ;;
  43265. - esac
  43266. + /* search backwards for last DIR_SEPARATOR */
  43267. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  43268. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  43269. + p--;
  43270. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  43271. + {
  43272. + /* no more DIR_SEPARATORS left */
  43273. + break;
  43274. + }
  43275. + *p = '\0';
  43276. + }
  43277. + else
  43278. + {
  43279. + char *errstr = strerror (errno);
  43280. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  43281. + }
  43282. + }
  43283. + XFREE (tmp_pathspec);
  43284. - # Delete the old objects.
  43285. - $run $rm $obj $libobj
  43286. + if (!has_symlinks)
  43287. + {
  43288. + return xstrdup (pathspec);
  43289. + }
  43290. - # Objects from convenience libraries. This assumes
  43291. - # single-version convenience libraries. Whenever we create
  43292. - # different ones for PIC/non-PIC, this we'll have to duplicate
  43293. - # the extraction.
  43294. - reload_conv_objs=
  43295. - gentop=
  43296. - # reload_cmds runs $LD directly, so let us get rid of
  43297. - # -Wl from whole_archive_flag_spec
  43298. - wl=
  43299. + tmp_pathspec = realpath (pathspec, buf);
  43300. + if (tmp_pathspec == 0)
  43301. + {
  43302. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  43303. + }
  43304. + return xstrdup (tmp_pathspec);
  43305. +#endif
  43306. +}
  43307. - if test -n "$convenience"; then
  43308. - if test -n "$whole_archive_flag_spec"; then
  43309. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  43310. - else
  43311. - gentop="$output_objdir/${obj}x"
  43312. - generated="$generated $gentop"
  43313. +char *
  43314. +strendzap (char *str, const char *pat)
  43315. +{
  43316. + size_t len, patlen;
  43317. - func_extract_archives $gentop $convenience
  43318. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  43319. - fi
  43320. - fi
  43321. + assert (str != NULL);
  43322. + assert (pat != NULL);
  43323. - # Create the old-style object.
  43324. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  43325. + len = strlen (str);
  43326. + patlen = strlen (pat);
  43327. - output="$obj"
  43328. - cmds=$reload_cmds
  43329. - save_ifs="$IFS"; IFS='~'
  43330. - for cmd in $cmds; do
  43331. - IFS="$save_ifs"
  43332. - eval cmd=\"$cmd\"
  43333. - $show "$cmd"
  43334. - $run eval "$cmd" || exit $?
  43335. - done
  43336. - IFS="$save_ifs"
  43337. + if (patlen <= len)
  43338. + {
  43339. + str += len - patlen;
  43340. + if (strcmp (str, pat) == 0)
  43341. + *str = '\0';
  43342. + }
  43343. + return str;
  43344. +}
  43345. - # Exit if we aren't doing a library object file.
  43346. - if test -z "$libobj"; then
  43347. - if test -n "$gentop"; then
  43348. - $show "${rm}r $gentop"
  43349. - $run ${rm}r $gentop
  43350. - fi
  43351. +static void
  43352. +lt_error_core (int exit_status, const char *mode,
  43353. + const char *message, va_list ap)
  43354. +{
  43355. + fprintf (stderr, "%s: %s: ", program_name, mode);
  43356. + vfprintf (stderr, message, ap);
  43357. + fprintf (stderr, ".\n");
  43358. - exit $EXIT_SUCCESS
  43359. - fi
  43360. + if (exit_status >= 0)
  43361. + exit (exit_status);
  43362. +}
  43363. - if test "$build_libtool_libs" != yes; then
  43364. - if test -n "$gentop"; then
  43365. - $show "${rm}r $gentop"
  43366. - $run ${rm}r $gentop
  43367. - fi
  43368. +void
  43369. +lt_fatal (const char *message, ...)
  43370. +{
  43371. + va_list ap;
  43372. + va_start (ap, message);
  43373. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  43374. + va_end (ap);
  43375. +}
  43376. - # Create an invalid libtool object if no PIC, so that we don't
  43377. - # accidentally link it into a program.
  43378. - # $show "echo timestamp > $libobj"
  43379. - # $run eval "echo timestamp > $libobj" || exit $?
  43380. - exit $EXIT_SUCCESS
  43381. - fi
  43382. +void
  43383. +lt_setenv (const char *name, const char *value)
  43384. +{
  43385. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  43386. + (name ? name : "<NULL>"),
  43387. + (value ? value : "<NULL>")));
  43388. + {
  43389. +#ifdef HAVE_SETENV
  43390. + /* always make a copy, for consistency with !HAVE_SETENV */
  43391. + char *str = xstrdup (value);
  43392. + setenv (name, str, 1);
  43393. +#else
  43394. + int len = strlen (name) + 1 + strlen (value) + 1;
  43395. + char *str = XMALLOC (char, len);
  43396. + sprintf (str, "%s=%s", name, value);
  43397. + if (putenv (str) != EXIT_SUCCESS)
  43398. + {
  43399. + XFREE (str);
  43400. + }
  43401. +#endif
  43402. + }
  43403. +}
  43404. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  43405. - # Only do commands if we really have different PIC objects.
  43406. - reload_objs="$libobjs $reload_conv_objs"
  43407. - output="$libobj"
  43408. - cmds=$reload_cmds
  43409. - save_ifs="$IFS"; IFS='~'
  43410. - for cmd in $cmds; do
  43411. - IFS="$save_ifs"
  43412. - eval cmd=\"$cmd\"
  43413. - $show "$cmd"
  43414. - $run eval "$cmd" || exit $?
  43415. - done
  43416. - IFS="$save_ifs"
  43417. - fi
  43418. +char *
  43419. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  43420. +{
  43421. + char *new_value;
  43422. + if (orig_value && *orig_value)
  43423. + {
  43424. + int orig_value_len = strlen (orig_value);
  43425. + int add_len = strlen (add);
  43426. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  43427. + if (to_end)
  43428. + {
  43429. + strcpy (new_value, orig_value);
  43430. + strcpy (new_value + orig_value_len, add);
  43431. + }
  43432. + else
  43433. + {
  43434. + strcpy (new_value, add);
  43435. + strcpy (new_value + add_len, orig_value);
  43436. + }
  43437. + }
  43438. + else
  43439. + {
  43440. + new_value = xstrdup (add);
  43441. + }
  43442. + return new_value;
  43443. +}
  43444. - if test -n "$gentop"; then
  43445. - $show "${rm}r $gentop"
  43446. - $run ${rm}r $gentop
  43447. - fi
  43448. +int
  43449. +lt_split_name_value (const char *arg, char** name, char** value)
  43450. +{
  43451. + const char *p;
  43452. + int len;
  43453. + if (!arg || !*arg)
  43454. + return 1;
  43455. - exit $EXIT_SUCCESS
  43456. - ;;
  43457. + p = strchr (arg, (int)'=');
  43458. - prog)
  43459. - case $host in
  43460. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  43461. - esac
  43462. - if test -n "$vinfo"; then
  43463. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  43464. - fi
  43465. + if (!p)
  43466. + return 1;
  43467. - if test -n "$release"; then
  43468. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  43469. - fi
  43470. + *value = xstrdup (++p);
  43471. - if test "$preload" = yes; then
  43472. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  43473. - test "$dlopen_self_static" = unknown; then
  43474. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  43475. - fi
  43476. - fi
  43477. + len = strlen (arg) - strlen (*value);
  43478. + *name = XMALLOC (char, len);
  43479. + strncpy (*name, arg, len-1);
  43480. + (*name)[len - 1] = '\0';
  43481. - case $host in
  43482. - *-*-rhapsody* | *-*-darwin1.[012])
  43483. - # On Rhapsody replace the C library is the System framework
  43484. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  43485. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  43486. - ;;
  43487. - esac
  43488. + return 0;
  43489. +}
  43490. - case $host in
  43491. - *darwin*)
  43492. - # Don't allow lazy linking, it breaks C++ global constructors
  43493. - if test "$tagname" = CXX ; then
  43494. - compile_command="$compile_command ${wl}-bind_at_load"
  43495. - finalize_command="$finalize_command ${wl}-bind_at_load"
  43496. - fi
  43497. - ;;
  43498. - esac
  43499. +void
  43500. +lt_opt_process_env_set (const char *arg)
  43501. +{
  43502. + char *name = NULL;
  43503. + char *value = NULL;
  43504. + if (lt_split_name_value (arg, &name, &value) != 0)
  43505. + {
  43506. + XFREE (name);
  43507. + XFREE (value);
  43508. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  43509. + }
  43510. - # move library search paths that coincide with paths to not yet
  43511. - # installed libraries to the beginning of the library search list
  43512. - new_libs=
  43513. - for path in $notinst_path; do
  43514. - case " $new_libs " in
  43515. - *" -L$path/$objdir "*) ;;
  43516. - *)
  43517. - case " $compile_deplibs " in
  43518. - *" -L$path/$objdir "*)
  43519. - new_libs="$new_libs -L$path/$objdir" ;;
  43520. - esac
  43521. - ;;
  43522. - esac
  43523. - done
  43524. - for deplib in $compile_deplibs; do
  43525. - case $deplib in
  43526. - -L*)
  43527. - case " $new_libs " in
  43528. - *" $deplib "*) ;;
  43529. - *) new_libs="$new_libs $deplib" ;;
  43530. - esac
  43531. - ;;
  43532. - *) new_libs="$new_libs $deplib" ;;
  43533. - esac
  43534. - done
  43535. - compile_deplibs="$new_libs"
  43536. -
  43537. + lt_setenv (name, value);
  43538. + XFREE (name);
  43539. + XFREE (value);
  43540. +}
  43541. - compile_command="$compile_command $compile_deplibs"
  43542. - finalize_command="$finalize_command $finalize_deplibs"
  43543. +void
  43544. +lt_opt_process_env_prepend (const char *arg)
  43545. +{
  43546. + char *name = NULL;
  43547. + char *value = NULL;
  43548. + char *new_value = NULL;
  43549. - if test -n "$rpath$xrpath"; then
  43550. - # If the user specified any rpath flags, then add them.
  43551. - for libdir in $rpath $xrpath; do
  43552. - # This is the magic to use -rpath.
  43553. - case "$finalize_rpath " in
  43554. - *" $libdir "*) ;;
  43555. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  43556. - esac
  43557. - done
  43558. - fi
  43559. + if (lt_split_name_value (arg, &name, &value) != 0)
  43560. + {
  43561. + XFREE (name);
  43562. + XFREE (value);
  43563. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  43564. + }
  43565. - # Now hardcode the library paths
  43566. - rpath=
  43567. - hardcode_libdirs=
  43568. - for libdir in $compile_rpath $finalize_rpath; do
  43569. - if test -n "$hardcode_libdir_flag_spec"; then
  43570. - if test -n "$hardcode_libdir_separator"; then
  43571. - if test -z "$hardcode_libdirs"; then
  43572. - hardcode_libdirs="$libdir"
  43573. - else
  43574. - # Just accumulate the unique libdirs.
  43575. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  43576. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  43577. - ;;
  43578. - *)
  43579. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  43580. - ;;
  43581. - esac
  43582. - fi
  43583. - else
  43584. - eval flag=\"$hardcode_libdir_flag_spec\"
  43585. - rpath="$rpath $flag"
  43586. - fi
  43587. - elif test -n "$runpath_var"; then
  43588. - case "$perm_rpath " in
  43589. - *" $libdir "*) ;;
  43590. - *) perm_rpath="$perm_rpath $libdir" ;;
  43591. - esac
  43592. - fi
  43593. - case $host in
  43594. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  43595. - testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  43596. - case :$dllsearchpath: in
  43597. - *":$libdir:"*) ;;
  43598. - *) dllsearchpath="$dllsearchpath:$libdir";;
  43599. - esac
  43600. - case :$dllsearchpath: in
  43601. - *":$testbindir:"*) ;;
  43602. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  43603. - esac
  43604. - ;;
  43605. - esac
  43606. - done
  43607. - # Substitute the hardcoded libdirs into the rpath.
  43608. - if test -n "$hardcode_libdir_separator" &&
  43609. - test -n "$hardcode_libdirs"; then
  43610. - libdir="$hardcode_libdirs"
  43611. - eval rpath=\" $hardcode_libdir_flag_spec\"
  43612. - fi
  43613. - compile_rpath="$rpath"
  43614. + new_value = lt_extend_str (getenv (name), value, 0);
  43615. + lt_setenv (name, new_value);
  43616. + XFREE (new_value);
  43617. + XFREE (name);
  43618. + XFREE (value);
  43619. +}
  43620. - rpath=
  43621. - hardcode_libdirs=
  43622. - for libdir in $finalize_rpath; do
  43623. - if test -n "$hardcode_libdir_flag_spec"; then
  43624. - if test -n "$hardcode_libdir_separator"; then
  43625. - if test -z "$hardcode_libdirs"; then
  43626. - hardcode_libdirs="$libdir"
  43627. - else
  43628. - # Just accumulate the unique libdirs.
  43629. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  43630. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  43631. - ;;
  43632. - *)
  43633. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  43634. - ;;
  43635. - esac
  43636. - fi
  43637. - else
  43638. - eval flag=\"$hardcode_libdir_flag_spec\"
  43639. - rpath="$rpath $flag"
  43640. - fi
  43641. - elif test -n "$runpath_var"; then
  43642. - case "$finalize_perm_rpath " in
  43643. - *" $libdir "*) ;;
  43644. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  43645. - esac
  43646. - fi
  43647. - done
  43648. - # Substitute the hardcoded libdirs into the rpath.
  43649. - if test -n "$hardcode_libdir_separator" &&
  43650. - test -n "$hardcode_libdirs"; then
  43651. - libdir="$hardcode_libdirs"
  43652. - eval rpath=\" $hardcode_libdir_flag_spec\"
  43653. - fi
  43654. - finalize_rpath="$rpath"
  43655. +void
  43656. +lt_opt_process_env_append (const char *arg)
  43657. +{
  43658. + char *name = NULL;
  43659. + char *value = NULL;
  43660. + char *new_value = NULL;
  43661. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  43662. - # Transform all the library objects into standard objects.
  43663. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  43664. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  43665. - fi
  43666. + if (lt_split_name_value (arg, &name, &value) != 0)
  43667. + {
  43668. + XFREE (name);
  43669. + XFREE (value);
  43670. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  43671. + }
  43672. - dlsyms=
  43673. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  43674. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  43675. - dlsyms="${outputname}S.c"
  43676. - else
  43677. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  43678. - fi
  43679. - fi
  43680. + new_value = lt_extend_str (getenv (name), value, 1);
  43681. + lt_setenv (name, new_value);
  43682. + XFREE (new_value);
  43683. + XFREE (name);
  43684. + XFREE (value);
  43685. +}
  43686. - if test -n "$dlsyms"; then
  43687. - case $dlsyms in
  43688. - "") ;;
  43689. - *.c)
  43690. - # Discover the nlist of each of the dlfiles.
  43691. - nlist="$output_objdir/${outputname}.nm"
  43692. +void
  43693. +lt_update_exe_path (const char *name, const char *value)
  43694. +{
  43695. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  43696. + (name ? name : "<NULL>"),
  43697. + (value ? value : "<NULL>")));
  43698. - $show "$rm $nlist ${nlist}S ${nlist}T"
  43699. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  43700. + if (name && *name && value && *value)
  43701. + {
  43702. + char *new_value = lt_extend_str (getenv (name), value, 0);
  43703. + /* some systems can't cope with a ':'-terminated path #' */
  43704. + int len = strlen (new_value);
  43705. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  43706. + {
  43707. + new_value[len-1] = '\0';
  43708. + }
  43709. + lt_setenv (name, new_value);
  43710. + XFREE (new_value);
  43711. + }
  43712. +}
  43713. - # Parse the name list into a source file.
  43714. - $show "creating $output_objdir/$dlsyms"
  43715. +void
  43716. +lt_update_lib_path (const char *name, const char *value)
  43717. +{
  43718. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  43719. + (name ? name : "<NULL>"),
  43720. + (value ? value : "<NULL>")));
  43721. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  43722. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  43723. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  43724. + if (name && *name && value && *value)
  43725. + {
  43726. + char *new_value = lt_extend_str (getenv (name), value, 0);
  43727. + lt_setenv (name, new_value);
  43728. + XFREE (new_value);
  43729. + }
  43730. +}
  43731. -#ifdef __cplusplus
  43732. -extern \"C\" {
  43733. -#endif
  43734. -/* Prevent the only kind of declaration conflicts we can make. */
  43735. -#define lt_preloaded_symbols some_other_symbol
  43736. +EOF
  43737. +}
  43738. +# end: func_emit_cwrapperexe_src
  43739. -/* External symbol declarations for the compiler. */\
  43740. -"
  43741. +# func_mode_link arg...
  43742. +func_mode_link ()
  43743. +{
  43744. + $opt_debug
  43745. + case $host in
  43746. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  43747. + # It is impossible to link a dll without this setting, and
  43748. + # we shouldn't force the makefile maintainer to figure out
  43749. + # which system we are compiling for in order to pass an extra
  43750. + # flag for every libtool invocation.
  43751. + # allow_undefined=no
  43752. - if test "$dlself" = yes; then
  43753. - $show "generating symbol list for \`$output'"
  43754. + # FIXME: Unfortunately, there are problems with the above when trying
  43755. + # to make a dll which has undefined symbols, in which case not
  43756. + # even a static library is built. For now, we need to specify
  43757. + # -no-undefined on the libtool link line when we can be certain
  43758. + # that all symbols are satisfied, otherwise we get a static library.
  43759. + allow_undefined=yes
  43760. + ;;
  43761. + *)
  43762. + allow_undefined=yes
  43763. + ;;
  43764. + esac
  43765. + libtool_args=$nonopt
  43766. + base_compile="$nonopt $@"
  43767. + compile_command=$nonopt
  43768. + finalize_command=$nonopt
  43769. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  43770. + compile_rpath=
  43771. + finalize_rpath=
  43772. + compile_shlibpath=
  43773. + finalize_shlibpath=
  43774. + convenience=
  43775. + old_convenience=
  43776. + deplibs=
  43777. + old_deplibs=
  43778. + compiler_flags=
  43779. + linker_flags=
  43780. + dllsearchpath=
  43781. + lib_search_path=`pwd`
  43782. + inst_prefix_dir=
  43783. + new_inherited_linker_flags=
  43784. - # Add our own program objects to the symbol list.
  43785. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  43786. - for arg in $progfiles; do
  43787. - $show "extracting global C symbols from \`$arg'"
  43788. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  43789. - done
  43790. + avoid_version=no
  43791. + dlfiles=
  43792. + dlprefiles=
  43793. + dlself=no
  43794. + export_dynamic=no
  43795. + export_symbols=
  43796. + export_symbols_regex=
  43797. + generated=
  43798. + libobjs=
  43799. + ltlibs=
  43800. + module=no
  43801. + no_install=no
  43802. + objs=
  43803. + non_pic_objects=
  43804. + precious_files_regex=
  43805. + prefer_static_libs=no
  43806. + preload=no
  43807. + prev=
  43808. + prevarg=
  43809. + release=
  43810. + rpath=
  43811. + xrpath=
  43812. + perm_rpath=
  43813. + temp_rpath=
  43814. + thread_safe=no
  43815. + vinfo=
  43816. + vinfo_number=no
  43817. + weak_libs=
  43818. + single_module="${wl}-single_module"
  43819. + func_infer_tag $base_compile
  43820. - if test -n "$exclude_expsyms"; then
  43821. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  43822. - $run eval '$mv "$nlist"T "$nlist"'
  43823. - fi
  43824. -
  43825. - if test -n "$export_symbols_regex"; then
  43826. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  43827. - $run eval '$mv "$nlist"T "$nlist"'
  43828. - fi
  43829. -
  43830. - # Prepare the list of exported symbols
  43831. - if test -z "$export_symbols"; then
  43832. - export_symbols="$output_objdir/$outputname.exp"
  43833. - $run $rm $export_symbols
  43834. - $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  43835. - case $host in
  43836. - *cygwin* | *mingw* )
  43837. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  43838. - $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  43839. - ;;
  43840. - esac
  43841. - else
  43842. - $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  43843. - $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  43844. - $run eval 'mv "$nlist"T "$nlist"'
  43845. - case $host in
  43846. - *cygwin* | *mingw* )
  43847. - $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  43848. - $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  43849. - ;;
  43850. - esac
  43851. - fi
  43852. + # We need to know -static, to get the right output filenames.
  43853. + for arg
  43854. + do
  43855. + case $arg in
  43856. + -shared)
  43857. + test "$build_libtool_libs" != yes && \
  43858. + func_fatal_configuration "can not build a shared library"
  43859. + build_old_libs=no
  43860. + break
  43861. + ;;
  43862. + -all-static | -static | -static-libtool-libs)
  43863. + case $arg in
  43864. + -all-static)
  43865. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  43866. + func_warning "complete static linking is impossible in this configuration"
  43867. fi
  43868. + if test -n "$link_static_flag"; then
  43869. + dlopen_self=$dlopen_self_static
  43870. + fi
  43871. + prefer_static_libs=yes
  43872. + ;;
  43873. + -static)
  43874. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  43875. + dlopen_self=$dlopen_self_static
  43876. + fi
  43877. + prefer_static_libs=built
  43878. + ;;
  43879. + -static-libtool-libs)
  43880. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  43881. + dlopen_self=$dlopen_self_static
  43882. + fi
  43883. + prefer_static_libs=yes
  43884. + ;;
  43885. + esac
  43886. + build_libtool_libs=no
  43887. + build_old_libs=yes
  43888. + break
  43889. + ;;
  43890. + esac
  43891. + done
  43892. - for arg in $dlprefiles; do
  43893. - $show "extracting global C symbols from \`$arg'"
  43894. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  43895. - $run eval '$echo ": $name " >> "$nlist"'
  43896. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  43897. - done
  43898. -
  43899. - if test -z "$run"; then
  43900. - # Make sure we have at least an empty file.
  43901. - test -f "$nlist" || : > "$nlist"
  43902. -
  43903. - if test -n "$exclude_expsyms"; then
  43904. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  43905. - $mv "$nlist"T "$nlist"
  43906. - fi
  43907. + # See if our shared archives depend on static archives.
  43908. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  43909. - # Try sorting and uniquifying the output.
  43910. - if grep -v "^: " < "$nlist" |
  43911. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  43912. - sort -k 3
  43913. - else
  43914. - sort +2
  43915. - fi |
  43916. - uniq > "$nlist"S; then
  43917. - :
  43918. + # Go through the arguments, transforming them on the way.
  43919. + while test "$#" -gt 0; do
  43920. + arg="$1"
  43921. + shift
  43922. + func_quote_for_eval "$arg"
  43923. + qarg=$func_quote_for_eval_unquoted_result
  43924. + func_append libtool_args " $func_quote_for_eval_result"
  43925. +
  43926. + # If the previous option needs an argument, assign it.
  43927. + if test -n "$prev"; then
  43928. + case $prev in
  43929. + output)
  43930. + func_append compile_command " @OUTPUT@"
  43931. + func_append finalize_command " @OUTPUT@"
  43932. + ;;
  43933. + esac
  43934. +
  43935. + case $prev in
  43936. + dlfiles|dlprefiles)
  43937. + if test "$preload" = no; then
  43938. + # Add the symbol object into the linking commands.
  43939. + func_append compile_command " @SYMFILE@"
  43940. + func_append finalize_command " @SYMFILE@"
  43941. + preload=yes
  43942. + fi
  43943. + case $arg in
  43944. + *.la | *.lo) ;; # We handle these cases below.
  43945. + force)
  43946. + if test "$dlself" = no; then
  43947. + dlself=needless
  43948. + export_dynamic=yes
  43949. + fi
  43950. + prev=
  43951. + continue
  43952. + ;;
  43953. + self)
  43954. + if test "$prev" = dlprefiles; then
  43955. + dlself=yes
  43956. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  43957. + dlself=yes
  43958. else
  43959. - grep -v "^: " < "$nlist" > "$nlist"S
  43960. + dlself=needless
  43961. + export_dynamic=yes
  43962. fi
  43963. -
  43964. - if test -f "$nlist"S; then
  43965. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  43966. + prev=
  43967. + continue
  43968. + ;;
  43969. + *)
  43970. + if test "$prev" = dlfiles; then
  43971. + dlfiles="$dlfiles $arg"
  43972. else
  43973. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  43974. + dlprefiles="$dlprefiles $arg"
  43975. fi
  43976. + prev=
  43977. + continue
  43978. + ;;
  43979. + esac
  43980. + ;;
  43981. + expsyms)
  43982. + export_symbols="$arg"
  43983. + test -f "$arg" \
  43984. + || func_fatal_error "symbol file \`$arg' does not exist"
  43985. + prev=
  43986. + continue
  43987. + ;;
  43988. + expsyms_regex)
  43989. + export_symbols_regex="$arg"
  43990. + prev=
  43991. + continue
  43992. + ;;
  43993. + framework)
  43994. + case $host in
  43995. + *-*-darwin*)
  43996. + case "$deplibs " in
  43997. + *" $qarg.ltframework "*) ;;
  43998. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  43999. + ;;
  44000. + esac
  44001. + ;;
  44002. + esac
  44003. + prev=
  44004. + continue
  44005. + ;;
  44006. + inst_prefix)
  44007. + inst_prefix_dir="$arg"
  44008. + prev=
  44009. + continue
  44010. + ;;
  44011. + objectlist)
  44012. + if test -f "$arg"; then
  44013. + save_arg=$arg
  44014. + moreargs=
  44015. + for fil in `cat "$save_arg"`
  44016. + do
  44017. +# moreargs="$moreargs $fil"
  44018. + arg=$fil
  44019. + # A libtool-controlled object.
  44020. - $echo >> "$output_objdir/$dlsyms" "\
  44021. + # Check to see that this really is a libtool object.
  44022. + if func_lalib_unsafe_p "$arg"; then
  44023. + pic_object=
  44024. + non_pic_object=
  44025. -#undef lt_preloaded_symbols
  44026. + # Read the .lo file
  44027. + func_source "$arg"
  44028. -#if defined (__STDC__) && __STDC__
  44029. -# define lt_ptr void *
  44030. -#else
  44031. -# define lt_ptr char *
  44032. -# define const
  44033. -#endif
  44034. + if test -z "$pic_object" ||
  44035. + test -z "$non_pic_object" ||
  44036. + test "$pic_object" = none &&
  44037. + test "$non_pic_object" = none; then
  44038. + func_fatal_error "cannot find name of object for \`$arg'"
  44039. + fi
  44040. -/* The mapping between symbol names and symbols. */
  44041. -"
  44042. + # Extract subdirectory from the argument.
  44043. + func_dirname "$arg" "/" ""
  44044. + xdir="$func_dirname_result"
  44045. - case $host in
  44046. - *cygwin* | *mingw* )
  44047. - $echo >> "$output_objdir/$dlsyms" "\
  44048. -/* DATA imports from DLLs on WIN32 can't be const, because
  44049. - runtime relocations are performed -- see ld's documentation
  44050. - on pseudo-relocs */
  44051. -struct {
  44052. -"
  44053. - ;;
  44054. - * )
  44055. - $echo >> "$output_objdir/$dlsyms" "\
  44056. -const struct {
  44057. -"
  44058. - ;;
  44059. - esac
  44060. + if test "$pic_object" != none; then
  44061. + # Prepend the subdirectory the object is found in.
  44062. + pic_object="$xdir$pic_object"
  44063. + if test "$prev" = dlfiles; then
  44064. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  44065. + dlfiles="$dlfiles $pic_object"
  44066. + prev=
  44067. + continue
  44068. + else
  44069. + # If libtool objects are unsupported, then we need to preload.
  44070. + prev=dlprefiles
  44071. + fi
  44072. + fi
  44073. - $echo >> "$output_objdir/$dlsyms" "\
  44074. - const char *name;
  44075. - lt_ptr address;
  44076. -}
  44077. -lt_preloaded_symbols[] =
  44078. -{\
  44079. -"
  44080. + # CHECK ME: I think I busted this. -Ossama
  44081. + if test "$prev" = dlprefiles; then
  44082. + # Preload the old-style object.
  44083. + dlprefiles="$dlprefiles $pic_object"
  44084. + prev=
  44085. + fi
  44086. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  44087. + # A PIC object.
  44088. + func_append libobjs " $pic_object"
  44089. + arg="$pic_object"
  44090. + fi
  44091. - $echo >> "$output_objdir/$dlsyms" "\
  44092. - {0, (lt_ptr) 0}
  44093. -};
  44094. + # Non-PIC object.
  44095. + if test "$non_pic_object" != none; then
  44096. + # Prepend the subdirectory the object is found in.
  44097. + non_pic_object="$xdir$non_pic_object"
  44098. -/* This works around a problem in FreeBSD linker */
  44099. -#ifdef FREEBSD_WORKAROUND
  44100. -static const void *lt_preloaded_setup() {
  44101. - return lt_preloaded_symbols;
  44102. -}
  44103. -#endif
  44104. + # A standard non-PIC object
  44105. + func_append non_pic_objects " $non_pic_object"
  44106. + if test -z "$pic_object" || test "$pic_object" = none ; then
  44107. + arg="$non_pic_object"
  44108. + fi
  44109. + else
  44110. + # If the PIC object exists, use it instead.
  44111. + # $xdir was prepended to $pic_object above.
  44112. + non_pic_object="$pic_object"
  44113. + func_append non_pic_objects " $non_pic_object"
  44114. + fi
  44115. + else
  44116. + # Only an error if not doing a dry-run.
  44117. + if $opt_dry_run; then
  44118. + # Extract subdirectory from the argument.
  44119. + func_dirname "$arg" "/" ""
  44120. + xdir="$func_dirname_result"
  44121. -#ifdef __cplusplus
  44122. -}
  44123. -#endif\
  44124. -"
  44125. + func_lo2o "$arg"
  44126. + pic_object=$xdir$objdir/$func_lo2o_result
  44127. + non_pic_object=$xdir$func_lo2o_result
  44128. + func_append libobjs " $pic_object"
  44129. + func_append non_pic_objects " $non_pic_object"
  44130. + else
  44131. + func_fatal_error "\`$arg' is not a valid libtool object"
  44132. + fi
  44133. + fi
  44134. + done
  44135. + else
  44136. + func_fatal_error "link input file \`$arg' does not exist"
  44137. fi
  44138. -
  44139. - pic_flag_for_symtable=
  44140. - case $host in
  44141. - # compiling the symbol table file with pic_flag works around
  44142. - # a FreeBSD bug that causes programs to crash when -lm is
  44143. - # linked before any other PIC object. But we must not use
  44144. - # pic_flag when linking with -static. The problem exists in
  44145. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  44146. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  44147. - case "$compile_command " in
  44148. - *" -static "*) ;;
  44149. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  44150. - esac;;
  44151. - *-*-hpux*)
  44152. - case "$compile_command " in
  44153. - *" -static "*) ;;
  44154. - *) pic_flag_for_symtable=" $pic_flag";;
  44155. - esac
  44156. + arg=$save_arg
  44157. + prev=
  44158. + continue
  44159. + ;;
  44160. + precious_regex)
  44161. + precious_files_regex="$arg"
  44162. + prev=
  44163. + continue
  44164. + ;;
  44165. + release)
  44166. + release="-$arg"
  44167. + prev=
  44168. + continue
  44169. + ;;
  44170. + rpath | xrpath)
  44171. + # We need an absolute path.
  44172. + case $arg in
  44173. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  44174. + *)
  44175. + func_fatal_error "only absolute run-paths are allowed"
  44176. + ;;
  44177. esac
  44178. -
  44179. - # Now compile the dynamic symbol file.
  44180. - $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  44181. - $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  44182. -
  44183. - # Clean up the generated files.
  44184. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  44185. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  44186. -
  44187. - # Transform the symbol file into the correct name.
  44188. - case $host in
  44189. - *cygwin* | *mingw* )
  44190. - if test -f "$output_objdir/${outputname}.def" ; then
  44191. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  44192. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  44193. - else
  44194. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  44195. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  44196. - fi
  44197. - ;;
  44198. - * )
  44199. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  44200. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  44201. - ;;
  44202. - esac
  44203. + if test "$prev" = rpath; then
  44204. + case "$rpath " in
  44205. + *" $arg "*) ;;
  44206. + *) rpath="$rpath $arg" ;;
  44207. + esac
  44208. + else
  44209. + case "$xrpath " in
  44210. + *" $arg "*) ;;
  44211. + *) xrpath="$xrpath $arg" ;;
  44212. + esac
  44213. + fi
  44214. + prev=
  44215. + continue
  44216. + ;;
  44217. + shrext)
  44218. + shrext_cmds="$arg"
  44219. + prev=
  44220. + continue
  44221. + ;;
  44222. + weak)
  44223. + weak_libs="$weak_libs $arg"
  44224. + prev=
  44225. + continue
  44226. + ;;
  44227. + xcclinker)
  44228. + linker_flags="$linker_flags $qarg"
  44229. + compiler_flags="$compiler_flags $qarg"
  44230. + prev=
  44231. + func_append compile_command " $qarg"
  44232. + func_append finalize_command " $qarg"
  44233. + continue
  44234. + ;;
  44235. + xcompiler)
  44236. + compiler_flags="$compiler_flags $qarg"
  44237. + prev=
  44238. + func_append compile_command " $qarg"
  44239. + func_append finalize_command " $qarg"
  44240. + continue
  44241. + ;;
  44242. + xlinker)
  44243. + linker_flags="$linker_flags $qarg"
  44244. + compiler_flags="$compiler_flags $wl$qarg"
  44245. + prev=
  44246. + func_append compile_command " $wl$qarg"
  44247. + func_append finalize_command " $wl$qarg"
  44248. + continue
  44249. ;;
  44250. *)
  44251. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  44252. - exit $EXIT_FAILURE
  44253. + eval "$prev=\"\$arg\""
  44254. + prev=
  44255. + continue
  44256. ;;
  44257. esac
  44258. - else
  44259. - # We keep going just in case the user didn't refer to
  44260. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  44261. - # really was required.
  44262. + fi # test -n "$prev"
  44263. - # Nullify the symbol file.
  44264. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  44265. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  44266. - fi
  44267. + prevarg="$arg"
  44268. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  44269. - # Replace the output file specification.
  44270. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  44271. - link_command="$compile_command$compile_rpath"
  44272. + case $arg in
  44273. + -all-static)
  44274. + if test -n "$link_static_flag"; then
  44275. + # See comment for -static flag below, for more details.
  44276. + func_append compile_command " $link_static_flag"
  44277. + func_append finalize_command " $link_static_flag"
  44278. + fi
  44279. + continue
  44280. + ;;
  44281. - # We have no uninstalled library dependencies, so finalize right now.
  44282. - $show "$link_command"
  44283. - $run eval "$link_command"
  44284. - exit_status=$?
  44285. + -allow-undefined)
  44286. + # FIXME: remove this flag sometime in the future.
  44287. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  44288. + ;;
  44289. - # Delete the generated files.
  44290. - if test -n "$dlsyms"; then
  44291. - $show "$rm $output_objdir/${outputname}S.${objext}"
  44292. - $run $rm "$output_objdir/${outputname}S.${objext}"
  44293. - fi
  44294. + -avoid-version)
  44295. + avoid_version=yes
  44296. + continue
  44297. + ;;
  44298. - exit $exit_status
  44299. - fi
  44300. + -dlopen)
  44301. + prev=dlfiles
  44302. + continue
  44303. + ;;
  44304. - if test -n "$shlibpath_var"; then
  44305. - # We should set the shlibpath_var
  44306. - rpath=
  44307. - for dir in $temp_rpath; do
  44308. - case $dir in
  44309. - [\\/]* | [A-Za-z]:[\\/]*)
  44310. - # Absolute path.
  44311. - rpath="$rpath$dir:"
  44312. - ;;
  44313. - *)
  44314. - # Relative path: add a thisdir entry.
  44315. - rpath="$rpath\$thisdir/$dir:"
  44316. - ;;
  44317. - esac
  44318. - done
  44319. - temp_rpath="$rpath"
  44320. - fi
  44321. + -dlpreopen)
  44322. + prev=dlprefiles
  44323. + continue
  44324. + ;;
  44325. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  44326. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  44327. - fi
  44328. - if test -n "$finalize_shlibpath"; then
  44329. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  44330. - fi
  44331. + -export-dynamic)
  44332. + export_dynamic=yes
  44333. + continue
  44334. + ;;
  44335. - compile_var=
  44336. - finalize_var=
  44337. - if test -n "$runpath_var"; then
  44338. - if test -n "$perm_rpath"; then
  44339. - # We should set the runpath_var.
  44340. - rpath=
  44341. - for dir in $perm_rpath; do
  44342. - rpath="$rpath$dir:"
  44343. - done
  44344. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  44345. + -export-symbols | -export-symbols-regex)
  44346. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  44347. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  44348. fi
  44349. - if test -n "$finalize_perm_rpath"; then
  44350. - # We should set the runpath_var.
  44351. - rpath=
  44352. - for dir in $finalize_perm_rpath; do
  44353. - rpath="$rpath$dir:"
  44354. - done
  44355. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  44356. + if test "X$arg" = "X-export-symbols"; then
  44357. + prev=expsyms
  44358. + else
  44359. + prev=expsyms_regex
  44360. fi
  44361. - fi
  44362. + continue
  44363. + ;;
  44364. - if test "$no_install" = yes; then
  44365. - # We don't need to create a wrapper script.
  44366. - link_command="$compile_var$compile_command$compile_rpath"
  44367. - # Replace the output file specification.
  44368. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  44369. - # Delete the old output file.
  44370. - $run $rm $output
  44371. - # Link the executable and exit
  44372. - $show "$link_command"
  44373. - $run eval "$link_command" || exit $?
  44374. - exit $EXIT_SUCCESS
  44375. - fi
  44376. + -framework)
  44377. + prev=framework
  44378. + continue
  44379. + ;;
  44380. - if test "$hardcode_action" = relink; then
  44381. - # Fast installation is not supported
  44382. - link_command="$compile_var$compile_command$compile_rpath"
  44383. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  44384. + -inst-prefix-dir)
  44385. + prev=inst_prefix
  44386. + continue
  44387. + ;;
  44388. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  44389. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  44390. - else
  44391. - if test "$fast_install" != no; then
  44392. - link_command="$finalize_var$compile_command$finalize_rpath"
  44393. - if test "$fast_install" = yes; then
  44394. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  44395. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  44396. + # so, if we see these flags be careful not to treat them like -L
  44397. + -L[A-Z][A-Z]*:*)
  44398. + case $with_gcc/$host in
  44399. + no/*-*-irix* | /*-*-irix*)
  44400. + func_append compile_command " $arg"
  44401. + func_append finalize_command " $arg"
  44402. + ;;
  44403. + esac
  44404. + continue
  44405. + ;;
  44406. +
  44407. + -L*)
  44408. + func_stripname '-L' '' "$arg"
  44409. + dir=$func_stripname_result
  44410. + if test -z "$dir"; then
  44411. + if test "$#" -gt 0; then
  44412. + func_fatal_error "require no space between \`-L' and \`$1'"
  44413. else
  44414. - # fast_install is set to needless
  44415. - relink_command=
  44416. + func_fatal_error "need path for \`-L' option"
  44417. fi
  44418. - else
  44419. - link_command="$compile_var$compile_command$compile_rpath"
  44420. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  44421. fi
  44422. - fi
  44423. + # We need an absolute path.
  44424. + case $dir in
  44425. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  44426. + *)
  44427. + absdir=`cd "$dir" && pwd`
  44428. + test -z "$absdir" && \
  44429. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  44430. + dir="$absdir"
  44431. + ;;
  44432. + esac
  44433. + case "$deplibs " in
  44434. + *" -L$dir "*) ;;
  44435. + *)
  44436. + deplibs="$deplibs -L$dir"
  44437. + lib_search_path="$lib_search_path $dir"
  44438. + ;;
  44439. + esac
  44440. + case $host in
  44441. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  44442. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  44443. + case :$dllsearchpath: in
  44444. + *":$dir:"*) ;;
  44445. + ::) dllsearchpath=$dir;;
  44446. + *) dllsearchpath="$dllsearchpath:$dir";;
  44447. + esac
  44448. + case :$dllsearchpath: in
  44449. + *":$testbindir:"*) ;;
  44450. + ::) dllsearchpath=$testbindir;;
  44451. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  44452. + esac
  44453. + ;;
  44454. + esac
  44455. + continue
  44456. + ;;
  44457. - # Replace the output file specification.
  44458. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  44459. + -l*)
  44460. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  44461. + case $host in
  44462. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  44463. + # These systems don't actually have a C or math library (as such)
  44464. + continue
  44465. + ;;
  44466. + *-*-os2*)
  44467. + # These systems don't actually have a C library (as such)
  44468. + test "X$arg" = "X-lc" && continue
  44469. + ;;
  44470. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  44471. + # Do not include libc due to us having libc/libc_r.
  44472. + test "X$arg" = "X-lc" && continue
  44473. + ;;
  44474. + *-*-rhapsody* | *-*-darwin1.[012])
  44475. + # Rhapsody C and math libraries are in the System framework
  44476. + deplibs="$deplibs System.ltframework"
  44477. + continue
  44478. + ;;
  44479. + *-*-sco3.2v5* | *-*-sco5v6*)
  44480. + # Causes problems with __ctype
  44481. + test "X$arg" = "X-lc" && continue
  44482. + ;;
  44483. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  44484. + # Compiler inserts libc in the correct place for threads to work
  44485. + test "X$arg" = "X-lc" && continue
  44486. + ;;
  44487. + esac
  44488. + elif test "X$arg" = "X-lc_r"; then
  44489. + case $host in
  44490. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  44491. + # Do not include libc_r directly, use -pthread flag.
  44492. + continue
  44493. + ;;
  44494. + esac
  44495. + fi
  44496. + deplibs="$deplibs $arg"
  44497. + continue
  44498. + ;;
  44499. - # Delete the old output files.
  44500. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  44501. + -module)
  44502. + module=yes
  44503. + continue
  44504. + ;;
  44505. - $show "$link_command"
  44506. - $run eval "$link_command" || exit $?
  44507. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  44508. + # classes, name mangling, and exception handling.
  44509. + # Darwin uses the -arch flag to determine output architecture.
  44510. + -model|-arch|-isysroot)
  44511. + compiler_flags="$compiler_flags $arg"
  44512. + func_append compile_command " $arg"
  44513. + func_append finalize_command " $arg"
  44514. + prev=xcompiler
  44515. + continue
  44516. + ;;
  44517. - # Now create the wrapper script.
  44518. - $show "creating $output"
  44519. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  44520. + compiler_flags="$compiler_flags $arg"
  44521. + func_append compile_command " $arg"
  44522. + func_append finalize_command " $arg"
  44523. + case "$new_inherited_linker_flags " in
  44524. + *" $arg "*) ;;
  44525. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  44526. + esac
  44527. + continue
  44528. + ;;
  44529. - # Quote the relink command for shipping.
  44530. - if test -n "$relink_command"; then
  44531. - # Preserve any variables that may affect compiler behavior
  44532. - for var in $variables_saved_for_relink; do
  44533. - if eval test -z \"\${$var+set}\"; then
  44534. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  44535. - elif eval var_value=\$$var; test -z "$var_value"; then
  44536. - relink_command="$var=; export $var; $relink_command"
  44537. - else
  44538. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  44539. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  44540. - fi
  44541. - done
  44542. - relink_command="(cd `pwd`; $relink_command)"
  44543. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  44544. - fi
  44545. + -multi_module)
  44546. + single_module="${wl}-multi_module"
  44547. + continue
  44548. + ;;
  44549. - # Quote $echo for shipping.
  44550. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  44551. - case $progpath in
  44552. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  44553. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  44554. - esac
  44555. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  44556. - else
  44557. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  44558. - fi
  44559. + -no-fast-install)
  44560. + fast_install=no
  44561. + continue
  44562. + ;;
  44563. - # Only actually do things if our run command is non-null.
  44564. - if test -z "$run"; then
  44565. - # win32 will think the script is a binary if it has
  44566. - # a .exe suffix, so we strip it off here.
  44567. - case $output in
  44568. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  44569. - esac
  44570. - # test for cygwin because mv fails w/o .exe extensions
  44571. + -no-install)
  44572. case $host in
  44573. - *cygwin*)
  44574. - exeext=.exe
  44575. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  44576. - *) exeext= ;;
  44577. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  44578. + # The PATH hackery in wrapper scripts is required on Windows
  44579. + # and Darwin in order for the loader to find any dlls it needs.
  44580. + func_warning "\`-no-install' is ignored for $host"
  44581. + func_warning "assuming \`-no-fast-install' instead"
  44582. + fast_install=no
  44583. + ;;
  44584. + *) no_install=yes ;;
  44585. esac
  44586. - case $host in
  44587. - *cygwin* | *mingw* )
  44588. - output_name=`basename $output`
  44589. - output_path=`dirname $output`
  44590. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  44591. - cwrapper="$output_path/$output_name.exe"
  44592. - $rm $cwrappersource $cwrapper
  44593. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  44594. -
  44595. - cat > $cwrappersource <<EOF
  44596. + continue
  44597. + ;;
  44598. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  44599. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  44600. + -no-undefined)
  44601. + allow_undefined=no
  44602. + continue
  44603. + ;;
  44604. - The $output program cannot be directly executed until all the libtool
  44605. - libraries that it depends on are installed.
  44606. + -objectlist)
  44607. + prev=objectlist
  44608. + continue
  44609. + ;;
  44610. - This wrapper executable should never be moved out of the build directory.
  44611. - If it is, it will not operate correctly.
  44612. + -o) prev=output ;;
  44613. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  44614. - but could eventually absorb all of the scripts functionality and
  44615. - exec $objdir/$outputname directly.
  44616. -*/
  44617. -EOF
  44618. - cat >> $cwrappersource<<"EOF"
  44619. -#include <stdio.h>
  44620. -#include <stdlib.h>
  44621. -#include <unistd.h>
  44622. -#include <malloc.h>
  44623. -#include <stdarg.h>
  44624. -#include <assert.h>
  44625. -#include <string.h>
  44626. -#include <ctype.h>
  44627. -#include <sys/stat.h>
  44628. + -precious-files-regex)
  44629. + prev=precious_regex
  44630. + continue
  44631. + ;;
  44632. -#if defined(PATH_MAX)
  44633. -# define LT_PATHMAX PATH_MAX
  44634. -#elif defined(MAXPATHLEN)
  44635. -# define LT_PATHMAX MAXPATHLEN
  44636. -#else
  44637. -# define LT_PATHMAX 1024
  44638. -#endif
  44639. + -release)
  44640. + prev=release
  44641. + continue
  44642. + ;;
  44643. -#ifndef DIR_SEPARATOR
  44644. -# define DIR_SEPARATOR '/'
  44645. -# define PATH_SEPARATOR ':'
  44646. -#endif
  44647. + -rpath)
  44648. + prev=rpath
  44649. + continue
  44650. + ;;
  44651. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  44652. - defined (__OS2__)
  44653. -# define HAVE_DOS_BASED_FILE_SYSTEM
  44654. -# ifndef DIR_SEPARATOR_2
  44655. -# define DIR_SEPARATOR_2 '\\'
  44656. -# endif
  44657. -# ifndef PATH_SEPARATOR_2
  44658. -# define PATH_SEPARATOR_2 ';'
  44659. -# endif
  44660. -#endif
  44661. + -R)
  44662. + prev=xrpath
  44663. + continue
  44664. + ;;
  44665. -#ifndef DIR_SEPARATOR_2
  44666. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  44667. -#else /* DIR_SEPARATOR_2 */
  44668. -# define IS_DIR_SEPARATOR(ch) \
  44669. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  44670. -#endif /* DIR_SEPARATOR_2 */
  44671. + -R*)
  44672. + func_stripname '-R' '' "$arg"
  44673. + dir=$func_stripname_result
  44674. + # We need an absolute path.
  44675. + case $dir in
  44676. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  44677. + *)
  44678. + func_fatal_error "only absolute run-paths are allowed"
  44679. + ;;
  44680. + esac
  44681. + case "$xrpath " in
  44682. + *" $dir "*) ;;
  44683. + *) xrpath="$xrpath $dir" ;;
  44684. + esac
  44685. + continue
  44686. + ;;
  44687. -#ifndef PATH_SEPARATOR_2
  44688. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  44689. -#else /* PATH_SEPARATOR_2 */
  44690. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  44691. -#endif /* PATH_SEPARATOR_2 */
  44692. + -shared)
  44693. + # The effects of -shared are defined in a previous loop.
  44694. + continue
  44695. + ;;
  44696. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  44697. -#define XFREE(stale) do { \
  44698. - if (stale) { free ((void *) stale); stale = 0; } \
  44699. -} while (0)
  44700. + -shrext)
  44701. + prev=shrext
  44702. + continue
  44703. + ;;
  44704. -/* -DDEBUG is fairly common in CFLAGS. */
  44705. -#undef DEBUG
  44706. -#if defined DEBUGWRAPPER
  44707. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  44708. -#else
  44709. -# define DEBUG(format, ...)
  44710. -#endif
  44711. + -static | -static-libtool-libs)
  44712. + # The effects of -static are defined in a previous loop.
  44713. + # We used to do the same as -all-static on platforms that
  44714. + # didn't have a PIC flag, but the assumption that the effects
  44715. + # would be equivalent was wrong. It would break on at least
  44716. + # Digital Unix and AIX.
  44717. + continue
  44718. + ;;
  44719. -const char *program_name = NULL;
  44720. + -thread-safe)
  44721. + thread_safe=yes
  44722. + continue
  44723. + ;;
  44724. -void * xmalloc (size_t num);
  44725. -char * xstrdup (const char *string);
  44726. -const char * base_name (const char *name);
  44727. -char * find_executable(const char *wrapper);
  44728. -int check_executable(const char *path);
  44729. -char * strendzap(char *str, const char *pat);
  44730. -void lt_fatal (const char *message, ...);
  44731. + -version-info)
  44732. + prev=vinfo
  44733. + continue
  44734. + ;;
  44735. -int
  44736. -main (int argc, char *argv[])
  44737. -{
  44738. - char **newargz;
  44739. - int i;
  44740. + -version-number)
  44741. + prev=vinfo
  44742. + vinfo_number=yes
  44743. + continue
  44744. + ;;
  44745. - program_name = (char *) xstrdup (base_name (argv[0]));
  44746. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  44747. - DEBUG("(main) program_name : %s\n",program_name);
  44748. - newargz = XMALLOC(char *, argc+2);
  44749. -EOF
  44750. + -weak)
  44751. + prev=weak
  44752. + continue
  44753. + ;;
  44754. - cat >> $cwrappersource <<EOF
  44755. - newargz[0] = (char *) xstrdup("$SHELL");
  44756. -EOF
  44757. + -Wc,*)
  44758. + func_stripname '-Wc,' '' "$arg"
  44759. + args=$func_stripname_result
  44760. + arg=
  44761. + save_ifs="$IFS"; IFS=','
  44762. + for flag in $args; do
  44763. + IFS="$save_ifs"
  44764. + func_quote_for_eval "$flag"
  44765. + arg="$arg $wl$func_quote_for_eval_result"
  44766. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  44767. + done
  44768. + IFS="$save_ifs"
  44769. + func_stripname ' ' '' "$arg"
  44770. + arg=$func_stripname_result
  44771. + ;;
  44772. - cat >> $cwrappersource <<"EOF"
  44773. - newargz[1] = find_executable(argv[0]);
  44774. - if (newargz[1] == NULL)
  44775. - lt_fatal("Couldn't find %s", argv[0]);
  44776. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  44777. - /* we know the script has the same name, without the .exe */
  44778. - /* so make sure newargz[1] doesn't end in .exe */
  44779. - strendzap(newargz[1],".exe");
  44780. - for (i = 1; i < argc; i++)
  44781. - newargz[i+1] = xstrdup(argv[i]);
  44782. - newargz[argc+1] = NULL;
  44783. + -Wl,*)
  44784. + func_stripname '-Wl,' '' "$arg"
  44785. + args=$func_stripname_result
  44786. + arg=
  44787. + save_ifs="$IFS"; IFS=','
  44788. + for flag in $args; do
  44789. + IFS="$save_ifs"
  44790. + func_quote_for_eval "$flag"
  44791. + arg="$arg $wl$func_quote_for_eval_result"
  44792. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  44793. + linker_flags="$linker_flags $func_quote_for_eval_result"
  44794. + done
  44795. + IFS="$save_ifs"
  44796. + func_stripname ' ' '' "$arg"
  44797. + arg=$func_stripname_result
  44798. + ;;
  44799. - for (i=0; i<argc+1; i++)
  44800. - {
  44801. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  44802. - ;
  44803. - }
  44804. + -Xcompiler)
  44805. + prev=xcompiler
  44806. + continue
  44807. + ;;
  44808. -EOF
  44809. + -Xlinker)
  44810. + prev=xlinker
  44811. + continue
  44812. + ;;
  44813. - case $host_os in
  44814. - mingw*)
  44815. - cat >> $cwrappersource <<EOF
  44816. - execv("$SHELL",(char const **)newargz);
  44817. -EOF
  44818. - ;;
  44819. - *)
  44820. - cat >> $cwrappersource <<EOF
  44821. - execv("$SHELL",newargz);
  44822. -EOF
  44823. - ;;
  44824. - esac
  44825. + -XCClinker)
  44826. + prev=xcclinker
  44827. + continue
  44828. + ;;
  44829. - cat >> $cwrappersource <<"EOF"
  44830. - return 127;
  44831. -}
  44832. + # -msg_* for osf cc
  44833. + -msg_*)
  44834. + func_quote_for_eval "$arg"
  44835. + arg="$func_quote_for_eval_result"
  44836. + ;;
  44837. -void *
  44838. -xmalloc (size_t num)
  44839. -{
  44840. - void * p = (void *) malloc (num);
  44841. - if (!p)
  44842. - lt_fatal ("Memory exhausted");
  44843. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  44844. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  44845. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  44846. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  44847. + # -q* pass through compiler args for the IBM compiler
  44848. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  44849. + # compiler args for GCC
  44850. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  44851. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  44852. + # @file GCC response files
  44853. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  44854. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  44855. + func_quote_for_eval "$arg"
  44856. + arg="$func_quote_for_eval_result"
  44857. + func_append compile_command " $arg"
  44858. + func_append finalize_command " $arg"
  44859. + compiler_flags="$compiler_flags $arg"
  44860. + continue
  44861. + ;;
  44862. - return p;
  44863. -}
  44864. + # Some other compiler flag.
  44865. + -* | +*)
  44866. + func_quote_for_eval "$arg"
  44867. + arg="$func_quote_for_eval_result"
  44868. + ;;
  44869. -char *
  44870. -xstrdup (const char *string)
  44871. -{
  44872. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  44873. -;
  44874. -}
  44875. + *.$objext)
  44876. + # A standard object.
  44877. + objs="$objs $arg"
  44878. + ;;
  44879. -const char *
  44880. -base_name (const char *name)
  44881. -{
  44882. - const char *base;
  44883. + *.lo)
  44884. + # A libtool-controlled object.
  44885. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  44886. - /* Skip over the disk name in MSDOS pathnames. */
  44887. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  44888. - name += 2;
  44889. -#endif
  44890. + # Check to see that this really is a libtool object.
  44891. + if func_lalib_unsafe_p "$arg"; then
  44892. + pic_object=
  44893. + non_pic_object=
  44894. - for (base = name; *name; name++)
  44895. - if (IS_DIR_SEPARATOR (*name))
  44896. - base = name + 1;
  44897. - return base;
  44898. -}
  44899. + # Read the .lo file
  44900. + func_source "$arg"
  44901. -int
  44902. -check_executable(const char * path)
  44903. -{
  44904. - struct stat st;
  44905. + if test -z "$pic_object" ||
  44906. + test -z "$non_pic_object" ||
  44907. + test "$pic_object" = none &&
  44908. + test "$non_pic_object" = none; then
  44909. + func_fatal_error "cannot find name of object for \`$arg'"
  44910. + fi
  44911. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  44912. - if ((!path) || (!*path))
  44913. - return 0;
  44914. + # Extract subdirectory from the argument.
  44915. + func_dirname "$arg" "/" ""
  44916. + xdir="$func_dirname_result"
  44917. - if ((stat (path, &st) >= 0) &&
  44918. - (
  44919. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  44920. -#if defined (S_IXOTH)
  44921. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  44922. -#endif
  44923. -#if defined (S_IXGRP)
  44924. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  44925. -#endif
  44926. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  44927. - )
  44928. - return 1;
  44929. - else
  44930. - return 0;
  44931. -}
  44932. + if test "$pic_object" != none; then
  44933. + # Prepend the subdirectory the object is found in.
  44934. + pic_object="$xdir$pic_object"
  44935. -/* Searches for the full path of the wrapper. Returns
  44936. - newly allocated full path name if found, NULL otherwise */
  44937. -char *
  44938. -find_executable (const char* wrapper)
  44939. -{
  44940. - int has_slash = 0;
  44941. - const char* p;
  44942. - const char* p_next;
  44943. - /* static buffer for getcwd */
  44944. - char tmp[LT_PATHMAX + 1];
  44945. - int tmp_len;
  44946. - char* concat_name;
  44947. + if test "$prev" = dlfiles; then
  44948. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  44949. + dlfiles="$dlfiles $pic_object"
  44950. + prev=
  44951. + continue
  44952. + else
  44953. + # If libtool objects are unsupported, then we need to preload.
  44954. + prev=dlprefiles
  44955. + fi
  44956. + fi
  44957. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  44958. + # CHECK ME: I think I busted this. -Ossama
  44959. + if test "$prev" = dlprefiles; then
  44960. + # Preload the old-style object.
  44961. + dlprefiles="$dlprefiles $pic_object"
  44962. + prev=
  44963. + fi
  44964. - if ((wrapper == NULL) || (*wrapper == '\0'))
  44965. - return NULL;
  44966. + # A PIC object.
  44967. + func_append libobjs " $pic_object"
  44968. + arg="$pic_object"
  44969. + fi
  44970. - /* Absolute path? */
  44971. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  44972. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  44973. - {
  44974. - concat_name = xstrdup (wrapper);
  44975. - if (check_executable(concat_name))
  44976. - return concat_name;
  44977. - XFREE(concat_name);
  44978. - }
  44979. - else
  44980. - {
  44981. -#endif
  44982. - if (IS_DIR_SEPARATOR (wrapper[0]))
  44983. - {
  44984. - concat_name = xstrdup (wrapper);
  44985. - if (check_executable(concat_name))
  44986. - return concat_name;
  44987. - XFREE(concat_name);
  44988. - }
  44989. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  44990. - }
  44991. -#endif
  44992. + # Non-PIC object.
  44993. + if test "$non_pic_object" != none; then
  44994. + # Prepend the subdirectory the object is found in.
  44995. + non_pic_object="$xdir$non_pic_object"
  44996. - for (p = wrapper; *p; p++)
  44997. - if (*p == '/')
  44998. - {
  44999. - has_slash = 1;
  45000. - break;
  45001. - }
  45002. - if (!has_slash)
  45003. - {
  45004. - /* no slashes; search PATH */
  45005. - const char* path = getenv ("PATH");
  45006. - if (path != NULL)
  45007. - {
  45008. - for (p = path; *p; p = p_next)
  45009. - {
  45010. - const char* q;
  45011. - size_t p_len;
  45012. - for (q = p; *q; q++)
  45013. - if (IS_PATH_SEPARATOR(*q))
  45014. - break;
  45015. - p_len = q - p;
  45016. - p_next = (*q == '\0' ? q : q + 1);
  45017. - if (p_len == 0)
  45018. - {
  45019. - /* empty path: current directory */
  45020. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  45021. - lt_fatal ("getcwd failed");
  45022. - tmp_len = strlen(tmp);
  45023. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  45024. - memcpy (concat_name, tmp, tmp_len);
  45025. - concat_name[tmp_len] = '/';
  45026. - strcpy (concat_name + tmp_len + 1, wrapper);
  45027. - }
  45028. - else
  45029. - {
  45030. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  45031. - memcpy (concat_name, p, p_len);
  45032. - concat_name[p_len] = '/';
  45033. - strcpy (concat_name + p_len + 1, wrapper);
  45034. - }
  45035. - if (check_executable(concat_name))
  45036. - return concat_name;
  45037. - XFREE(concat_name);
  45038. - }
  45039. - }
  45040. - /* not found in PATH; assume curdir */
  45041. - }
  45042. - /* Relative path | not found in path: prepend cwd */
  45043. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  45044. - lt_fatal ("getcwd failed");
  45045. - tmp_len = strlen(tmp);
  45046. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  45047. - memcpy (concat_name, tmp, tmp_len);
  45048. - concat_name[tmp_len] = '/';
  45049. - strcpy (concat_name + tmp_len + 1, wrapper);
  45050. + # A standard non-PIC object
  45051. + func_append non_pic_objects " $non_pic_object"
  45052. + if test -z "$pic_object" || test "$pic_object" = none ; then
  45053. + arg="$non_pic_object"
  45054. + fi
  45055. + else
  45056. + # If the PIC object exists, use it instead.
  45057. + # $xdir was prepended to $pic_object above.
  45058. + non_pic_object="$pic_object"
  45059. + func_append non_pic_objects " $non_pic_object"
  45060. + fi
  45061. + else
  45062. + # Only an error if not doing a dry-run.
  45063. + if $opt_dry_run; then
  45064. + # Extract subdirectory from the argument.
  45065. + func_dirname "$arg" "/" ""
  45066. + xdir="$func_dirname_result"
  45067. - if (check_executable(concat_name))
  45068. - return concat_name;
  45069. - XFREE(concat_name);
  45070. - return NULL;
  45071. -}
  45072. + func_lo2o "$arg"
  45073. + pic_object=$xdir$objdir/$func_lo2o_result
  45074. + non_pic_object=$xdir$func_lo2o_result
  45075. + func_append libobjs " $pic_object"
  45076. + func_append non_pic_objects " $non_pic_object"
  45077. + else
  45078. + func_fatal_error "\`$arg' is not a valid libtool object"
  45079. + fi
  45080. + fi
  45081. + ;;
  45082. -char *
  45083. -strendzap(char *str, const char *pat)
  45084. -{
  45085. - size_t len, patlen;
  45086. + *.$libext)
  45087. + # An archive.
  45088. + deplibs="$deplibs $arg"
  45089. + old_deplibs="$old_deplibs $arg"
  45090. + continue
  45091. + ;;
  45092. - assert(str != NULL);
  45093. - assert(pat != NULL);
  45094. + *.la)
  45095. + # A libtool-controlled library.
  45096. - len = strlen(str);
  45097. - patlen = strlen(pat);
  45098. + if test "$prev" = dlfiles; then
  45099. + # This library was specified with -dlopen.
  45100. + dlfiles="$dlfiles $arg"
  45101. + prev=
  45102. + elif test "$prev" = dlprefiles; then
  45103. + # The library was specified with -dlpreopen.
  45104. + dlprefiles="$dlprefiles $arg"
  45105. + prev=
  45106. + else
  45107. + deplibs="$deplibs $arg"
  45108. + fi
  45109. + continue
  45110. + ;;
  45111. - if (patlen <= len)
  45112. - {
  45113. - str += len - patlen;
  45114. - if (strcmp(str, pat) == 0)
  45115. - *str = '\0';
  45116. - }
  45117. - return str;
  45118. -}
  45119. + # Some other compiler argument.
  45120. + *)
  45121. + # Unknown arguments in both finalize_command and compile_command need
  45122. + # to be aesthetically quoted because they are evaled later.
  45123. + func_quote_for_eval "$arg"
  45124. + arg="$func_quote_for_eval_result"
  45125. + ;;
  45126. + esac # arg
  45127. -static void
  45128. -lt_error_core (int exit_status, const char * mode,
  45129. - const char * message, va_list ap)
  45130. -{
  45131. - fprintf (stderr, "%s: %s: ", program_name, mode);
  45132. - vfprintf (stderr, message, ap);
  45133. - fprintf (stderr, ".\n");
  45134. + # Now actually substitute the argument into the commands.
  45135. + if test -n "$arg"; then
  45136. + func_append compile_command " $arg"
  45137. + func_append finalize_command " $arg"
  45138. + fi
  45139. + done # argument parsing loop
  45140. - if (exit_status >= 0)
  45141. - exit (exit_status);
  45142. -}
  45143. + test -n "$prev" && \
  45144. + func_fatal_help "the \`$prevarg' option requires an argument"
  45145. -void
  45146. -lt_fatal (const char *message, ...)
  45147. -{
  45148. - va_list ap;
  45149. - va_start (ap, message);
  45150. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  45151. - va_end (ap);
  45152. -}
  45153. -EOF
  45154. - # we should really use a build-platform specific compiler
  45155. - # here, but OTOH, the wrappers (shell script and this C one)
  45156. - # are only useful if you want to execute the "real" binary.
  45157. - # Since the "real" binary is built for $host, then this
  45158. - # wrapper might as well be built for $host, too.
  45159. - $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  45160. - ;;
  45161. - esac
  45162. - $rm $output
  45163. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  45164. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  45165. + eval arg=\"$export_dynamic_flag_spec\"
  45166. + func_append compile_command " $arg"
  45167. + func_append finalize_command " $arg"
  45168. + fi
  45169. - $echo > $output "\
  45170. -#! $SHELL
  45171. + oldlibs=
  45172. + # calculate the name of the file, without its directory
  45173. + func_basename "$output"
  45174. + outputname="$func_basename_result"
  45175. + libobjs_save="$libobjs"
  45176. -# $output - temporary wrapper script for $objdir/$outputname
  45177. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  45178. -#
  45179. -# The $output program cannot be directly executed until all the libtool
  45180. -# libraries that it depends on are installed.
  45181. -#
  45182. -# This wrapper script should never be moved out of the build directory.
  45183. -# If it is, it will not operate correctly.
  45184. + if test -n "$shlibpath_var"; then
  45185. + # get the directories listed in $shlibpath_var
  45186. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  45187. + else
  45188. + shlib_search_path=
  45189. + fi
  45190. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  45191. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  45192. -# Sed substitution that helps us do robust quoting. It backslashifies
  45193. -# metacharacters that are still active within double-quoted strings.
  45194. -Xsed='${SED} -e 1s/^X//'
  45195. -sed_quote_subst='$sed_quote_subst'
  45196. + func_dirname "$output" "/" ""
  45197. + output_objdir="$func_dirname_result$objdir"
  45198. + # Create the object directory.
  45199. + func_mkdir_p "$output_objdir"
  45200. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  45201. -# if CDPATH is set.
  45202. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  45203. + # Determine the type of output
  45204. + case $output in
  45205. + "")
  45206. + func_fatal_help "you must specify an output file"
  45207. + ;;
  45208. + *.$libext) linkmode=oldlib ;;
  45209. + *.lo | *.$objext) linkmode=obj ;;
  45210. + *.la) linkmode=lib ;;
  45211. + *) linkmode=prog ;; # Anything else should be a program.
  45212. + esac
  45213. -relink_command=\"$relink_command\"
  45214. + specialdeplibs=
  45215. -# This environment variable determines our operation mode.
  45216. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  45217. - # install mode needs the following variable:
  45218. - notinst_deplibs='$notinst_deplibs'
  45219. -else
  45220. - # When we are sourced in execute mode, \$file and \$echo are already set.
  45221. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  45222. - echo=\"$qecho\"
  45223. - file=\"\$0\"
  45224. - # Make sure echo works.
  45225. - if test \"X\$1\" = X--no-reexec; then
  45226. - # Discard the --no-reexec flag, and continue.
  45227. - shift
  45228. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  45229. - # Yippee, \$echo works!
  45230. - :
  45231. - else
  45232. - # Restart under the correct shell, and then maybe \$echo will work.
  45233. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  45234. + libs=
  45235. + # Find all interdependent deplibs by searching for libraries
  45236. + # that are linked more than once (e.g. -la -lb -la)
  45237. + for deplib in $deplibs; do
  45238. + if $opt_duplicate_deps ; then
  45239. + case "$libs " in
  45240. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45241. + esac
  45242. + fi
  45243. + libs="$libs $deplib"
  45244. + done
  45245. +
  45246. + if test "$linkmode" = lib; then
  45247. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  45248. +
  45249. + # Compute libraries that are listed more than once in $predeps
  45250. + # $postdeps and mark them as special (i.e., whose duplicates are
  45251. + # not to be eliminated).
  45252. + pre_post_deps=
  45253. + if $opt_duplicate_compiler_generated_deps; then
  45254. + for pre_post_dep in $predeps $postdeps; do
  45255. + case "$pre_post_deps " in
  45256. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  45257. + esac
  45258. + pre_post_deps="$pre_post_deps $pre_post_dep"
  45259. + done
  45260. + fi
  45261. + pre_post_deps=
  45262. fi
  45263. - fi\
  45264. -"
  45265. - $echo >> $output "\
  45266. - # Find the directory that this script lives in.
  45267. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  45268. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  45269. + deplibs=
  45270. + newdependency_libs=
  45271. + newlib_search_path=
  45272. + need_relink=no # whether we're linking any uninstalled libtool libraries
  45273. + notinst_deplibs= # not-installed libtool libraries
  45274. + notinst_path= # paths that contain not-installed libtool libraries
  45275. - # Follow symbolic links until we get to the real thisdir.
  45276. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  45277. - while test -n \"\$file\"; do
  45278. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  45279. + case $linkmode in
  45280. + lib)
  45281. + passes="conv dlpreopen link"
  45282. + for file in $dlfiles $dlprefiles; do
  45283. + case $file in
  45284. + *.la) ;;
  45285. + *)
  45286. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  45287. + ;;
  45288. + esac
  45289. + done
  45290. + ;;
  45291. + prog)
  45292. + compile_deplibs=
  45293. + finalize_deplibs=
  45294. + alldeplibs=no
  45295. + newdlfiles=
  45296. + newdlprefiles=
  45297. + passes="conv scan dlopen dlpreopen link"
  45298. + ;;
  45299. + *) passes="conv"
  45300. + ;;
  45301. + esac
  45302. - # If there was a directory component, then change thisdir.
  45303. - if test \"x\$destdir\" != \"x\$file\"; then
  45304. - case \"\$destdir\" in
  45305. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  45306. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  45307. - esac
  45308. - fi
  45309. + for pass in $passes; do
  45310. + # The preopen pass in lib mode reverses $deplibs; put it back here
  45311. + # so that -L comes before libs that need it for instance...
  45312. + if test "$linkmode,$pass" = "lib,link"; then
  45313. + ## FIXME: Find the place where the list is rebuilt in the wrong
  45314. + ## order, and fix it there properly
  45315. + tmp_deplibs=
  45316. + for deplib in $deplibs; do
  45317. + tmp_deplibs="$deplib $tmp_deplibs"
  45318. + done
  45319. + deplibs="$tmp_deplibs"
  45320. + fi
  45321. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  45322. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  45323. - done
  45324. + if test "$linkmode,$pass" = "lib,link" ||
  45325. + test "$linkmode,$pass" = "prog,scan"; then
  45326. + libs="$deplibs"
  45327. + deplibs=
  45328. + fi
  45329. + if test "$linkmode" = prog; then
  45330. + case $pass in
  45331. + dlopen) libs="$dlfiles" ;;
  45332. + dlpreopen) libs="$dlprefiles" ;;
  45333. + link)
  45334. + libs="$deplibs %DEPLIBS%"
  45335. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  45336. + ;;
  45337. + esac
  45338. + fi
  45339. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  45340. + # Collect and forward deplibs of preopened libtool libs
  45341. + for lib in $dlprefiles; do
  45342. + # Ignore non-libtool-libs
  45343. + dependency_libs=
  45344. + case $lib in
  45345. + *.la) func_source "$lib" ;;
  45346. + esac
  45347. +
  45348. + # Collect preopened libtool deplibs, except any this library
  45349. + # has declared as weak libs
  45350. + for deplib in $dependency_libs; do
  45351. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  45352. + case " $weak_libs " in
  45353. + *" $deplib_base "*) ;;
  45354. + *) deplibs="$deplibs $deplib" ;;
  45355. + esac
  45356. + done
  45357. + done
  45358. + libs="$dlprefiles"
  45359. + fi
  45360. + if test "$pass" = dlopen; then
  45361. + # Collect dlpreopened libraries
  45362. + save_deplibs="$deplibs"
  45363. + deplibs=
  45364. + fi
  45365. +
  45366. + for deplib in $libs; do
  45367. + lib=
  45368. + found=no
  45369. + case $deplib in
  45370. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  45371. + if test "$linkmode,$pass" = "prog,link"; then
  45372. + compile_deplibs="$deplib $compile_deplibs"
  45373. + finalize_deplibs="$deplib $finalize_deplibs"
  45374. + else
  45375. + compiler_flags="$compiler_flags $deplib"
  45376. + if test "$linkmode" = lib ; then
  45377. + case "$new_inherited_linker_flags " in
  45378. + *" $deplib "*) ;;
  45379. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  45380. + esac
  45381. + fi
  45382. + fi
  45383. + continue
  45384. + ;;
  45385. + -l*)
  45386. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  45387. + func_warning "\`-l' is ignored for archives/objects"
  45388. + continue
  45389. + fi
  45390. + func_stripname '-l' '' "$deplib"
  45391. + name=$func_stripname_result
  45392. + if test "$linkmode" = lib; then
  45393. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  45394. + else
  45395. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  45396. + fi
  45397. + for searchdir in $searchdirs; do
  45398. + for search_ext in .la $std_shrext .so .a; do
  45399. + # Search the libtool library
  45400. + lib="$searchdir/lib${name}${search_ext}"
  45401. + if test -f "$lib"; then
  45402. + if test "$search_ext" = ".la"; then
  45403. + found=yes
  45404. + else
  45405. + found=no
  45406. + fi
  45407. + break 2
  45408. + fi
  45409. + done
  45410. + done
  45411. + if test "$found" != yes; then
  45412. + # deplib doesn't seem to be a libtool library
  45413. + if test "$linkmode,$pass" = "prog,link"; then
  45414. + compile_deplibs="$deplib $compile_deplibs"
  45415. + finalize_deplibs="$deplib $finalize_deplibs"
  45416. + else
  45417. + deplibs="$deplib $deplibs"
  45418. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  45419. + fi
  45420. + continue
  45421. + else # deplib is a libtool library
  45422. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  45423. + # We need to do some special things here, and not later.
  45424. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  45425. + case " $predeps $postdeps " in
  45426. + *" $deplib "*)
  45427. + if func_lalib_p "$lib"; then
  45428. + library_names=
  45429. + old_library=
  45430. + func_source "$lib"
  45431. + for l in $old_library $library_names; do
  45432. + ll="$l"
  45433. + done
  45434. + if test "X$ll" = "X$old_library" ; then # only static version available
  45435. + found=no
  45436. + func_dirname "$lib" "" "."
  45437. + ladir="$func_dirname_result"
  45438. + lib=$ladir/$old_library
  45439. + if test "$linkmode,$pass" = "prog,link"; then
  45440. + compile_deplibs="$deplib $compile_deplibs"
  45441. + finalize_deplibs="$deplib $finalize_deplibs"
  45442. + else
  45443. + deplibs="$deplib $deplibs"
  45444. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  45445. + fi
  45446. + continue
  45447. + fi
  45448. + fi
  45449. + ;;
  45450. + *) ;;
  45451. + esac
  45452. + fi
  45453. + fi
  45454. + ;; # -l
  45455. + *.ltframework)
  45456. + if test "$linkmode,$pass" = "prog,link"; then
  45457. + compile_deplibs="$deplib $compile_deplibs"
  45458. + finalize_deplibs="$deplib $finalize_deplibs"
  45459. + else
  45460. + deplibs="$deplib $deplibs"
  45461. + if test "$linkmode" = lib ; then
  45462. + case "$new_inherited_linker_flags " in
  45463. + *" $deplib "*) ;;
  45464. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  45465. + esac
  45466. + fi
  45467. + fi
  45468. + continue
  45469. + ;;
  45470. + -L*)
  45471. + case $linkmode in
  45472. + lib)
  45473. + deplibs="$deplib $deplibs"
  45474. + test "$pass" = conv && continue
  45475. + newdependency_libs="$deplib $newdependency_libs"
  45476. + func_stripname '-L' '' "$deplib"
  45477. + newlib_search_path="$newlib_search_path $func_stripname_result"
  45478. + ;;
  45479. + prog)
  45480. + if test "$pass" = conv; then
  45481. + deplibs="$deplib $deplibs"
  45482. + continue
  45483. + fi
  45484. + if test "$pass" = scan; then
  45485. + deplibs="$deplib $deplibs"
  45486. + else
  45487. + compile_deplibs="$deplib $compile_deplibs"
  45488. + finalize_deplibs="$deplib $finalize_deplibs"
  45489. + fi
  45490. + func_stripname '-L' '' "$deplib"
  45491. + newlib_search_path="$newlib_search_path $func_stripname_result"
  45492. + ;;
  45493. + *)
  45494. + func_warning "\`-L' is ignored for archives/objects"
  45495. + ;;
  45496. + esac # linkmode
  45497. + continue
  45498. + ;; # -L
  45499. + -R*)
  45500. + if test "$pass" = link; then
  45501. + func_stripname '-R' '' "$deplib"
  45502. + dir=$func_stripname_result
  45503. + # Make sure the xrpath contains only unique directories.
  45504. + case "$xrpath " in
  45505. + *" $dir "*) ;;
  45506. + *) xrpath="$xrpath $dir" ;;
  45507. + esac
  45508. + fi
  45509. + deplibs="$deplib $deplibs"
  45510. + continue
  45511. + ;;
  45512. + *.la) lib="$deplib" ;;
  45513. + *.$libext)
  45514. + if test "$pass" = conv; then
  45515. + deplibs="$deplib $deplibs"
  45516. + continue
  45517. + fi
  45518. + case $linkmode in
  45519. + lib)
  45520. + # Linking convenience modules into shared libraries is allowed,
  45521. + # but linking other static libraries is non-portable.
  45522. + case " $dlpreconveniencelibs " in
  45523. + *" $deplib "*) ;;
  45524. + *)
  45525. + valid_a_lib=no
  45526. + case $deplibs_check_method in
  45527. + match_pattern*)
  45528. + set dummy $deplibs_check_method; shift
  45529. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  45530. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  45531. + | $EGREP "$match_pattern_regex" > /dev/null; then
  45532. + valid_a_lib=yes
  45533. + fi
  45534. + ;;
  45535. + pass_all)
  45536. + valid_a_lib=yes
  45537. + ;;
  45538. + esac
  45539. + if test "$valid_a_lib" != yes; then
  45540. + $ECHO
  45541. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  45542. + $ECHO "*** I have the capability to make that library automatically link in when"
  45543. + $ECHO "*** you link to this library. But I can only do this if you have a"
  45544. + $ECHO "*** shared version of the library, which you do not appear to have"
  45545. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  45546. + $ECHO "*** that it is just a static archive that I should not use here."
  45547. + else
  45548. + $ECHO
  45549. + $ECHO "*** Warning: Linking the shared library $output against the"
  45550. + $ECHO "*** static library $deplib is not portable!"
  45551. + deplibs="$deplib $deplibs"
  45552. + fi
  45553. + ;;
  45554. + esac
  45555. + continue
  45556. + ;;
  45557. + prog)
  45558. + if test "$pass" != link; then
  45559. + deplibs="$deplib $deplibs"
  45560. + else
  45561. + compile_deplibs="$deplib $compile_deplibs"
  45562. + finalize_deplibs="$deplib $finalize_deplibs"
  45563. + fi
  45564. + continue
  45565. + ;;
  45566. + esac # linkmode
  45567. + ;; # *.$libext
  45568. + *.lo | *.$objext)
  45569. + if test "$pass" = conv; then
  45570. + deplibs="$deplib $deplibs"
  45571. + elif test "$linkmode" = prog; then
  45572. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  45573. + # If there is no dlopen support or we're linking statically,
  45574. + # we need to preload.
  45575. + newdlprefiles="$newdlprefiles $deplib"
  45576. + compile_deplibs="$deplib $compile_deplibs"
  45577. + finalize_deplibs="$deplib $finalize_deplibs"
  45578. + else
  45579. + newdlfiles="$newdlfiles $deplib"
  45580. + fi
  45581. + fi
  45582. + continue
  45583. + ;;
  45584. + %DEPLIBS%)
  45585. + alldeplibs=yes
  45586. + continue
  45587. + ;;
  45588. + esac # case $deplib
  45589. +
  45590. + if test "$found" = yes || test -f "$lib"; then :
  45591. + else
  45592. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  45593. + fi
  45594. +
  45595. + # Check to see that this really is a libtool archive.
  45596. + func_lalib_unsafe_p "$lib" \
  45597. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  45598. +
  45599. + func_dirname "$lib" "" "."
  45600. + ladir="$func_dirname_result"
  45601. +
  45602. + dlname=
  45603. + dlopen=
  45604. + dlpreopen=
  45605. + libdir=
  45606. + library_names=
  45607. + old_library=
  45608. + inherited_linker_flags=
  45609. + # If the library was installed with an old release of libtool,
  45610. + # it will not redefine variables installed, or shouldnotlink
  45611. + installed=yes
  45612. + shouldnotlink=no
  45613. + avoidtemprpath=
  45614. +
  45615. +
  45616. + # Read the .la file
  45617. + func_source "$lib"
  45618. +
  45619. + # Convert "-framework foo" to "foo.ltframework"
  45620. + if test -n "$inherited_linker_flags"; then
  45621. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  45622. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  45623. + case " $new_inherited_linker_flags " in
  45624. + *" $tmp_inherited_linker_flag "*) ;;
  45625. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  45626. + esac
  45627. + done
  45628. + fi
  45629. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  45630. + if test "$linkmode,$pass" = "lib,link" ||
  45631. + test "$linkmode,$pass" = "prog,scan" ||
  45632. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  45633. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  45634. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  45635. + fi
  45636. +
  45637. + if test "$pass" = conv; then
  45638. + # Only check for convenience libraries
  45639. + deplibs="$lib $deplibs"
  45640. + if test -z "$libdir"; then
  45641. + if test -z "$old_library"; then
  45642. + func_fatal_error "cannot find name of link library for \`$lib'"
  45643. + fi
  45644. + # It is a libtool convenience library, so add in its objects.
  45645. + convenience="$convenience $ladir/$objdir/$old_library"
  45646. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  45647. + tmp_libs=
  45648. + for deplib in $dependency_libs; do
  45649. + deplibs="$deplib $deplibs"
  45650. + if $opt_duplicate_deps ; then
  45651. + case "$tmp_libs " in
  45652. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45653. + esac
  45654. + fi
  45655. + tmp_libs="$tmp_libs $deplib"
  45656. + done
  45657. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  45658. + func_fatal_error "\`$lib' is not a convenience library"
  45659. + fi
  45660. + continue
  45661. + fi # $pass = conv
  45662. +
  45663. +
  45664. + # Get the name of the library we link against.
  45665. + linklib=
  45666. + for l in $old_library $library_names; do
  45667. + linklib="$l"
  45668. + done
  45669. + if test -z "$linklib"; then
  45670. + func_fatal_error "cannot find name of link library for \`$lib'"
  45671. + fi
  45672. +
  45673. + # This library was specified with -dlopen.
  45674. + if test "$pass" = dlopen; then
  45675. + if test -z "$libdir"; then
  45676. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  45677. + fi
  45678. + if test -z "$dlname" ||
  45679. + test "$dlopen_support" != yes ||
  45680. + test "$build_libtool_libs" = no; then
  45681. + # If there is no dlname, no dlopen support or we're linking
  45682. + # statically, we need to preload. We also need to preload any
  45683. + # dependent libraries so libltdl's deplib preloader doesn't
  45684. + # bomb out in the load deplibs phase.
  45685. + dlprefiles="$dlprefiles $lib $dependency_libs"
  45686. + else
  45687. + newdlfiles="$newdlfiles $lib"
  45688. + fi
  45689. + continue
  45690. + fi # $pass = dlopen
  45691. +
  45692. + # We need an absolute path.
  45693. + case $ladir in
  45694. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  45695. + *)
  45696. + abs_ladir=`cd "$ladir" && pwd`
  45697. + if test -z "$abs_ladir"; then
  45698. + func_warning "cannot determine absolute directory name of \`$ladir'"
  45699. + func_warning "passing it literally to the linker, although it might fail"
  45700. + abs_ladir="$ladir"
  45701. + fi
  45702. + ;;
  45703. + esac
  45704. + func_basename "$lib"
  45705. + laname="$func_basename_result"
  45706. +
  45707. + # Find the relevant object directory and library name.
  45708. + if test "X$installed" = Xyes; then
  45709. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  45710. + func_warning "library \`$lib' was moved."
  45711. + dir="$ladir"
  45712. + absdir="$abs_ladir"
  45713. + libdir="$abs_ladir"
  45714. + else
  45715. + dir="$libdir"
  45716. + absdir="$libdir"
  45717. + fi
  45718. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  45719. + else
  45720. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  45721. + dir="$ladir"
  45722. + absdir="$abs_ladir"
  45723. + # Remove this search path later
  45724. + notinst_path="$notinst_path $abs_ladir"
  45725. + else
  45726. + dir="$ladir/$objdir"
  45727. + absdir="$abs_ladir/$objdir"
  45728. + # Remove this search path later
  45729. + notinst_path="$notinst_path $abs_ladir"
  45730. + fi
  45731. + fi # $installed = yes
  45732. + func_stripname 'lib' '.la' "$laname"
  45733. + name=$func_stripname_result
  45734. +
  45735. + # This library was specified with -dlpreopen.
  45736. + if test "$pass" = dlpreopen; then
  45737. + if test -z "$libdir" && test "$linkmode" = prog; then
  45738. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  45739. + fi
  45740. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  45741. + # are required to link).
  45742. + if test -n "$old_library"; then
  45743. + newdlprefiles="$newdlprefiles $dir/$old_library"
  45744. + # Keep a list of preopened convenience libraries to check
  45745. + # that they are being used correctly in the link pass.
  45746. + test -z "$libdir" && \
  45747. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  45748. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  45749. + elif test -n "$dlname"; then
  45750. + newdlprefiles="$newdlprefiles $dir/$dlname"
  45751. + else
  45752. + newdlprefiles="$newdlprefiles $dir/$linklib"
  45753. + fi
  45754. + fi # $pass = dlpreopen
  45755. +
  45756. + if test -z "$libdir"; then
  45757. + # Link the convenience library
  45758. + if test "$linkmode" = lib; then
  45759. + deplibs="$dir/$old_library $deplibs"
  45760. + elif test "$linkmode,$pass" = "prog,link"; then
  45761. + compile_deplibs="$dir/$old_library $compile_deplibs"
  45762. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  45763. + else
  45764. + deplibs="$lib $deplibs" # used for prog,scan pass
  45765. + fi
  45766. + continue
  45767. + fi
  45768. +
  45769. +
  45770. + if test "$linkmode" = prog && test "$pass" != link; then
  45771. + newlib_search_path="$newlib_search_path $ladir"
  45772. + deplibs="$lib $deplibs"
  45773. +
  45774. + linkalldeplibs=no
  45775. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  45776. + test "$build_libtool_libs" = no; then
  45777. + linkalldeplibs=yes
  45778. + fi
  45779. +
  45780. + tmp_libs=
  45781. + for deplib in $dependency_libs; do
  45782. + case $deplib in
  45783. + -L*) func_stripname '-L' '' "$deplib"
  45784. + newlib_search_path="$newlib_search_path $func_stripname_result"
  45785. + ;;
  45786. + esac
  45787. + # Need to link against all dependency_libs?
  45788. + if test "$linkalldeplibs" = yes; then
  45789. + deplibs="$deplib $deplibs"
  45790. + else
  45791. + # Need to hardcode shared library paths
  45792. + # or/and link against static libraries
  45793. + newdependency_libs="$deplib $newdependency_libs"
  45794. + fi
  45795. + if $opt_duplicate_deps ; then
  45796. + case "$tmp_libs " in
  45797. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  45798. + esac
  45799. + fi
  45800. + tmp_libs="$tmp_libs $deplib"
  45801. + done # for deplib
  45802. + continue
  45803. + fi # $linkmode = prog...
  45804. +
  45805. + if test "$linkmode,$pass" = "prog,link"; then
  45806. + if test -n "$library_names" &&
  45807. + { { test "$prefer_static_libs" = no ||
  45808. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  45809. + test -z "$old_library"; }; then
  45810. + # We need to hardcode the library path
  45811. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  45812. + # Make sure the rpath contains only unique directories.
  45813. + case "$temp_rpath:" in
  45814. + *"$absdir:"*) ;;
  45815. + *) temp_rpath="$temp_rpath$absdir:" ;;
  45816. + esac
  45817. + fi
  45818. +
  45819. + # Hardcode the library path.
  45820. + # Skip directories that are in the system default run-time
  45821. + # search path.
  45822. + case " $sys_lib_dlsearch_path " in
  45823. + *" $absdir "*) ;;
  45824. + *)
  45825. + case "$compile_rpath " in
  45826. + *" $absdir "*) ;;
  45827. + *) compile_rpath="$compile_rpath $absdir"
  45828. + esac
  45829. + ;;
  45830. + esac
  45831. + case " $sys_lib_dlsearch_path " in
  45832. + *" $libdir "*) ;;
  45833. + *)
  45834. + case "$finalize_rpath " in
  45835. + *" $libdir "*) ;;
  45836. + *) finalize_rpath="$finalize_rpath $libdir"
  45837. + esac
  45838. + ;;
  45839. + esac
  45840. + fi # $linkmode,$pass = prog,link...
  45841. +
  45842. + if test "$alldeplibs" = yes &&
  45843. + { test "$deplibs_check_method" = pass_all ||
  45844. + { test "$build_libtool_libs" = yes &&
  45845. + test -n "$library_names"; }; }; then
  45846. + # We only need to search for static libraries
  45847. + continue
  45848. + fi
  45849. + fi
  45850. +
  45851. + link_static=no # Whether the deplib will be linked statically
  45852. + use_static_libs=$prefer_static_libs
  45853. + if test "$use_static_libs" = built && test "$installed" = yes; then
  45854. + use_static_libs=no
  45855. + fi
  45856. + if test -n "$library_names" &&
  45857. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  45858. + case $host in
  45859. + *cygwin* | *mingw* | *cegcc*)
  45860. + # No point in relinking DLLs because paths are not encoded
  45861. + notinst_deplibs="$notinst_deplibs $lib"
  45862. + need_relink=no
  45863. + ;;
  45864. + *)
  45865. + if test "$installed" = no; then
  45866. + notinst_deplibs="$notinst_deplibs $lib"
  45867. + need_relink=yes
  45868. + fi
  45869. + ;;
  45870. + esac
  45871. + # This is a shared library
  45872. +
  45873. + # Warn about portability, can't link against -module's on some
  45874. + # systems (darwin). Don't bleat about dlopened modules though!
  45875. + dlopenmodule=""
  45876. + for dlpremoduletest in $dlprefiles; do
  45877. + if test "X$dlpremoduletest" = "X$lib"; then
  45878. + dlopenmodule="$dlpremoduletest"
  45879. + break
  45880. + fi
  45881. + done
  45882. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  45883. + $ECHO
  45884. + if test "$linkmode" = prog; then
  45885. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  45886. + else
  45887. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  45888. + fi
  45889. + $ECHO "*** $linklib is not portable!"
  45890. + fi
  45891. + if test "$linkmode" = lib &&
  45892. + test "$hardcode_into_libs" = yes; then
  45893. + # Hardcode the library path.
  45894. + # Skip directories that are in the system default run-time
  45895. + # search path.
  45896. + case " $sys_lib_dlsearch_path " in
  45897. + *" $absdir "*) ;;
  45898. + *)
  45899. + case "$compile_rpath " in
  45900. + *" $absdir "*) ;;
  45901. + *) compile_rpath="$compile_rpath $absdir"
  45902. + esac
  45903. + ;;
  45904. + esac
  45905. + case " $sys_lib_dlsearch_path " in
  45906. + *" $libdir "*) ;;
  45907. + *)
  45908. + case "$finalize_rpath " in
  45909. + *" $libdir "*) ;;
  45910. + *) finalize_rpath="$finalize_rpath $libdir"
  45911. + esac
  45912. + ;;
  45913. + esac
  45914. + fi
  45915. +
  45916. + if test -n "$old_archive_from_expsyms_cmds"; then
  45917. + # figure out the soname
  45918. + set dummy $library_names
  45919. + shift
  45920. + realname="$1"
  45921. + shift
  45922. + libname=`eval "\\$ECHO \"$libname_spec\""`
  45923. + # use dlname if we got it. it's perfectly good, no?
  45924. + if test -n "$dlname"; then
  45925. + soname="$dlname"
  45926. + elif test -n "$soname_spec"; then
  45927. + # bleh windows
  45928. + case $host in
  45929. + *cygwin* | mingw* | *cegcc*)
  45930. + func_arith $current - $age
  45931. + major=$func_arith_result
  45932. + versuffix="-$major"
  45933. + ;;
  45934. + esac
  45935. + eval soname=\"$soname_spec\"
  45936. + else
  45937. + soname="$realname"
  45938. + fi
  45939. +
  45940. + # Make a new name for the extract_expsyms_cmds to use
  45941. + soroot="$soname"
  45942. + func_basename "$soroot"
  45943. + soname="$func_basename_result"
  45944. + func_stripname 'lib' '.dll' "$soname"
  45945. + newlib=libimp-$func_stripname_result.a
  45946. +
  45947. + # If the library has no export list, then create one now
  45948. + if test -f "$output_objdir/$soname-def"; then :
  45949. + else
  45950. + func_verbose "extracting exported symbol list from \`$soname'"
  45951. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  45952. + fi
  45953. +
  45954. + # Create $newlib
  45955. + if test -f "$output_objdir/$newlib"; then :; else
  45956. + func_verbose "generating import library for \`$soname'"
  45957. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  45958. + fi
  45959. + # make sure the library variables are pointing to the new library
  45960. + dir=$output_objdir
  45961. + linklib=$newlib
  45962. + fi # test -n "$old_archive_from_expsyms_cmds"
  45963. +
  45964. + if test "$linkmode" = prog || test "$mode" != relink; then
  45965. + add_shlibpath=
  45966. + add_dir=
  45967. + add=
  45968. + lib_linked=yes
  45969. + case $hardcode_action in
  45970. + immediate | unsupported)
  45971. + if test "$hardcode_direct" = no; then
  45972. + add="$dir/$linklib"
  45973. + case $host in
  45974. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  45975. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  45976. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  45977. + *-*-unixware7*) add_dir="-L$dir" ;;
  45978. + *-*-darwin* )
  45979. + # if the lib is a (non-dlopened) module then we can not
  45980. + # link against it, someone is ignoring the earlier warnings
  45981. + if /usr/bin/file -L $add 2> /dev/null |
  45982. + $GREP ": [^:]* bundle" >/dev/null ; then
  45983. + if test "X$dlopenmodule" != "X$lib"; then
  45984. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  45985. + if test -z "$old_library" ; then
  45986. + $ECHO
  45987. + $ECHO "*** And there doesn't seem to be a static archive available"
  45988. + $ECHO "*** The link will probably fail, sorry"
  45989. + else
  45990. + add="$dir/$old_library"
  45991. + fi
  45992. + elif test -n "$old_library"; then
  45993. + add="$dir/$old_library"
  45994. + fi
  45995. + fi
  45996. + esac
  45997. + elif test "$hardcode_minus_L" = no; then
  45998. + case $host in
  45999. + *-*-sunos*) add_shlibpath="$dir" ;;
  46000. + esac
  46001. + add_dir="-L$dir"
  46002. + add="-l$name"
  46003. + elif test "$hardcode_shlibpath_var" = no; then
  46004. + add_shlibpath="$dir"
  46005. + add="-l$name"
  46006. + else
  46007. + lib_linked=no
  46008. + fi
  46009. + ;;
  46010. + relink)
  46011. + if test "$hardcode_direct" = yes &&
  46012. + test "$hardcode_direct_absolute" = no; then
  46013. + add="$dir/$linklib"
  46014. + elif test "$hardcode_minus_L" = yes; then
  46015. + add_dir="-L$dir"
  46016. + # Try looking first in the location we're being installed to.
  46017. + if test -n "$inst_prefix_dir"; then
  46018. + case $libdir in
  46019. + [\\/]*)
  46020. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46021. + ;;
  46022. + esac
  46023. + fi
  46024. + add="-l$name"
  46025. + elif test "$hardcode_shlibpath_var" = yes; then
  46026. + add_shlibpath="$dir"
  46027. + add="-l$name"
  46028. + else
  46029. + lib_linked=no
  46030. + fi
  46031. + ;;
  46032. + *) lib_linked=no ;;
  46033. + esac
  46034. +
  46035. + if test "$lib_linked" != yes; then
  46036. + func_fatal_configuration "unsupported hardcode properties"
  46037. + fi
  46038. +
  46039. + if test -n "$add_shlibpath"; then
  46040. + case :$compile_shlibpath: in
  46041. + *":$add_shlibpath:"*) ;;
  46042. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  46043. + esac
  46044. + fi
  46045. + if test "$linkmode" = prog; then
  46046. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  46047. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  46048. + else
  46049. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46050. + test -n "$add" && deplibs="$add $deplibs"
  46051. + if test "$hardcode_direct" != yes &&
  46052. + test "$hardcode_minus_L" != yes &&
  46053. + test "$hardcode_shlibpath_var" = yes; then
  46054. + case :$finalize_shlibpath: in
  46055. + *":$libdir:"*) ;;
  46056. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46057. + esac
  46058. + fi
  46059. + fi
  46060. + fi
  46061. +
  46062. + if test "$linkmode" = prog || test "$mode" = relink; then
  46063. + add_shlibpath=
  46064. + add_dir=
  46065. + add=
  46066. + # Finalize command for both is simple: just hardcode it.
  46067. + if test "$hardcode_direct" = yes &&
  46068. + test "$hardcode_direct_absolute" = no; then
  46069. + add="$libdir/$linklib"
  46070. + elif test "$hardcode_minus_L" = yes; then
  46071. + add_dir="-L$libdir"
  46072. + add="-l$name"
  46073. + elif test "$hardcode_shlibpath_var" = yes; then
  46074. + case :$finalize_shlibpath: in
  46075. + *":$libdir:"*) ;;
  46076. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  46077. + esac
  46078. + add="-l$name"
  46079. + elif test "$hardcode_automatic" = yes; then
  46080. + if test -n "$inst_prefix_dir" &&
  46081. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  46082. + add="$inst_prefix_dir$libdir/$linklib"
  46083. + else
  46084. + add="$libdir/$linklib"
  46085. + fi
  46086. + else
  46087. + # We cannot seem to hardcode it, guess we'll fake it.
  46088. + add_dir="-L$libdir"
  46089. + # Try looking first in the location we're being installed to.
  46090. + if test -n "$inst_prefix_dir"; then
  46091. + case $libdir in
  46092. + [\\/]*)
  46093. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  46094. + ;;
  46095. + esac
  46096. + fi
  46097. + add="-l$name"
  46098. + fi
  46099. +
  46100. + if test "$linkmode" = prog; then
  46101. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  46102. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  46103. + else
  46104. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  46105. + test -n "$add" && deplibs="$add $deplibs"
  46106. + fi
  46107. + fi
  46108. + elif test "$linkmode" = prog; then
  46109. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  46110. + # is not unsupported. This is valid on all known static and
  46111. + # shared platforms.
  46112. + if test "$hardcode_direct" != unsupported; then
  46113. + test -n "$old_library" && linklib="$old_library"
  46114. + compile_deplibs="$dir/$linklib $compile_deplibs"
  46115. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  46116. + else
  46117. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  46118. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  46119. + fi
  46120. + elif test "$build_libtool_libs" = yes; then
  46121. + # Not a shared library
  46122. + if test "$deplibs_check_method" != pass_all; then
  46123. + # We're trying link a shared library against a static one
  46124. + # but the system doesn't support it.
  46125. +
  46126. + # Just print a warning and add the library to dependency_libs so
  46127. + # that the program can be linked against the static library.
  46128. + $ECHO
  46129. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  46130. + $ECHO "*** I have the capability to make that library automatically link in when"
  46131. + $ECHO "*** you link to this library. But I can only do this if you have a"
  46132. + $ECHO "*** shared version of the library, which you do not appear to have."
  46133. + if test "$module" = yes; then
  46134. + $ECHO "*** But as you try to build a module library, libtool will still create "
  46135. + $ECHO "*** a static module, that should work as long as the dlopening application"
  46136. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  46137. + if test -z "$global_symbol_pipe"; then
  46138. + $ECHO
  46139. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  46140. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  46141. + $ECHO "*** not find such a program. So, this module is probably useless."
  46142. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  46143. + fi
  46144. + if test "$build_old_libs" = no; then
  46145. + build_libtool_libs=module
  46146. + build_old_libs=yes
  46147. + else
  46148. + build_libtool_libs=no
  46149. + fi
  46150. + fi
  46151. + else
  46152. + deplibs="$dir/$old_library $deplibs"
  46153. + link_static=yes
  46154. + fi
  46155. + fi # link shared/static library?
  46156. +
  46157. + if test "$linkmode" = lib; then
  46158. + if test -n "$dependency_libs" &&
  46159. + { test "$hardcode_into_libs" != yes ||
  46160. + test "$build_old_libs" = yes ||
  46161. + test "$link_static" = yes; }; then
  46162. + # Extract -R from dependency_libs
  46163. + temp_deplibs=
  46164. + for libdir in $dependency_libs; do
  46165. + case $libdir in
  46166. + -R*) func_stripname '-R' '' "$libdir"
  46167. + temp_xrpath=$func_stripname_result
  46168. + case " $xrpath " in
  46169. + *" $temp_xrpath "*) ;;
  46170. + *) xrpath="$xrpath $temp_xrpath";;
  46171. + esac;;
  46172. + *) temp_deplibs="$temp_deplibs $libdir";;
  46173. + esac
  46174. + done
  46175. + dependency_libs="$temp_deplibs"
  46176. + fi
  46177. +
  46178. + newlib_search_path="$newlib_search_path $absdir"
  46179. + # Link against this library
  46180. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  46181. + # ... and its dependency_libs
  46182. + tmp_libs=
  46183. + for deplib in $dependency_libs; do
  46184. + newdependency_libs="$deplib $newdependency_libs"
  46185. + if $opt_duplicate_deps ; then
  46186. + case "$tmp_libs " in
  46187. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46188. + esac
  46189. + fi
  46190. + tmp_libs="$tmp_libs $deplib"
  46191. + done
  46192. +
  46193. + if test "$link_all_deplibs" != no; then
  46194. + # Add the search paths of all dependency libraries
  46195. + for deplib in $dependency_libs; do
  46196. + path=
  46197. + case $deplib in
  46198. + -L*) path="$deplib" ;;
  46199. + *.la)
  46200. + func_dirname "$deplib" "" "."
  46201. + dir="$func_dirname_result"
  46202. + # We need an absolute path.
  46203. + case $dir in
  46204. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  46205. + *)
  46206. + absdir=`cd "$dir" && pwd`
  46207. + if test -z "$absdir"; then
  46208. + func_warning "cannot determine absolute directory name of \`$dir'"
  46209. + absdir="$dir"
  46210. + fi
  46211. + ;;
  46212. + esac
  46213. + if $GREP "^installed=no" $deplib > /dev/null; then
  46214. + case $host in
  46215. + *-*-darwin*)
  46216. + depdepl=
  46217. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  46218. + if test -n "$deplibrary_names" ; then
  46219. + for tmp in $deplibrary_names ; do
  46220. + depdepl=$tmp
  46221. + done
  46222. + if test -f "$absdir/$objdir/$depdepl" ; then
  46223. + depdepl="$absdir/$objdir/$depdepl"
  46224. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  46225. + if test -z "$darwin_install_name"; then
  46226. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  46227. + fi
  46228. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  46229. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  46230. + path=
  46231. + fi
  46232. + fi
  46233. + ;;
  46234. + *)
  46235. + path="-L$absdir/$objdir"
  46236. + ;;
  46237. + esac
  46238. + else
  46239. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  46240. + test -z "$libdir" && \
  46241. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  46242. + test "$absdir" != "$libdir" && \
  46243. + func_warning "\`$deplib' seems to be moved"
  46244. +
  46245. + path="-L$absdir"
  46246. + fi
  46247. + ;;
  46248. + esac
  46249. + case " $deplibs " in
  46250. + *" $path "*) ;;
  46251. + *) deplibs="$path $deplibs" ;;
  46252. + esac
  46253. + done
  46254. + fi # link_all_deplibs != no
  46255. + fi # linkmode = lib
  46256. + done # for deplib in $libs
  46257. + if test "$pass" = link; then
  46258. + if test "$linkmode" = "prog"; then
  46259. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  46260. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  46261. + else
  46262. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  46263. + fi
  46264. + fi
  46265. + dependency_libs="$newdependency_libs"
  46266. + if test "$pass" = dlpreopen; then
  46267. + # Link the dlpreopened libraries before other libraries
  46268. + for deplib in $save_deplibs; do
  46269. + deplibs="$deplib $deplibs"
  46270. + done
  46271. + fi
  46272. + if test "$pass" != dlopen; then
  46273. + if test "$pass" != conv; then
  46274. + # Make sure lib_search_path contains only unique directories.
  46275. + lib_search_path=
  46276. + for dir in $newlib_search_path; do
  46277. + case "$lib_search_path " in
  46278. + *" $dir "*) ;;
  46279. + *) lib_search_path="$lib_search_path $dir" ;;
  46280. + esac
  46281. + done
  46282. + newlib_search_path=
  46283. + fi
  46284. +
  46285. + if test "$linkmode,$pass" != "prog,link"; then
  46286. + vars="deplibs"
  46287. + else
  46288. + vars="compile_deplibs finalize_deplibs"
  46289. + fi
  46290. + for var in $vars dependency_libs; do
  46291. + # Add libraries to $var in reverse order
  46292. + eval tmp_libs=\"\$$var\"
  46293. + new_libs=
  46294. + for deplib in $tmp_libs; do
  46295. + # FIXME: Pedantically, this is the right thing to do, so
  46296. + # that some nasty dependency loop isn't accidentally
  46297. + # broken:
  46298. + #new_libs="$deplib $new_libs"
  46299. + # Pragmatically, this seems to cause very few problems in
  46300. + # practice:
  46301. + case $deplib in
  46302. + -L*) new_libs="$deplib $new_libs" ;;
  46303. + -R*) ;;
  46304. + *)
  46305. + # And here is the reason: when a library appears more
  46306. + # than once as an explicit dependence of a library, or
  46307. + # is implicitly linked in more than once by the
  46308. + # compiler, it is considered special, and multiple
  46309. + # occurrences thereof are not removed. Compare this
  46310. + # with having the same library being listed as a
  46311. + # dependency of multiple other libraries: in this case,
  46312. + # we know (pedantically, we assume) the library does not
  46313. + # need to be listed more than once, so we keep only the
  46314. + # last copy. This is not always right, but it is rare
  46315. + # enough that we require users that really mean to play
  46316. + # such unportable linking tricks to link the library
  46317. + # using -Wl,-lname, so that libtool does not consider it
  46318. + # for duplicate removal.
  46319. + case " $specialdeplibs " in
  46320. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  46321. + *)
  46322. + case " $new_libs " in
  46323. + *" $deplib "*) ;;
  46324. + *) new_libs="$deplib $new_libs" ;;
  46325. + esac
  46326. + ;;
  46327. + esac
  46328. + ;;
  46329. + esac
  46330. + done
  46331. + tmp_libs=
  46332. + for deplib in $new_libs; do
  46333. + case $deplib in
  46334. + -L*)
  46335. + case " $tmp_libs " in
  46336. + *" $deplib "*) ;;
  46337. + *) tmp_libs="$tmp_libs $deplib" ;;
  46338. + esac
  46339. + ;;
  46340. + *) tmp_libs="$tmp_libs $deplib" ;;
  46341. + esac
  46342. + done
  46343. + eval $var=\"$tmp_libs\"
  46344. + done # for var
  46345. + fi
  46346. + # Last step: remove runtime libs from dependency_libs
  46347. + # (they stay in deplibs)
  46348. + tmp_libs=
  46349. + for i in $dependency_libs ; do
  46350. + case " $predeps $postdeps $compiler_lib_search_path " in
  46351. + *" $i "*)
  46352. + i=""
  46353. + ;;
  46354. + esac
  46355. + if test -n "$i" ; then
  46356. + tmp_libs="$tmp_libs $i"
  46357. + fi
  46358. + done
  46359. + dependency_libs=$tmp_libs
  46360. + done # for pass
  46361. + if test "$linkmode" = prog; then
  46362. + dlfiles="$newdlfiles"
  46363. + fi
  46364. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  46365. + dlprefiles="$newdlprefiles"
  46366. + fi
  46367. +
  46368. + case $linkmode in
  46369. + oldlib)
  46370. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  46371. + func_warning "\`-dlopen' is ignored for archives"
  46372. + fi
  46373. +
  46374. + case " $deplibs" in
  46375. + *\ -l* | *\ -L*)
  46376. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  46377. + esac
  46378. +
  46379. + test -n "$rpath" && \
  46380. + func_warning "\`-rpath' is ignored for archives"
  46381. +
  46382. + test -n "$xrpath" && \
  46383. + func_warning "\`-R' is ignored for archives"
  46384. +
  46385. + test -n "$vinfo" && \
  46386. + func_warning "\`-version-info/-version-number' is ignored for archives"
  46387. +
  46388. + test -n "$release" && \
  46389. + func_warning "\`-release' is ignored for archives"
  46390. +
  46391. + test -n "$export_symbols$export_symbols_regex" && \
  46392. + func_warning "\`-export-symbols' is ignored for archives"
  46393. +
  46394. + # Now set the variables for building old libraries.
  46395. + build_libtool_libs=no
  46396. + oldlibs="$output"
  46397. + objs="$objs$old_deplibs"
  46398. + ;;
  46399. +
  46400. + lib)
  46401. + # Make sure we only generate libraries of the form `libNAME.la'.
  46402. + case $outputname in
  46403. + lib*)
  46404. + func_stripname 'lib' '.la' "$outputname"
  46405. + name=$func_stripname_result
  46406. + eval shared_ext=\"$shrext_cmds\"
  46407. + eval libname=\"$libname_spec\"
  46408. + ;;
  46409. + *)
  46410. + test "$module" = no && \
  46411. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  46412. +
  46413. + if test "$need_lib_prefix" != no; then
  46414. + # Add the "lib" prefix for modules if required
  46415. + func_stripname '' '.la' "$outputname"
  46416. + name=$func_stripname_result
  46417. + eval shared_ext=\"$shrext_cmds\"
  46418. + eval libname=\"$libname_spec\"
  46419. + else
  46420. + func_stripname '' '.la' "$outputname"
  46421. + libname=$func_stripname_result
  46422. + fi
  46423. + ;;
  46424. + esac
  46425. +
  46426. + if test -n "$objs"; then
  46427. + if test "$deplibs_check_method" != pass_all; then
  46428. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  46429. + else
  46430. + $ECHO
  46431. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  46432. + $ECHO "*** objects $objs is not portable!"
  46433. + libobjs="$libobjs $objs"
  46434. + fi
  46435. + fi
  46436. +
  46437. + test "$dlself" != no && \
  46438. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  46439. +
  46440. + set dummy $rpath
  46441. + shift
  46442. + test "$#" -gt 1 && \
  46443. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  46444. +
  46445. + install_libdir="$1"
  46446. +
  46447. + oldlibs=
  46448. + if test -z "$rpath"; then
  46449. + if test "$build_libtool_libs" = yes; then
  46450. + # Building a libtool convenience library.
  46451. + # Some compilers have problems with a `.al' extension so
  46452. + # convenience libraries should have the same extension an
  46453. + # archive normally would.
  46454. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  46455. + build_libtool_libs=convenience
  46456. + build_old_libs=yes
  46457. + fi
  46458. +
  46459. + test -n "$vinfo" && \
  46460. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  46461. +
  46462. + test -n "$release" && \
  46463. + func_warning "\`-release' is ignored for convenience libraries"
  46464. + else
  46465. +
  46466. + # Parse the version information argument.
  46467. + save_ifs="$IFS"; IFS=':'
  46468. + set dummy $vinfo 0 0 0
  46469. + shift
  46470. + IFS="$save_ifs"
  46471. +
  46472. + test -n "$7" && \
  46473. + func_fatal_help "too many parameters to \`-version-info'"
  46474. +
  46475. + # convert absolute version numbers to libtool ages
  46476. + # this retains compatibility with .la files and attempts
  46477. + # to make the code below a bit more comprehensible
  46478. +
  46479. + case $vinfo_number in
  46480. + yes)
  46481. + number_major="$1"
  46482. + number_minor="$2"
  46483. + number_revision="$3"
  46484. + #
  46485. + # There are really only two kinds -- those that
  46486. + # use the current revision as the major version
  46487. + # and those that subtract age and use age as
  46488. + # a minor version. But, then there is irix
  46489. + # which has an extra 1 added just for fun
  46490. + #
  46491. + case $version_type in
  46492. + darwin|linux|osf|windows|none)
  46493. + func_arith $number_major + $number_minor
  46494. + current=$func_arith_result
  46495. + age="$number_minor"
  46496. + revision="$number_revision"
  46497. + ;;
  46498. + freebsd-aout|freebsd-elf|sunos)
  46499. + current="$number_major"
  46500. + revision="$number_minor"
  46501. + age="0"
  46502. + ;;
  46503. + irix|nonstopux)
  46504. + func_arith $number_major + $number_minor
  46505. + current=$func_arith_result
  46506. + age="$number_minor"
  46507. + revision="$number_minor"
  46508. + lt_irix_increment=no
  46509. + ;;
  46510. + *)
  46511. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  46512. + ;;
  46513. + esac
  46514. + ;;
  46515. + no)
  46516. + current="$1"
  46517. + revision="$2"
  46518. + age="$3"
  46519. + ;;
  46520. + esac
  46521. +
  46522. + # Check that each of the things are valid numbers.
  46523. + case $current in
  46524. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  46525. + *)
  46526. + func_error "CURRENT \`$current' must be a nonnegative integer"
  46527. + func_fatal_error "\`$vinfo' is not valid version information"
  46528. + ;;
  46529. + esac
  46530. +
  46531. + case $revision in
  46532. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  46533. + *)
  46534. + func_error "REVISION \`$revision' must be a nonnegative integer"
  46535. + func_fatal_error "\`$vinfo' is not valid version information"
  46536. + ;;
  46537. + esac
  46538. +
  46539. + case $age in
  46540. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  46541. + *)
  46542. + func_error "AGE \`$age' must be a nonnegative integer"
  46543. + func_fatal_error "\`$vinfo' is not valid version information"
  46544. + ;;
  46545. + esac
  46546. +
  46547. + if test "$age" -gt "$current"; then
  46548. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  46549. + func_fatal_error "\`$vinfo' is not valid version information"
  46550. + fi
  46551. +
  46552. + # Calculate the version variables.
  46553. + major=
  46554. + versuffix=
  46555. + verstring=
  46556. + case $version_type in
  46557. + none) ;;
  46558. +
  46559. + darwin)
  46560. + # Like Linux, but with the current version available in
  46561. + # verstring for coding it into the library header
  46562. + func_arith $current - $age
  46563. + major=.$func_arith_result
  46564. + versuffix="$major.$age.$revision"
  46565. + # Darwin ld doesn't like 0 for these options...
  46566. + func_arith $current + 1
  46567. + minor_current=$func_arith_result
  46568. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  46569. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  46570. + ;;
  46571. +
  46572. + freebsd-aout)
  46573. + major=".$current"
  46574. + versuffix=".$current.$revision";
  46575. + ;;
  46576. +
  46577. + freebsd-elf)
  46578. + major=".$current"
  46579. + versuffix=".$current"
  46580. + ;;
  46581. +
  46582. + irix | nonstopux)
  46583. + if test "X$lt_irix_increment" = "Xno"; then
  46584. + func_arith $current - $age
  46585. + else
  46586. + func_arith $current - $age + 1
  46587. + fi
  46588. + major=$func_arith_result
  46589. +
  46590. + case $version_type in
  46591. + nonstopux) verstring_prefix=nonstopux ;;
  46592. + *) verstring_prefix=sgi ;;
  46593. + esac
  46594. + verstring="$verstring_prefix$major.$revision"
  46595. +
  46596. + # Add in all the interfaces that we are compatible with.
  46597. + loop=$revision
  46598. + while test "$loop" -ne 0; do
  46599. + func_arith $revision - $loop
  46600. + iface=$func_arith_result
  46601. + func_arith $loop - 1
  46602. + loop=$func_arith_result
  46603. + verstring="$verstring_prefix$major.$iface:$verstring"
  46604. + done
  46605. +
  46606. + # Before this point, $major must not contain `.'.
  46607. + major=.$major
  46608. + versuffix="$major.$revision"
  46609. + ;;
  46610. +
  46611. + linux)
  46612. + func_arith $current - $age
  46613. + major=.$func_arith_result
  46614. + versuffix="$major.$age.$revision"
  46615. + ;;
  46616. +
  46617. + osf)
  46618. + func_arith $current - $age
  46619. + major=.$func_arith_result
  46620. + versuffix=".$current.$age.$revision"
  46621. + verstring="$current.$age.$revision"
  46622. +
  46623. + # Add in all the interfaces that we are compatible with.
  46624. + loop=$age
  46625. + while test "$loop" -ne 0; do
  46626. + func_arith $current - $loop
  46627. + iface=$func_arith_result
  46628. + func_arith $loop - 1
  46629. + loop=$func_arith_result
  46630. + verstring="$verstring:${iface}.0"
  46631. + done
  46632. +
  46633. + # Make executables depend on our current version.
  46634. + verstring="$verstring:${current}.0"
  46635. + ;;
  46636. +
  46637. + qnx)
  46638. + major=".$current"
  46639. + versuffix=".$current"
  46640. + ;;
  46641. +
  46642. + sunos)
  46643. + major=".$current"
  46644. + versuffix=".$current.$revision"
  46645. + ;;
  46646. +
  46647. + windows)
  46648. + # Use '-' rather than '.', since we only want one
  46649. + # extension on DOS 8.3 filesystems.
  46650. + func_arith $current - $age
  46651. + major=$func_arith_result
  46652. + versuffix="-$major"
  46653. + ;;
  46654. +
  46655. + *)
  46656. + func_fatal_configuration "unknown library version type \`$version_type'"
  46657. + ;;
  46658. + esac
  46659. +
  46660. + # Clear the version info if we defaulted, and they specified a release.
  46661. + if test -z "$vinfo" && test -n "$release"; then
  46662. + major=
  46663. + case $version_type in
  46664. + darwin)
  46665. + # we can't check for "0.0" in archive_cmds due to quoting
  46666. + # problems, so we reset it completely
  46667. + verstring=
  46668. + ;;
  46669. + *)
  46670. + verstring="0.0"
  46671. + ;;
  46672. + esac
  46673. + if test "$need_version" = no; then
  46674. + versuffix=
  46675. + else
  46676. + versuffix=".0.0"
  46677. + fi
  46678. + fi
  46679. +
  46680. + # Remove version info from name if versioning should be avoided
  46681. + if test "$avoid_version" = yes && test "$need_version" = no; then
  46682. + major=
  46683. + versuffix=
  46684. + verstring=""
  46685. + fi
  46686. +
  46687. + # Check to see if the archive will have undefined symbols.
  46688. + if test "$allow_undefined" = yes; then
  46689. + if test "$allow_undefined_flag" = unsupported; then
  46690. + func_warning "undefined symbols not allowed in $host shared libraries"
  46691. + build_libtool_libs=no
  46692. + build_old_libs=yes
  46693. + fi
  46694. + else
  46695. + # Don't allow undefined symbols.
  46696. + allow_undefined_flag="$no_undefined_flag"
  46697. + fi
  46698. +
  46699. + fi
  46700. +
  46701. + func_generate_dlsyms "$libname" "$libname" "yes"
  46702. + libobjs="$libobjs $symfileobj"
  46703. + test "X$libobjs" = "X " && libobjs=
  46704. +
  46705. + if test "$mode" != relink; then
  46706. + # Remove our outputs, but don't remove object files since they
  46707. + # may have been created when compiling PIC objects.
  46708. + removelist=
  46709. + tempremovelist=`$ECHO "$output_objdir/*"`
  46710. + for p in $tempremovelist; do
  46711. + case $p in
  46712. + *.$objext | *.gcno)
  46713. + ;;
  46714. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  46715. + if test "X$precious_files_regex" != "X"; then
  46716. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  46717. + then
  46718. + continue
  46719. + fi
  46720. + fi
  46721. + removelist="$removelist $p"
  46722. + ;;
  46723. + *) ;;
  46724. + esac
  46725. + done
  46726. + test -n "$removelist" && \
  46727. + func_show_eval "${RM}r \$removelist"
  46728. + fi
  46729. +
  46730. + # Now set the variables for building old libraries.
  46731. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  46732. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  46733. +
  46734. + # Transform .lo files to .o files.
  46735. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  46736. + fi
  46737. +
  46738. + # Eliminate all temporary directories.
  46739. + #for path in $notinst_path; do
  46740. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  46741. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  46742. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  46743. + #done
  46744. +
  46745. + if test -n "$xrpath"; then
  46746. + # If the user specified any rpath flags, then add them.
  46747. + temp_xrpath=
  46748. + for libdir in $xrpath; do
  46749. + temp_xrpath="$temp_xrpath -R$libdir"
  46750. + case "$finalize_rpath " in
  46751. + *" $libdir "*) ;;
  46752. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  46753. + esac
  46754. + done
  46755. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  46756. + dependency_libs="$temp_xrpath $dependency_libs"
  46757. + fi
  46758. + fi
  46759. +
  46760. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  46761. + old_dlfiles="$dlfiles"
  46762. + dlfiles=
  46763. + for lib in $old_dlfiles; do
  46764. + case " $dlprefiles $dlfiles " in
  46765. + *" $lib "*) ;;
  46766. + *) dlfiles="$dlfiles $lib" ;;
  46767. + esac
  46768. + done
  46769. +
  46770. + # Make sure dlprefiles contains only unique files
  46771. + old_dlprefiles="$dlprefiles"
  46772. + dlprefiles=
  46773. + for lib in $old_dlprefiles; do
  46774. + case "$dlprefiles " in
  46775. + *" $lib "*) ;;
  46776. + *) dlprefiles="$dlprefiles $lib" ;;
  46777. + esac
  46778. + done
  46779. +
  46780. + if test "$build_libtool_libs" = yes; then
  46781. + if test -n "$rpath"; then
  46782. + case $host in
  46783. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  46784. + # these systems don't actually have a c library (as such)!
  46785. + ;;
  46786. + *-*-rhapsody* | *-*-darwin1.[012])
  46787. + # Rhapsody C library is in the System framework
  46788. + deplibs="$deplibs System.ltframework"
  46789. + ;;
  46790. + *-*-netbsd*)
  46791. + # Don't link with libc until the a.out ld.so is fixed.
  46792. + ;;
  46793. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  46794. + # Do not include libc due to us having libc/libc_r.
  46795. + ;;
  46796. + *-*-sco3.2v5* | *-*-sco5v6*)
  46797. + # Causes problems with __ctype
  46798. + ;;
  46799. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  46800. + # Compiler inserts libc in the correct place for threads to work
  46801. + ;;
  46802. + *)
  46803. + # Add libc to deplibs on all other systems if necessary.
  46804. + if test "$build_libtool_need_lc" = "yes"; then
  46805. + deplibs="$deplibs -lc"
  46806. + fi
  46807. + ;;
  46808. + esac
  46809. + fi
  46810. +
  46811. + # Transform deplibs into only deplibs that can be linked in shared.
  46812. + name_save=$name
  46813. + libname_save=$libname
  46814. + release_save=$release
  46815. + versuffix_save=$versuffix
  46816. + major_save=$major
  46817. + # I'm not sure if I'm treating the release correctly. I think
  46818. + # release should show up in the -l (ie -lgmp5) so we don't want to
  46819. + # add it in twice. Is that correct?
  46820. + release=""
  46821. + versuffix=""
  46822. + major=""
  46823. + newdeplibs=
  46824. + droppeddeps=no
  46825. + case $deplibs_check_method in
  46826. + pass_all)
  46827. + # Don't check for shared/static. Everything works.
  46828. + # This might be a little naive. We might want to check
  46829. + # whether the library exists or not. But this is on
  46830. + # osf3 & osf4 and I'm not really sure... Just
  46831. + # implementing what was already the behavior.
  46832. + newdeplibs=$deplibs
  46833. + ;;
  46834. + test_compile)
  46835. + # This code stresses the "libraries are programs" paradigm to its
  46836. + # limits. Maybe even breaks it. We compile a program, linking it
  46837. + # against the deplibs as a proxy for the library. Then we can check
  46838. + # whether they linked in statically or dynamically with ldd.
  46839. + $opt_dry_run || $RM conftest.c
  46840. + cat > conftest.c <<EOF
  46841. + int main() { return 0; }
  46842. +EOF
  46843. + $opt_dry_run || $RM conftest
  46844. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  46845. + ldd_output=`ldd conftest`
  46846. + for i in $deplibs; do
  46847. + case $i in
  46848. + -l*)
  46849. + func_stripname -l '' "$i"
  46850. + name=$func_stripname_result
  46851. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46852. + case " $predeps $postdeps " in
  46853. + *" $i "*)
  46854. + newdeplibs="$newdeplibs $i"
  46855. + i=""
  46856. + ;;
  46857. + esac
  46858. + fi
  46859. + if test -n "$i" ; then
  46860. + libname=`eval "\\$ECHO \"$libname_spec\""`
  46861. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  46862. + set dummy $deplib_matches; shift
  46863. + deplib_match=$1
  46864. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46865. + newdeplibs="$newdeplibs $i"
  46866. + else
  46867. + droppeddeps=yes
  46868. + $ECHO
  46869. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  46870. + $ECHO "*** I have the capability to make that library automatically link in when"
  46871. + $ECHO "*** you link to this library. But I can only do this if you have a"
  46872. + $ECHO "*** shared version of the library, which I believe you do not have"
  46873. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  46874. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  46875. + fi
  46876. + fi
  46877. + ;;
  46878. + *)
  46879. + newdeplibs="$newdeplibs $i"
  46880. + ;;
  46881. + esac
  46882. + done
  46883. + else
  46884. + # Error occurred in the first compile. Let's try to salvage
  46885. + # the situation: Compile a separate program for each library.
  46886. + for i in $deplibs; do
  46887. + case $i in
  46888. + -l*)
  46889. + func_stripname -l '' "$i"
  46890. + name=$func_stripname_result
  46891. + $opt_dry_run || $RM conftest
  46892. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  46893. + ldd_output=`ldd conftest`
  46894. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46895. + case " $predeps $postdeps " in
  46896. + *" $i "*)
  46897. + newdeplibs="$newdeplibs $i"
  46898. + i=""
  46899. + ;;
  46900. + esac
  46901. + fi
  46902. + if test -n "$i" ; then
  46903. + libname=`eval "\\$ECHO \"$libname_spec\""`
  46904. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  46905. + set dummy $deplib_matches; shift
  46906. + deplib_match=$1
  46907. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  46908. + newdeplibs="$newdeplibs $i"
  46909. + else
  46910. + droppeddeps=yes
  46911. + $ECHO
  46912. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  46913. + $ECHO "*** I have the capability to make that library automatically link in when"
  46914. + $ECHO "*** you link to this library. But I can only do this if you have a"
  46915. + $ECHO "*** shared version of the library, which you do not appear to have"
  46916. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  46917. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  46918. + fi
  46919. + fi
  46920. + else
  46921. + droppeddeps=yes
  46922. + $ECHO
  46923. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  46924. + $ECHO "*** make it link in! You will probably need to install it or some"
  46925. + $ECHO "*** library that it depends on before this library will be fully"
  46926. + $ECHO "*** functional. Installing it before continuing would be even better."
  46927. + fi
  46928. + ;;
  46929. + *)
  46930. + newdeplibs="$newdeplibs $i"
  46931. + ;;
  46932. + esac
  46933. + done
  46934. + fi
  46935. + ;;
  46936. + file_magic*)
  46937. + set dummy $deplibs_check_method; shift
  46938. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  46939. + for a_deplib in $deplibs; do
  46940. + case $a_deplib in
  46941. + -l*)
  46942. + func_stripname -l '' "$a_deplib"
  46943. + name=$func_stripname_result
  46944. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  46945. + case " $predeps $postdeps " in
  46946. + *" $a_deplib "*)
  46947. + newdeplibs="$newdeplibs $a_deplib"
  46948. + a_deplib=""
  46949. + ;;
  46950. + esac
  46951. + fi
  46952. + if test -n "$a_deplib" ; then
  46953. + libname=`eval "\\$ECHO \"$libname_spec\""`
  46954. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  46955. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  46956. + for potent_lib in $potential_libs; do
  46957. + # Follow soft links.
  46958. + if ls -lLd "$potent_lib" 2>/dev/null |
  46959. + $GREP " -> " >/dev/null; then
  46960. + continue
  46961. + fi
  46962. + # The statement above tries to avoid entering an
  46963. + # endless loop below, in case of cyclic links.
  46964. + # We might still enter an endless loop, since a link
  46965. + # loop can be closed while we follow links,
  46966. + # but so what?
  46967. + potlib="$potent_lib"
  46968. + while test -h "$potlib" 2>/dev/null; do
  46969. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  46970. + case $potliblink in
  46971. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  46972. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  46973. + esac
  46974. + done
  46975. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  46976. + $SED -e 10q |
  46977. + $EGREP "$file_magic_regex" > /dev/null; then
  46978. + newdeplibs="$newdeplibs $a_deplib"
  46979. + a_deplib=""
  46980. + break 2
  46981. + fi
  46982. + done
  46983. + done
  46984. + fi
  46985. + if test -n "$a_deplib" ; then
  46986. + droppeddeps=yes
  46987. + $ECHO
  46988. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  46989. + $ECHO "*** I have the capability to make that library automatically link in when"
  46990. + $ECHO "*** you link to this library. But I can only do this if you have a"
  46991. + $ECHO "*** shared version of the library, which you do not appear to have"
  46992. + $ECHO "*** because I did check the linker path looking for a file starting"
  46993. + if test -z "$potlib" ; then
  46994. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  46995. + else
  46996. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  46997. + $ECHO "*** using a file magic. Last file checked: $potlib"
  46998. + fi
  46999. + fi
  47000. + ;;
  47001. + *)
  47002. + # Add a -L argument.
  47003. + newdeplibs="$newdeplibs $a_deplib"
  47004. + ;;
  47005. + esac
  47006. + done # Gone through all deplibs.
  47007. + ;;
  47008. + match_pattern*)
  47009. + set dummy $deplibs_check_method; shift
  47010. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  47011. + for a_deplib in $deplibs; do
  47012. + case $a_deplib in
  47013. + -l*)
  47014. + func_stripname -l '' "$a_deplib"
  47015. + name=$func_stripname_result
  47016. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47017. + case " $predeps $postdeps " in
  47018. + *" $a_deplib "*)
  47019. + newdeplibs="$newdeplibs $a_deplib"
  47020. + a_deplib=""
  47021. + ;;
  47022. + esac
  47023. + fi
  47024. + if test -n "$a_deplib" ; then
  47025. + libname=`eval "\\$ECHO \"$libname_spec\""`
  47026. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  47027. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  47028. + for potent_lib in $potential_libs; do
  47029. + potlib="$potent_lib" # see symlink-check above in file_magic test
  47030. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  47031. + $EGREP "$match_pattern_regex" > /dev/null; then
  47032. + newdeplibs="$newdeplibs $a_deplib"
  47033. + a_deplib=""
  47034. + break 2
  47035. + fi
  47036. + done
  47037. + done
  47038. + fi
  47039. + if test -n "$a_deplib" ; then
  47040. + droppeddeps=yes
  47041. + $ECHO
  47042. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  47043. + $ECHO "*** I have the capability to make that library automatically link in when"
  47044. + $ECHO "*** you link to this library. But I can only do this if you have a"
  47045. + $ECHO "*** shared version of the library, which you do not appear to have"
  47046. + $ECHO "*** because I did check the linker path looking for a file starting"
  47047. + if test -z "$potlib" ; then
  47048. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  47049. + else
  47050. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  47051. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  47052. + fi
  47053. + fi
  47054. + ;;
  47055. + *)
  47056. + # Add a -L argument.
  47057. + newdeplibs="$newdeplibs $a_deplib"
  47058. + ;;
  47059. + esac
  47060. + done # Gone through all deplibs.
  47061. + ;;
  47062. + none | unknown | *)
  47063. + newdeplibs=""
  47064. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  47065. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  47066. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47067. + for i in $predeps $postdeps ; do
  47068. + # can't use Xsed below, because $i might contain '/'
  47069. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  47070. + done
  47071. + fi
  47072. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  47073. + $GREP . >/dev/null; then
  47074. + $ECHO
  47075. + if test "X$deplibs_check_method" = "Xnone"; then
  47076. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  47077. + else
  47078. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  47079. + fi
  47080. + $ECHO "*** All declared inter-library dependencies are being dropped."
  47081. + droppeddeps=yes
  47082. + fi
  47083. + ;;
  47084. + esac
  47085. + versuffix=$versuffix_save
  47086. + major=$major_save
  47087. + release=$release_save
  47088. + libname=$libname_save
  47089. + name=$name_save
  47090. +
  47091. + case $host in
  47092. + *-*-rhapsody* | *-*-darwin1.[012])
  47093. + # On Rhapsody replace the C library with the System framework
  47094. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  47095. + ;;
  47096. + esac
  47097. +
  47098. + if test "$droppeddeps" = yes; then
  47099. + if test "$module" = yes; then
  47100. + $ECHO
  47101. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  47102. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  47103. + $ECHO "*** a static module, that should work as long as the dlopening"
  47104. + $ECHO "*** application is linked with the -dlopen flag."
  47105. + if test -z "$global_symbol_pipe"; then
  47106. + $ECHO
  47107. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  47108. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  47109. + $ECHO "*** not find such a program. So, this module is probably useless."
  47110. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  47111. + fi
  47112. + if test "$build_old_libs" = no; then
  47113. + oldlibs="$output_objdir/$libname.$libext"
  47114. + build_libtool_libs=module
  47115. + build_old_libs=yes
  47116. + else
  47117. + build_libtool_libs=no
  47118. + fi
  47119. + else
  47120. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  47121. + $ECHO "*** automatically added whenever a program is linked with this library"
  47122. + $ECHO "*** or is declared to -dlopen it."
  47123. +
  47124. + if test "$allow_undefined" = no; then
  47125. + $ECHO
  47126. + $ECHO "*** Since this library must not contain undefined symbols,"
  47127. + $ECHO "*** because either the platform does not support them or"
  47128. + $ECHO "*** it was explicitly requested with -no-undefined,"
  47129. + $ECHO "*** libtool will only create a static version of it."
  47130. + if test "$build_old_libs" = no; then
  47131. + oldlibs="$output_objdir/$libname.$libext"
  47132. + build_libtool_libs=module
  47133. + build_old_libs=yes
  47134. + else
  47135. + build_libtool_libs=no
  47136. + fi
  47137. + fi
  47138. + fi
  47139. + fi
  47140. + # Done checking deplibs!
  47141. + deplibs=$newdeplibs
  47142. + fi
  47143. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  47144. + case $host in
  47145. + *-*-darwin*)
  47146. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47147. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47148. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  47149. + ;;
  47150. + esac
  47151. +
  47152. + # move library search paths that coincide with paths to not yet
  47153. + # installed libraries to the beginning of the library search list
  47154. + new_libs=
  47155. + for path in $notinst_path; do
  47156. + case " $new_libs " in
  47157. + *" -L$path/$objdir "*) ;;
  47158. + *)
  47159. + case " $deplibs " in
  47160. + *" -L$path/$objdir "*)
  47161. + new_libs="$new_libs -L$path/$objdir" ;;
  47162. + esac
  47163. + ;;
  47164. + esac
  47165. + done
  47166. + for deplib in $deplibs; do
  47167. + case $deplib in
  47168. + -L*)
  47169. + case " $new_libs " in
  47170. + *" $deplib "*) ;;
  47171. + *) new_libs="$new_libs $deplib" ;;
  47172. + esac
  47173. + ;;
  47174. + *) new_libs="$new_libs $deplib" ;;
  47175. + esac
  47176. + done
  47177. + deplibs="$new_libs"
  47178. +
  47179. + # All the library-specific variables (install_libdir is set above).
  47180. + library_names=
  47181. + old_library=
  47182. + dlname=
  47183. +
  47184. + # Test again, we may have decided not to build it any more
  47185. + if test "$build_libtool_libs" = yes; then
  47186. + if test "$hardcode_into_libs" = yes; then
  47187. + # Hardcode the library paths
  47188. + hardcode_libdirs=
  47189. + dep_rpath=
  47190. + rpath="$finalize_rpath"
  47191. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  47192. + for libdir in $rpath; do
  47193. + if test -n "$hardcode_libdir_flag_spec"; then
  47194. + if test -n "$hardcode_libdir_separator"; then
  47195. + if test -z "$hardcode_libdirs"; then
  47196. + hardcode_libdirs="$libdir"
  47197. + else
  47198. + # Just accumulate the unique libdirs.
  47199. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  47200. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  47201. + ;;
  47202. + *)
  47203. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  47204. + ;;
  47205. + esac
  47206. + fi
  47207. + else
  47208. + eval flag=\"$hardcode_libdir_flag_spec\"
  47209. + dep_rpath="$dep_rpath $flag"
  47210. + fi
  47211. + elif test -n "$runpath_var"; then
  47212. + case "$perm_rpath " in
  47213. + *" $libdir "*) ;;
  47214. + *) perm_rpath="$perm_rpath $libdir" ;;
  47215. + esac
  47216. + fi
  47217. + done
  47218. + # Substitute the hardcoded libdirs into the rpath.
  47219. + if test -n "$hardcode_libdir_separator" &&
  47220. + test -n "$hardcode_libdirs"; then
  47221. + libdir="$hardcode_libdirs"
  47222. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  47223. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  47224. + else
  47225. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  47226. + fi
  47227. + fi
  47228. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  47229. + # We should set the runpath_var.
  47230. + rpath=
  47231. + for dir in $perm_rpath; do
  47232. + rpath="$rpath$dir:"
  47233. + done
  47234. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  47235. + fi
  47236. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  47237. + fi
  47238. - # Try to get the absolute directory name.
  47239. - absdir=\`cd \"\$thisdir\" && pwd\`
  47240. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  47241. -"
  47242. + shlibpath="$finalize_shlibpath"
  47243. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  47244. + if test -n "$shlibpath"; then
  47245. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  47246. + fi
  47247. - if test "$fast_install" = yes; then
  47248. - $echo >> $output "\
  47249. - program=lt-'$outputname'$exeext
  47250. - progdir=\"\$thisdir/$objdir\"
  47251. + # Get the real and link names of the library.
  47252. + eval shared_ext=\"$shrext_cmds\"
  47253. + eval library_names=\"$library_names_spec\"
  47254. + set dummy $library_names
  47255. + shift
  47256. + realname="$1"
  47257. + shift
  47258. - if test ! -f \"\$progdir/\$program\" || \\
  47259. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  47260. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  47261. + if test -n "$soname_spec"; then
  47262. + eval soname=\"$soname_spec\"
  47263. + else
  47264. + soname="$realname"
  47265. + fi
  47266. + if test -z "$dlname"; then
  47267. + dlname=$soname
  47268. + fi
  47269. - file=\"\$\$-\$program\"
  47270. + lib="$output_objdir/$realname"
  47271. + linknames=
  47272. + for link
  47273. + do
  47274. + linknames="$linknames $link"
  47275. + done
  47276. - if test ! -d \"\$progdir\"; then
  47277. - $mkdir \"\$progdir\"
  47278. - else
  47279. - $rm \"\$progdir/\$file\"
  47280. - fi"
  47281. + # Use standard objects if they are pic
  47282. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  47283. + test "X$libobjs" = "X " && libobjs=
  47284. - $echo >> $output "\
  47285. + delfiles=
  47286. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  47287. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  47288. + export_symbols="$output_objdir/$libname.uexp"
  47289. + delfiles="$delfiles $export_symbols"
  47290. + fi
  47291. +
  47292. + orig_export_symbols=
  47293. + case $host_os in
  47294. + cygwin* | mingw* | cegcc*)
  47295. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  47296. + # exporting using user supplied symfile
  47297. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  47298. + # and it's NOT already a .def file. Must figure out
  47299. + # which of the given symbols are data symbols and tag
  47300. + # them as such. So, trigger use of export_symbols_cmds.
  47301. + # export_symbols gets reassigned inside the "prepare
  47302. + # the list of exported symbols" if statement, so the
  47303. + # include_expsyms logic still works.
  47304. + orig_export_symbols="$export_symbols"
  47305. + export_symbols=
  47306. + always_export_symbols=yes
  47307. + fi
  47308. + fi
  47309. + ;;
  47310. + esac
  47311. - # relink executable if necessary
  47312. - if test -n \"\$relink_command\"; then
  47313. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  47314. - else
  47315. - $echo \"\$relink_command_output\" >&2
  47316. - $rm \"\$progdir/\$file\"
  47317. - exit $EXIT_FAILURE
  47318. - fi
  47319. - fi
  47320. + # Prepare the list of exported symbols
  47321. + if test -z "$export_symbols"; then
  47322. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  47323. + func_verbose "generating symbol list for \`$libname.la'"
  47324. + export_symbols="$output_objdir/$libname.exp"
  47325. + $opt_dry_run || $RM $export_symbols
  47326. + cmds=$export_symbols_cmds
  47327. + save_ifs="$IFS"; IFS='~'
  47328. + for cmd in $cmds; do
  47329. + IFS="$save_ifs"
  47330. + eval cmd=\"$cmd\"
  47331. + func_len " $cmd"
  47332. + len=$func_len_result
  47333. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  47334. + func_show_eval "$cmd" 'exit $?'
  47335. + skipped_export=false
  47336. + else
  47337. + # The command line is too long to execute in one step.
  47338. + func_verbose "using reloadable object file for export list..."
  47339. + skipped_export=:
  47340. + # Break out early, otherwise skipped_export may be
  47341. + # set to false by a later but shorter cmd.
  47342. + break
  47343. + fi
  47344. + done
  47345. + IFS="$save_ifs"
  47346. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  47347. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  47348. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  47349. + fi
  47350. + fi
  47351. + fi
  47352. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  47353. - { $rm \"\$progdir/\$program\";
  47354. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  47355. - $rm \"\$progdir/\$file\"
  47356. - fi"
  47357. - else
  47358. - $echo >> $output "\
  47359. - program='$outputname'
  47360. - progdir=\"\$thisdir/$objdir\"
  47361. -"
  47362. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  47363. + tmp_export_symbols="$export_symbols"
  47364. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  47365. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  47366. + fi
  47367. +
  47368. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  47369. + # The given exports_symbols file has to be filtered, so filter it.
  47370. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  47371. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  47372. + # 's' commands which not all seds can handle. GNU sed should be fine
  47373. + # though. Also, the filter scales superlinearly with the number of
  47374. + # global variables. join(1) would be nice here, but unfortunately
  47375. + # isn't a blessed tool.
  47376. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  47377. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  47378. + export_symbols=$output_objdir/$libname.def
  47379. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  47380. fi
  47381. - $echo >> $output "\
  47382. + tmp_deplibs=
  47383. + for test_deplib in $deplibs; do
  47384. + case " $convenience " in
  47385. + *" $test_deplib "*) ;;
  47386. + *)
  47387. + tmp_deplibs="$tmp_deplibs $test_deplib"
  47388. + ;;
  47389. + esac
  47390. + done
  47391. + deplibs="$tmp_deplibs"
  47392. - if test -f \"\$progdir/\$program\"; then"
  47393. + if test -n "$convenience"; then
  47394. + if test -n "$whole_archive_flag_spec" &&
  47395. + test "$compiler_needs_object" = yes &&
  47396. + test -z "$libobjs"; then
  47397. + # extract the archives, so we have objects to list.
  47398. + # TODO: could optimize this to just extract one archive.
  47399. + whole_archive_flag_spec=
  47400. + fi
  47401. + if test -n "$whole_archive_flag_spec"; then
  47402. + save_libobjs=$libobjs
  47403. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  47404. + test "X$libobjs" = "X " && libobjs=
  47405. + else
  47406. + gentop="$output_objdir/${outputname}x"
  47407. + generated="$generated $gentop"
  47408. - # Export our shlibpath_var if we have one.
  47409. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  47410. - $echo >> $output "\
  47411. - # Add our own library path to $shlibpath_var
  47412. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  47413. + func_extract_archives $gentop $convenience
  47414. + libobjs="$libobjs $func_extract_archives_result"
  47415. + test "X$libobjs" = "X " && libobjs=
  47416. + fi
  47417. + fi
  47418. - # Some systems cannot cope with colon-terminated $shlibpath_var
  47419. - # The second colon is a workaround for a bug in BeOS R4 sed
  47420. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  47421. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  47422. + eval flag=\"$thread_safe_flag_spec\"
  47423. + linker_flags="$linker_flags $flag"
  47424. + fi
  47425. - export $shlibpath_var
  47426. -"
  47427. + # Make a backup of the uninstalled library when relinking
  47428. + if test "$mode" = relink; then
  47429. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  47430. fi
  47431. - # fixup the dll searchpath if we need to.
  47432. - if test -n "$dllsearchpath"; then
  47433. - $echo >> $output "\
  47434. - # Add the dll search path components to the executable PATH
  47435. - PATH=$dllsearchpath:\$PATH
  47436. -"
  47437. + # Do each of the archive commands.
  47438. + if test "$module" = yes && test -n "$module_cmds" ; then
  47439. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  47440. + eval test_cmds=\"$module_expsym_cmds\"
  47441. + cmds=$module_expsym_cmds
  47442. + else
  47443. + eval test_cmds=\"$module_cmds\"
  47444. + cmds=$module_cmds
  47445. + fi
  47446. + else
  47447. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  47448. + eval test_cmds=\"$archive_expsym_cmds\"
  47449. + cmds=$archive_expsym_cmds
  47450. + else
  47451. + eval test_cmds=\"$archive_cmds\"
  47452. + cmds=$archive_cmds
  47453. + fi
  47454. fi
  47455. - $echo >> $output "\
  47456. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  47457. - # Run the actual program with our arguments.
  47458. -"
  47459. - case $host in
  47460. - # Backslashes separate directories on plain windows
  47461. - *-*-mingw | *-*-os2*)
  47462. - $echo >> $output "\
  47463. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  47464. -"
  47465. - ;;
  47466. + if test "X$skipped_export" != "X:" &&
  47467. + func_len " $test_cmds" &&
  47468. + len=$func_len_result &&
  47469. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  47470. + :
  47471. + else
  47472. + # The command line is too long to link in one step, link piecewise
  47473. + # or, if using GNU ld and skipped_export is not :, use a linker
  47474. + # script.
  47475. - *)
  47476. - $echo >> $output "\
  47477. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  47478. -"
  47479. - ;;
  47480. - esac
  47481. - $echo >> $output "\
  47482. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  47483. - exit $EXIT_FAILURE
  47484. - fi
  47485. - else
  47486. - # The program doesn't exist.
  47487. - \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  47488. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  47489. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  47490. - exit $EXIT_FAILURE
  47491. - fi
  47492. -fi\
  47493. -"
  47494. - chmod +x $output
  47495. - fi
  47496. - exit $EXIT_SUCCESS
  47497. - ;;
  47498. - esac
  47499. + # Save the value of $output and $libobjs because we want to
  47500. + # use them later. If we have whole_archive_flag_spec, we
  47501. + # want to use save_libobjs as it was before
  47502. + # whole_archive_flag_spec was expanded, because we can't
  47503. + # assume the linker understands whole_archive_flag_spec.
  47504. + # This may have to be revisited, in case too many
  47505. + # convenience libraries get linked in and end up exceeding
  47506. + # the spec.
  47507. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  47508. + save_libobjs=$libobjs
  47509. + fi
  47510. + save_output=$output
  47511. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  47512. - # See if we need to build an old-fashioned archive.
  47513. - for oldlib in $oldlibs; do
  47514. + # Clear the reloadable object creation command queue and
  47515. + # initialize k to one.
  47516. + test_cmds=
  47517. + concat_cmds=
  47518. + objlist=
  47519. + last_robj=
  47520. + k=1
  47521. - if test "$build_libtool_libs" = convenience; then
  47522. - oldobjs="$libobjs_save"
  47523. - addlibs="$convenience"
  47524. - build_libtool_libs=no
  47525. - else
  47526. - if test "$build_libtool_libs" = module; then
  47527. - oldobjs="$libobjs_save"
  47528. - build_libtool_libs=no
  47529. - else
  47530. - oldobjs="$old_deplibs $non_pic_objects"
  47531. - fi
  47532. - addlibs="$old_convenience"
  47533. - fi
  47534. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  47535. + output=${output_objdir}/${output_la}.lnkscript
  47536. + func_verbose "creating GNU ld script: $output"
  47537. + $ECHO 'INPUT (' > $output
  47538. + for obj in $save_libobjs
  47539. + do
  47540. + $ECHO "$obj" >> $output
  47541. + done
  47542. + $ECHO ')' >> $output
  47543. + delfiles="$delfiles $output"
  47544. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  47545. + output=${output_objdir}/${output_la}.lnk
  47546. + func_verbose "creating linker input file list: $output"
  47547. + : > $output
  47548. + set x $save_libobjs
  47549. + shift
  47550. + firstobj=
  47551. + if test "$compiler_needs_object" = yes; then
  47552. + firstobj="$1 "
  47553. + shift
  47554. + fi
  47555. + for obj
  47556. + do
  47557. + $ECHO "$obj" >> $output
  47558. + done
  47559. + delfiles="$delfiles $output"
  47560. + output=$firstobj\"$file_list_spec$output\"
  47561. + else
  47562. + if test -n "$save_libobjs"; then
  47563. + func_verbose "creating reloadable object files..."
  47564. + output=$output_objdir/$output_la-${k}.$objext
  47565. + eval test_cmds=\"$reload_cmds\"
  47566. + func_len " $test_cmds"
  47567. + len0=$func_len_result
  47568. + len=$len0
  47569. +
  47570. + # Loop over the list of objects to be linked.
  47571. + for obj in $save_libobjs
  47572. + do
  47573. + func_len " $obj"
  47574. + func_arith $len + $func_len_result
  47575. + len=$func_arith_result
  47576. + if test "X$objlist" = X ||
  47577. + test "$len" -lt "$max_cmd_len"; then
  47578. + func_append objlist " $obj"
  47579. + else
  47580. + # The command $test_cmds is almost too long, add a
  47581. + # command to the queue.
  47582. + if test "$k" -eq 1 ; then
  47583. + # The first file doesn't have a previous command to add.
  47584. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  47585. + else
  47586. + # All subsequent reloadable object files will link in
  47587. + # the last one created.
  47588. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  47589. + fi
  47590. + last_robj=$output_objdir/$output_la-${k}.$objext
  47591. + func_arith $k + 1
  47592. + k=$func_arith_result
  47593. + output=$output_objdir/$output_la-${k}.$objext
  47594. + objlist=$obj
  47595. + func_len " $last_robj"
  47596. + func_arith $len0 + $func_len_result
  47597. + len=$func_arith_result
  47598. + fi
  47599. + done
  47600. + # Handle the remaining objects by creating one last
  47601. + # reloadable object file. All subsequent reloadable object
  47602. + # files will link in the last one created.
  47603. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  47604. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  47605. + if test -n "$last_robj"; then
  47606. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  47607. + fi
  47608. + delfiles="$delfiles $output"
  47609. +
  47610. + else
  47611. + output=
  47612. + fi
  47613. - if test -n "$addlibs"; then
  47614. - gentop="$output_objdir/${outputname}x"
  47615. - generated="$generated $gentop"
  47616. + if ${skipped_export-false}; then
  47617. + func_verbose "generating symbol list for \`$libname.la'"
  47618. + export_symbols="$output_objdir/$libname.exp"
  47619. + $opt_dry_run || $RM $export_symbols
  47620. + libobjs=$output
  47621. + # Append the command to create the export file.
  47622. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  47623. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  47624. + if test -n "$last_robj"; then
  47625. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  47626. + fi
  47627. + fi
  47628. - func_extract_archives $gentop $addlibs
  47629. - oldobjs="$oldobjs $func_extract_archives_result"
  47630. - fi
  47631. + test -n "$save_libobjs" &&
  47632. + func_verbose "creating a temporary reloadable object file: $output"
  47633. - # Do each command in the archive commands.
  47634. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  47635. - cmds=$old_archive_from_new_cmds
  47636. - else
  47637. - # POSIX demands no paths to be encoded in archives. We have
  47638. - # to avoid creating archives with duplicate basenames if we
  47639. - # might have to extract them afterwards, e.g., when creating a
  47640. - # static archive out of a convenience library, or when linking
  47641. - # the entirety of a libtool archive into another (currently
  47642. - # not supported by libtool).
  47643. - if (for obj in $oldobjs
  47644. - do
  47645. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  47646. - done | sort | sort -uc >/dev/null 2>&1); then
  47647. - :
  47648. - else
  47649. - $echo "copying selected object files to avoid basename conflicts..."
  47650. + # Loop through the commands generated above and execute them.
  47651. + save_ifs="$IFS"; IFS='~'
  47652. + for cmd in $concat_cmds; do
  47653. + IFS="$save_ifs"
  47654. + $opt_silent || {
  47655. + func_quote_for_expand "$cmd"
  47656. + eval "func_echo $func_quote_for_expand_result"
  47657. + }
  47658. + $opt_dry_run || eval "$cmd" || {
  47659. + lt_exit=$?
  47660. +
  47661. + # Restore the uninstalled library and exit
  47662. + if test "$mode" = relink; then
  47663. + ( cd "$output_objdir" && \
  47664. + $RM "${realname}T" && \
  47665. + $MV "${realname}U" "$realname" )
  47666. + fi
  47667. - if test -z "$gentop"; then
  47668. - gentop="$output_objdir/${outputname}x"
  47669. - generated="$generated $gentop"
  47670. + exit $lt_exit
  47671. + }
  47672. + done
  47673. + IFS="$save_ifs"
  47674. - $show "${rm}r $gentop"
  47675. - $run ${rm}r "$gentop"
  47676. - $show "$mkdir $gentop"
  47677. - $run $mkdir "$gentop"
  47678. - exit_status=$?
  47679. - if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  47680. - exit $exit_status
  47681. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  47682. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  47683. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  47684. fi
  47685. fi
  47686. - save_oldobjs=$oldobjs
  47687. - oldobjs=
  47688. - counter=1
  47689. - for obj in $save_oldobjs
  47690. - do
  47691. - objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  47692. - case " $oldobjs " in
  47693. - " ") oldobjs=$obj ;;
  47694. - *[\ /]"$objbase "*)
  47695. - while :; do
  47696. - # Make sure we don't pick an alternate name that also
  47697. - # overlaps.
  47698. - newobj=lt$counter-$objbase
  47699. - counter=`expr $counter + 1`
  47700. - case " $oldobjs " in
  47701. - *[\ /]"$newobj "*) ;;
  47702. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  47703. - esac
  47704. - done
  47705. - $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  47706. - $run ln "$obj" "$gentop/$newobj" ||
  47707. - $run cp "$obj" "$gentop/$newobj"
  47708. - oldobjs="$oldobjs $gentop/$newobj"
  47709. - ;;
  47710. - *) oldobjs="$oldobjs $obj" ;;
  47711. - esac
  47712. - done
  47713. - fi
  47714. + if ${skipped_export-false}; then
  47715. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  47716. + tmp_export_symbols="$export_symbols"
  47717. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  47718. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  47719. + fi
  47720. +
  47721. + if test -n "$orig_export_symbols"; then
  47722. + # The given exports_symbols file has to be filtered, so filter it.
  47723. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  47724. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  47725. + # 's' commands which not all seds can handle. GNU sed should be fine
  47726. + # though. Also, the filter scales superlinearly with the number of
  47727. + # global variables. join(1) would be nice here, but unfortunately
  47728. + # isn't a blessed tool.
  47729. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  47730. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  47731. + export_symbols=$output_objdir/$libname.def
  47732. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  47733. + fi
  47734. + fi
  47735. - eval cmds=\"$old_archive_cmds\"
  47736. + libobjs=$output
  47737. + # Restore the value of output.
  47738. + output=$save_output
  47739. - if len=`expr "X$cmds" : ".*"` &&
  47740. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  47741. - cmds=$old_archive_cmds
  47742. - else
  47743. - # the command line is too long to link in one step, link in parts
  47744. - $echo "using piecewise archive linking..."
  47745. - save_RANLIB=$RANLIB
  47746. - RANLIB=:
  47747. - objlist=
  47748. - concat_cmds=
  47749. - save_oldobjs=$oldobjs
  47750. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  47751. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  47752. + test "X$libobjs" = "X " && libobjs=
  47753. + fi
  47754. + # Expand the library linking commands again to reset the
  47755. + # value of $libobjs for piecewise linking.
  47756. - # Is there a better way of finding the last object in the list?
  47757. - for obj in $save_oldobjs
  47758. - do
  47759. - last_oldobj=$obj
  47760. - done
  47761. - for obj in $save_oldobjs
  47762. - do
  47763. - oldobjs="$objlist $obj"
  47764. - objlist="$objlist $obj"
  47765. - eval test_cmds=\"$old_archive_cmds\"
  47766. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  47767. - test "$len" -le "$max_cmd_len"; then
  47768. - :
  47769. + # Do each of the archive commands.
  47770. + if test "$module" = yes && test -n "$module_cmds" ; then
  47771. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  47772. + cmds=$module_expsym_cmds
  47773. else
  47774. - # the above command should be used before it gets too long
  47775. - oldobjs=$objlist
  47776. - if test "$obj" = "$last_oldobj" ; then
  47777. - RANLIB=$save_RANLIB
  47778. - fi
  47779. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  47780. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  47781. - objlist=
  47782. + cmds=$module_cmds
  47783. fi
  47784. - done
  47785. - RANLIB=$save_RANLIB
  47786. - oldobjs=$objlist
  47787. - if test "X$oldobjs" = "X" ; then
  47788. - eval cmds=\"\$concat_cmds\"
  47789. else
  47790. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  47791. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  47792. + cmds=$archive_expsym_cmds
  47793. + else
  47794. + cmds=$archive_cmds
  47795. + fi
  47796. fi
  47797. fi
  47798. - fi
  47799. - save_ifs="$IFS"; IFS='~'
  47800. - for cmd in $cmds; do
  47801. - eval cmd=\"$cmd\"
  47802. - IFS="$save_ifs"
  47803. - $show "$cmd"
  47804. - $run eval "$cmd" || exit $?
  47805. - done
  47806. - IFS="$save_ifs"
  47807. - done
  47808. - if test -n "$generated"; then
  47809. - $show "${rm}r$generated"
  47810. - $run ${rm}r$generated
  47811. - fi
  47812. + if test -n "$delfiles"; then
  47813. + # Append the command to remove temporary files to $cmds.
  47814. + eval cmds=\"\$cmds~\$RM $delfiles\"
  47815. + fi
  47816. - # Now create the libtool archive.
  47817. - case $output in
  47818. - *.la)
  47819. - old_library=
  47820. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  47821. - $show "creating $output"
  47822. + # Add any objects from preloaded convenience libraries
  47823. + if test -n "$dlprefiles"; then
  47824. + gentop="$output_objdir/${outputname}x"
  47825. + generated="$generated $gentop"
  47826. - # Preserve any variables that may affect compiler behavior
  47827. - for var in $variables_saved_for_relink; do
  47828. - if eval test -z \"\${$var+set}\"; then
  47829. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  47830. - elif eval var_value=\$$var; test -z "$var_value"; then
  47831. - relink_command="$var=; export $var; $relink_command"
  47832. - else
  47833. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  47834. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  47835. + func_extract_archives $gentop $dlprefiles
  47836. + libobjs="$libobjs $func_extract_archives_result"
  47837. + test "X$libobjs" = "X " && libobjs=
  47838. fi
  47839. - done
  47840. - # Quote the link command for shipping.
  47841. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  47842. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  47843. - if test "$hardcode_automatic" = yes ; then
  47844. - relink_command=
  47845. - fi
  47846. + save_ifs="$IFS"; IFS='~'
  47847. + for cmd in $cmds; do
  47848. + IFS="$save_ifs"
  47849. + eval cmd=\"$cmd\"
  47850. + $opt_silent || {
  47851. + func_quote_for_expand "$cmd"
  47852. + eval "func_echo $func_quote_for_expand_result"
  47853. + }
  47854. + $opt_dry_run || eval "$cmd" || {
  47855. + lt_exit=$?
  47856. - # Only create the output if not a dry run.
  47857. - if test -z "$run"; then
  47858. - for installed in no yes; do
  47859. - if test "$installed" = yes; then
  47860. - if test -z "$install_libdir"; then
  47861. - break
  47862. + # Restore the uninstalled library and exit
  47863. + if test "$mode" = relink; then
  47864. + ( cd "$output_objdir" && \
  47865. + $RM "${realname}T" && \
  47866. + $MV "${realname}U" "$realname" )
  47867. fi
  47868. - output="$output_objdir/$outputname"i
  47869. - # Replace all uninstalled libtool libraries with the installed ones
  47870. - newdependency_libs=
  47871. - for deplib in $dependency_libs; do
  47872. - case $deplib in
  47873. - *.la)
  47874. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  47875. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  47876. - if test -z "$libdir"; then
  47877. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  47878. - exit $EXIT_FAILURE
  47879. - fi
  47880. - newdependency_libs="$newdependency_libs $libdir/$name"
  47881. - ;;
  47882. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  47883. - esac
  47884. - done
  47885. - dependency_libs="$newdependency_libs"
  47886. - newdlfiles=
  47887. - for lib in $dlfiles; do
  47888. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  47889. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  47890. - if test -z "$libdir"; then
  47891. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  47892. - exit $EXIT_FAILURE
  47893. - fi
  47894. - newdlfiles="$newdlfiles $libdir/$name"
  47895. - done
  47896. - dlfiles="$newdlfiles"
  47897. - newdlprefiles=
  47898. - for lib in $dlprefiles; do
  47899. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  47900. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  47901. - if test -z "$libdir"; then
  47902. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  47903. - exit $EXIT_FAILURE
  47904. - fi
  47905. - newdlprefiles="$newdlprefiles $libdir/$name"
  47906. - done
  47907. - dlprefiles="$newdlprefiles"
  47908. - else
  47909. - newdlfiles=
  47910. - for lib in $dlfiles; do
  47911. - case $lib in
  47912. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  47913. - *) abs=`pwd`"/$lib" ;;
  47914. - esac
  47915. - newdlfiles="$newdlfiles $abs"
  47916. - done
  47917. - dlfiles="$newdlfiles"
  47918. - newdlprefiles=
  47919. - for lib in $dlprefiles; do
  47920. - case $lib in
  47921. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  47922. - *) abs=`pwd`"/$lib" ;;
  47923. - esac
  47924. - newdlprefiles="$newdlprefiles $abs"
  47925. - done
  47926. - dlprefiles="$newdlprefiles"
  47927. - fi
  47928. - $rm $output
  47929. - # place dlname in correct position for cygwin
  47930. - tdlname=$dlname
  47931. - case $host,$output,$installed,$module,$dlname in
  47932. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  47933. - esac
  47934. - $echo > $output "\
  47935. -# $outputname - a libtool library file
  47936. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  47937. -#
  47938. -# Please DO NOT delete this file!
  47939. -# It is necessary for linking the library.
  47940. -
  47941. -# The name that we can dlopen(3).
  47942. -dlname='$tdlname'
  47943. -# Names of this library.
  47944. -library_names='$library_names'
  47945. -
  47946. -# The name of the static archive.
  47947. -old_library='$old_library'
  47948. -
  47949. -# Libraries that this one depends upon.
  47950. -dependency_libs='$dependency_libs'
  47951. -
  47952. -# Version information for $libname.
  47953. -current=$current
  47954. -age=$age
  47955. -revision=$revision
  47956. + exit $lt_exit
  47957. + }
  47958. + done
  47959. + IFS="$save_ifs"
  47960. -# Is this an already installed library?
  47961. -installed=$installed
  47962. + # Restore the uninstalled library and exit
  47963. + if test "$mode" = relink; then
  47964. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  47965. -# Should we warn about portability when linking against -modules?
  47966. -shouldnotlink=$module
  47967. + if test -n "$convenience"; then
  47968. + if test -z "$whole_archive_flag_spec"; then
  47969. + func_show_eval '${RM}r "$gentop"'
  47970. + fi
  47971. + fi
  47972. -# Files to dlopen/dlpreopen
  47973. -dlopen='$dlfiles'
  47974. -dlpreopen='$dlprefiles'
  47975. + exit $EXIT_SUCCESS
  47976. + fi
  47977. -# Directory that this library needs to be installed in:
  47978. -libdir='$install_libdir'"
  47979. - if test "$installed" = no && test "$need_relink" = yes; then
  47980. - $echo >> $output "\
  47981. -relink_command=\"$relink_command\""
  47982. + # Create links to the real library.
  47983. + for linkname in $linknames; do
  47984. + if test "$realname" != "$linkname"; then
  47985. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  47986. fi
  47987. done
  47988. - fi
  47989. -
  47990. - # Do a symbolic link so that the libtool archive can be found in
  47991. - # LD_LIBRARY_PATH before the program is installed.
  47992. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  47993. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  47994. - ;;
  47995. - esac
  47996. - exit $EXIT_SUCCESS
  47997. - ;;
  47998. -
  47999. - # libtool install mode
  48000. - install)
  48001. - modename="$modename: install"
  48002. -
  48003. - # There may be an optional sh(1) argument at the beginning of
  48004. - # install_prog (especially on Windows NT).
  48005. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  48006. - # Allow the use of GNU shtool's install command.
  48007. - $echo "X$nonopt" | grep shtool > /dev/null; then
  48008. - # Aesthetically quote it.
  48009. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  48010. - case $arg in
  48011. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48012. - arg="\"$arg\""
  48013. - ;;
  48014. - esac
  48015. - install_prog="$arg "
  48016. - arg="$1"
  48017. - shift
  48018. - else
  48019. - install_prog=
  48020. - arg=$nonopt
  48021. - fi
  48022. - # The real first argument should be the name of the installation program.
  48023. - # Aesthetically quote it.
  48024. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48025. - case $arg in
  48026. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48027. - arg="\"$arg\""
  48028. + # If -module or -export-dynamic was specified, set the dlname.
  48029. + if test "$module" = yes || test "$export_dynamic" = yes; then
  48030. + # On all known operating systems, these are identical.
  48031. + dlname="$soname"
  48032. + fi
  48033. + fi
  48034. ;;
  48035. - esac
  48036. - install_prog="$install_prog$arg"
  48037. - # We need to accept at least all the BSD install flags.
  48038. - dest=
  48039. - files=
  48040. - opts=
  48041. - prev=
  48042. - install_type=
  48043. - isdir=no
  48044. - stripme=
  48045. - for arg
  48046. - do
  48047. - if test -n "$dest"; then
  48048. - files="$files $dest"
  48049. - dest=$arg
  48050. - continue
  48051. + obj)
  48052. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48053. + func_warning "\`-dlopen' is ignored for objects"
  48054. fi
  48055. - case $arg in
  48056. - -d) isdir=yes ;;
  48057. - -f)
  48058. - case " $install_prog " in
  48059. - *[\\\ /]cp\ *) ;;
  48060. - *) prev=$arg ;;
  48061. - esac
  48062. - ;;
  48063. - -g | -m | -o) prev=$arg ;;
  48064. - -s)
  48065. - stripme=" -s"
  48066. - continue
  48067. - ;;
  48068. - -*)
  48069. + case " $deplibs" in
  48070. + *\ -l* | *\ -L*)
  48071. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  48072. + esac
  48073. +
  48074. + test -n "$rpath" && \
  48075. + func_warning "\`-rpath' is ignored for objects"
  48076. +
  48077. + test -n "$xrpath" && \
  48078. + func_warning "\`-R' is ignored for objects"
  48079. +
  48080. + test -n "$vinfo" && \
  48081. + func_warning "\`-version-info' is ignored for objects"
  48082. +
  48083. + test -n "$release" && \
  48084. + func_warning "\`-release' is ignored for objects"
  48085. +
  48086. + case $output in
  48087. + *.lo)
  48088. + test -n "$objs$old_deplibs" && \
  48089. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  48090. +
  48091. + libobj=$output
  48092. + func_lo2o "$libobj"
  48093. + obj=$func_lo2o_result
  48094. ;;
  48095. *)
  48096. - # If the previous option needed an argument, then skip it.
  48097. - if test -n "$prev"; then
  48098. - prev=
  48099. - else
  48100. - dest=$arg
  48101. - continue
  48102. - fi
  48103. + libobj=
  48104. + obj="$output"
  48105. ;;
  48106. esac
  48107. - # Aesthetically quote the argument.
  48108. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  48109. - case $arg in
  48110. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48111. - arg="\"$arg\""
  48112. - ;;
  48113. - esac
  48114. - install_prog="$install_prog $arg"
  48115. - done
  48116. + # Delete the old objects.
  48117. + $opt_dry_run || $RM $obj $libobj
  48118. - if test -z "$install_prog"; then
  48119. - $echo "$modename: you must specify an install program" 1>&2
  48120. - $echo "$help" 1>&2
  48121. - exit $EXIT_FAILURE
  48122. - fi
  48123. + # Objects from convenience libraries. This assumes
  48124. + # single-version convenience libraries. Whenever we create
  48125. + # different ones for PIC/non-PIC, this we'll have to duplicate
  48126. + # the extraction.
  48127. + reload_conv_objs=
  48128. + gentop=
  48129. + # reload_cmds runs $LD directly, so let us get rid of
  48130. + # -Wl from whole_archive_flag_spec and hope we can get by with
  48131. + # turning comma into space..
  48132. + wl=
  48133. - if test -n "$prev"; then
  48134. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  48135. - $echo "$help" 1>&2
  48136. - exit $EXIT_FAILURE
  48137. - fi
  48138. + if test -n "$convenience"; then
  48139. + if test -n "$whole_archive_flag_spec"; then
  48140. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  48141. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  48142. + else
  48143. + gentop="$output_objdir/${obj}x"
  48144. + generated="$generated $gentop"
  48145. - if test -z "$files"; then
  48146. - if test -z "$dest"; then
  48147. - $echo "$modename: no file or destination specified" 1>&2
  48148. - else
  48149. - $echo "$modename: you must specify a destination" 1>&2
  48150. + func_extract_archives $gentop $convenience
  48151. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  48152. + fi
  48153. fi
  48154. - $echo "$help" 1>&2
  48155. - exit $EXIT_FAILURE
  48156. - fi
  48157. - # Strip any trailing slash from the destination.
  48158. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  48159. + # Create the old-style object.
  48160. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  48161. - # Check to see that the destination is a directory.
  48162. - test -d "$dest" && isdir=yes
  48163. - if test "$isdir" = yes; then
  48164. - destdir="$dest"
  48165. - destname=
  48166. - else
  48167. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  48168. - test "X$destdir" = "X$dest" && destdir=.
  48169. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  48170. + output="$obj"
  48171. + func_execute_cmds "$reload_cmds" 'exit $?'
  48172. - # Not a directory, so check to see that there is only one file specified.
  48173. - set dummy $files
  48174. - if test "$#" -gt 2; then
  48175. - $echo "$modename: \`$dest' is not a directory" 1>&2
  48176. - $echo "$help" 1>&2
  48177. - exit $EXIT_FAILURE
  48178. + # Exit if we aren't doing a library object file.
  48179. + if test -z "$libobj"; then
  48180. + if test -n "$gentop"; then
  48181. + func_show_eval '${RM}r "$gentop"'
  48182. + fi
  48183. +
  48184. + exit $EXIT_SUCCESS
  48185. fi
  48186. - fi
  48187. - case $destdir in
  48188. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  48189. - *)
  48190. - for file in $files; do
  48191. - case $file in
  48192. - *.lo) ;;
  48193. - *)
  48194. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  48195. - $echo "$help" 1>&2
  48196. - exit $EXIT_FAILURE
  48197. - ;;
  48198. - esac
  48199. - done
  48200. +
  48201. + if test "$build_libtool_libs" != yes; then
  48202. + if test -n "$gentop"; then
  48203. + func_show_eval '${RM}r "$gentop"'
  48204. + fi
  48205. +
  48206. + # Create an invalid libtool object if no PIC, so that we don't
  48207. + # accidentally link it into a program.
  48208. + # $show "echo timestamp > $libobj"
  48209. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  48210. + exit $EXIT_SUCCESS
  48211. + fi
  48212. +
  48213. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  48214. + # Only do commands if we really have different PIC objects.
  48215. + reload_objs="$libobjs $reload_conv_objs"
  48216. + output="$libobj"
  48217. + func_execute_cmds "$reload_cmds" 'exit $?'
  48218. + fi
  48219. +
  48220. + if test -n "$gentop"; then
  48221. + func_show_eval '${RM}r "$gentop"'
  48222. + fi
  48223. +
  48224. + exit $EXIT_SUCCESS
  48225. ;;
  48226. - esac
  48227. - # This variable tells wrapper scripts just to set variables rather
  48228. - # than running their programs.
  48229. - libtool_install_magic="$magic"
  48230. + prog)
  48231. + case $host in
  48232. + *cygwin*) func_stripname '' '.exe' "$output"
  48233. + output=$func_stripname_result.exe;;
  48234. + esac
  48235. + test -n "$vinfo" && \
  48236. + func_warning "\`-version-info' is ignored for programs"
  48237. - staticlibs=
  48238. - future_libdirs=
  48239. - current_libdirs=
  48240. - for file in $files; do
  48241. + test -n "$release" && \
  48242. + func_warning "\`-release' is ignored for programs"
  48243. - # Do each installation.
  48244. - case $file in
  48245. - *.$libext)
  48246. - # Do the static libraries later.
  48247. - staticlibs="$staticlibs $file"
  48248. + test "$preload" = yes \
  48249. + && test "$dlopen_support" = unknown \
  48250. + && test "$dlopen_self" = unknown \
  48251. + && test "$dlopen_self_static" = unknown && \
  48252. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  48253. +
  48254. + case $host in
  48255. + *-*-rhapsody* | *-*-darwin1.[012])
  48256. + # On Rhapsody replace the C library is the System framework
  48257. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  48258. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  48259. ;;
  48260. + esac
  48261. - *.la)
  48262. - # Check to see that this really is a libtool archive.
  48263. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  48264. - else
  48265. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  48266. - $echo "$help" 1>&2
  48267. - exit $EXIT_FAILURE
  48268. + case $host in
  48269. + *-*-darwin*)
  48270. + # Don't allow lazy linking, it breaks C++ global constructors
  48271. + # But is supposedly fixed on 10.4 or later (yay!).
  48272. + if test "$tagname" = CXX ; then
  48273. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  48274. + 10.[0123])
  48275. + compile_command="$compile_command ${wl}-bind_at_load"
  48276. + finalize_command="$finalize_command ${wl}-bind_at_load"
  48277. + ;;
  48278. + esac
  48279. fi
  48280. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  48281. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  48282. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  48283. + ;;
  48284. + esac
  48285. - library_names=
  48286. - old_library=
  48287. - relink_command=
  48288. - # If there is no directory component, then add one.
  48289. - case $file in
  48290. - */* | *\\*) . $file ;;
  48291. - *) . ./$file ;;
  48292. - esac
  48293. - # Add the libdir to current_libdirs if it is the destination.
  48294. - if test "X$destdir" = "X$libdir"; then
  48295. - case "$current_libdirs " in
  48296. - *" $libdir "*) ;;
  48297. - *) current_libdirs="$current_libdirs $libdir" ;;
  48298. + # move library search paths that coincide with paths to not yet
  48299. + # installed libraries to the beginning of the library search list
  48300. + new_libs=
  48301. + for path in $notinst_path; do
  48302. + case " $new_libs " in
  48303. + *" -L$path/$objdir "*) ;;
  48304. + *)
  48305. + case " $compile_deplibs " in
  48306. + *" -L$path/$objdir "*)
  48307. + new_libs="$new_libs -L$path/$objdir" ;;
  48308. esac
  48309. - else
  48310. - # Note the libdir as a future libdir.
  48311. - case "$future_libdirs " in
  48312. - *" $libdir "*) ;;
  48313. - *) future_libdirs="$future_libdirs $libdir" ;;
  48314. + ;;
  48315. + esac
  48316. + done
  48317. + for deplib in $compile_deplibs; do
  48318. + case $deplib in
  48319. + -L*)
  48320. + case " $new_libs " in
  48321. + *" $deplib "*) ;;
  48322. + *) new_libs="$new_libs $deplib" ;;
  48323. esac
  48324. - fi
  48325. + ;;
  48326. + *) new_libs="$new_libs $deplib" ;;
  48327. + esac
  48328. + done
  48329. + compile_deplibs="$new_libs"
  48330. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  48331. - test "X$dir" = "X$file/" && dir=
  48332. - dir="$dir$objdir"
  48333. - if test -n "$relink_command"; then
  48334. - # Determine the prefix the user has applied to our future dir.
  48335. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  48336. + compile_command="$compile_command $compile_deplibs"
  48337. + finalize_command="$finalize_command $finalize_deplibs"
  48338. - # Don't allow the user to place us outside of our expected
  48339. - # location b/c this prevents finding dependent libraries that
  48340. - # are installed to the same prefix.
  48341. - # At present, this check doesn't affect windows .dll's that
  48342. - # are installed into $libdir/../bin (currently, that works fine)
  48343. - # but it's something to keep an eye on.
  48344. - if test "$inst_prefix_dir" = "$destdir"; then
  48345. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  48346. - exit $EXIT_FAILURE
  48347. - fi
  48348. + if test -n "$rpath$xrpath"; then
  48349. + # If the user specified any rpath flags, then add them.
  48350. + for libdir in $rpath $xrpath; do
  48351. + # This is the magic to use -rpath.
  48352. + case "$finalize_rpath " in
  48353. + *" $libdir "*) ;;
  48354. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  48355. + esac
  48356. + done
  48357. + fi
  48358. - if test -n "$inst_prefix_dir"; then
  48359. - # Stick the inst_prefix_dir data into the link command.
  48360. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  48361. + # Now hardcode the library paths
  48362. + rpath=
  48363. + hardcode_libdirs=
  48364. + for libdir in $compile_rpath $finalize_rpath; do
  48365. + if test -n "$hardcode_libdir_flag_spec"; then
  48366. + if test -n "$hardcode_libdir_separator"; then
  48367. + if test -z "$hardcode_libdirs"; then
  48368. + hardcode_libdirs="$libdir"
  48369. + else
  48370. + # Just accumulate the unique libdirs.
  48371. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  48372. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  48373. + ;;
  48374. + *)
  48375. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  48376. + ;;
  48377. + esac
  48378. + fi
  48379. else
  48380. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  48381. + eval flag=\"$hardcode_libdir_flag_spec\"
  48382. + rpath="$rpath $flag"
  48383. fi
  48384. + elif test -n "$runpath_var"; then
  48385. + case "$perm_rpath " in
  48386. + *" $libdir "*) ;;
  48387. + *) perm_rpath="$perm_rpath $libdir" ;;
  48388. + esac
  48389. + fi
  48390. + case $host in
  48391. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  48392. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  48393. + case :$dllsearchpath: in
  48394. + *":$libdir:"*) ;;
  48395. + ::) dllsearchpath=$libdir;;
  48396. + *) dllsearchpath="$dllsearchpath:$libdir";;
  48397. + esac
  48398. + case :$dllsearchpath: in
  48399. + *":$testbindir:"*) ;;
  48400. + ::) dllsearchpath=$testbindir;;
  48401. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  48402. + esac
  48403. + ;;
  48404. + esac
  48405. + done
  48406. + # Substitute the hardcoded libdirs into the rpath.
  48407. + if test -n "$hardcode_libdir_separator" &&
  48408. + test -n "$hardcode_libdirs"; then
  48409. + libdir="$hardcode_libdirs"
  48410. + eval rpath=\" $hardcode_libdir_flag_spec\"
  48411. + fi
  48412. + compile_rpath="$rpath"
  48413. - $echo "$modename: warning: relinking \`$file'" 1>&2
  48414. - $show "$relink_command"
  48415. - if $run eval "$relink_command"; then :
  48416. + rpath=
  48417. + hardcode_libdirs=
  48418. + for libdir in $finalize_rpath; do
  48419. + if test -n "$hardcode_libdir_flag_spec"; then
  48420. + if test -n "$hardcode_libdir_separator"; then
  48421. + if test -z "$hardcode_libdirs"; then
  48422. + hardcode_libdirs="$libdir"
  48423. + else
  48424. + # Just accumulate the unique libdirs.
  48425. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  48426. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  48427. + ;;
  48428. + *)
  48429. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  48430. + ;;
  48431. + esac
  48432. + fi
  48433. else
  48434. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  48435. - exit $EXIT_FAILURE
  48436. + eval flag=\"$hardcode_libdir_flag_spec\"
  48437. + rpath="$rpath $flag"
  48438. fi
  48439. + elif test -n "$runpath_var"; then
  48440. + case "$finalize_perm_rpath " in
  48441. + *" $libdir "*) ;;
  48442. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  48443. + esac
  48444. fi
  48445. + done
  48446. + # Substitute the hardcoded libdirs into the rpath.
  48447. + if test -n "$hardcode_libdir_separator" &&
  48448. + test -n "$hardcode_libdirs"; then
  48449. + libdir="$hardcode_libdirs"
  48450. + eval rpath=\" $hardcode_libdir_flag_spec\"
  48451. + fi
  48452. + finalize_rpath="$rpath"
  48453. - # See the names of the shared library.
  48454. - set dummy $library_names
  48455. - if test -n "$2"; then
  48456. - realname="$2"
  48457. - shift
  48458. - shift
  48459. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  48460. + # Transform all the library objects into standard objects.
  48461. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48462. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  48463. + fi
  48464. - srcname="$realname"
  48465. - test -n "$relink_command" && srcname="$realname"T
  48466. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  48467. - # Install the shared library and build the symlinks.
  48468. - $show "$install_prog $dir/$srcname $destdir/$realname"
  48469. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  48470. - if test -n "$stripme" && test -n "$striplib"; then
  48471. - $show "$striplib $destdir/$realname"
  48472. - $run eval "$striplib $destdir/$realname" || exit $?
  48473. - fi
  48474. + # template prelinking step
  48475. + if test -n "$prelink_cmds"; then
  48476. + func_execute_cmds "$prelink_cmds" 'exit $?'
  48477. + fi
  48478. - if test "$#" -gt 0; then
  48479. - # Delete the old symlinks, and create new ones.
  48480. - # Try `ln -sf' first, because the `ln' binary might depend on
  48481. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  48482. - # so we also need to try rm && ln -s.
  48483. - for linkname
  48484. - do
  48485. - if test "$linkname" != "$realname"; then
  48486. - $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  48487. - $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  48488. - fi
  48489. - done
  48490. - fi
  48491. + wrappers_required=yes
  48492. + case $host in
  48493. + *cygwin* | *mingw* )
  48494. + if test "$build_libtool_libs" != yes; then
  48495. + wrappers_required=no
  48496. + fi
  48497. + ;;
  48498. + *cegcc)
  48499. + # Disable wrappers for cegcc, we are cross compiling anyway.
  48500. + wrappers_required=no
  48501. + ;;
  48502. + *)
  48503. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  48504. + wrappers_required=no
  48505. + fi
  48506. + ;;
  48507. + esac
  48508. + if test "$wrappers_required" = no; then
  48509. + # Replace the output file specification.
  48510. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  48511. + link_command="$compile_command$compile_rpath"
  48512. - # Do each command in the postinstall commands.
  48513. - lib="$destdir/$realname"
  48514. - cmds=$postinstall_cmds
  48515. - save_ifs="$IFS"; IFS='~'
  48516. - for cmd in $cmds; do
  48517. - IFS="$save_ifs"
  48518. - eval cmd=\"$cmd\"
  48519. - $show "$cmd"
  48520. - $run eval "$cmd" || {
  48521. - lt_exit=$?
  48522. -
  48523. - # Restore the uninstalled library and exit
  48524. - if test "$mode" = relink; then
  48525. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  48526. - fi
  48527. + # We have no uninstalled library dependencies, so finalize right now.
  48528. + exit_status=0
  48529. + func_show_eval "$link_command" 'exit_status=$?'
  48530. - exit $lt_exit
  48531. - }
  48532. - done
  48533. - IFS="$save_ifs"
  48534. + # Delete the generated files.
  48535. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  48536. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  48537. fi
  48538. - # Install the pseudo-library for information purposes.
  48539. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  48540. - instname="$dir/$name"i
  48541. - $show "$install_prog $instname $destdir/$name"
  48542. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  48543. -
  48544. - # Maybe install the static library, too.
  48545. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  48546. - ;;
  48547. + exit $exit_status
  48548. + fi
  48549. - *.lo)
  48550. - # Install (i.e. copy) a libtool object.
  48551. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  48552. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  48553. + fi
  48554. + if test -n "$finalize_shlibpath"; then
  48555. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  48556. + fi
  48557. - # Figure out destination file name, if it wasn't already specified.
  48558. - if test -n "$destname"; then
  48559. - destfile="$destdir/$destname"
  48560. - else
  48561. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  48562. - destfile="$destdir/$destfile"
  48563. + compile_var=
  48564. + finalize_var=
  48565. + if test -n "$runpath_var"; then
  48566. + if test -n "$perm_rpath"; then
  48567. + # We should set the runpath_var.
  48568. + rpath=
  48569. + for dir in $perm_rpath; do
  48570. + rpath="$rpath$dir:"
  48571. + done
  48572. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  48573. fi
  48574. -
  48575. - # Deduce the name of the destination old-style object file.
  48576. - case $destfile in
  48577. - *.lo)
  48578. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  48579. - ;;
  48580. - *.$objext)
  48581. - staticdest="$destfile"
  48582. - destfile=
  48583. - ;;
  48584. - *)
  48585. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  48586. - $echo "$help" 1>&2
  48587. - exit $EXIT_FAILURE
  48588. - ;;
  48589. - esac
  48590. -
  48591. - # Install the libtool object if requested.
  48592. - if test -n "$destfile"; then
  48593. - $show "$install_prog $file $destfile"
  48594. - $run eval "$install_prog $file $destfile" || exit $?
  48595. + if test -n "$finalize_perm_rpath"; then
  48596. + # We should set the runpath_var.
  48597. + rpath=
  48598. + for dir in $finalize_perm_rpath; do
  48599. + rpath="$rpath$dir:"
  48600. + done
  48601. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  48602. fi
  48603. + fi
  48604. - # Install the old object if enabled.
  48605. - if test "$build_old_libs" = yes; then
  48606. - # Deduce the name of the old-style object file.
  48607. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  48608. -
  48609. - $show "$install_prog $staticobj $staticdest"
  48610. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  48611. - fi
  48612. + if test "$no_install" = yes; then
  48613. + # We don't need to create a wrapper script.
  48614. + link_command="$compile_var$compile_command$compile_rpath"
  48615. + # Replace the output file specification.
  48616. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  48617. + # Delete the old output file.
  48618. + $opt_dry_run || $RM $output
  48619. + # Link the executable and exit
  48620. + func_show_eval "$link_command" 'exit $?'
  48621. exit $EXIT_SUCCESS
  48622. - ;;
  48623. + fi
  48624. - *)
  48625. - # Figure out destination file name, if it wasn't already specified.
  48626. - if test -n "$destname"; then
  48627. - destfile="$destdir/$destname"
  48628. + if test "$hardcode_action" = relink; then
  48629. + # Fast installation is not supported
  48630. + link_command="$compile_var$compile_command$compile_rpath"
  48631. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  48632. +
  48633. + func_warning "this platform does not like uninstalled shared libraries"
  48634. + func_warning "\`$output' will be relinked during installation"
  48635. + else
  48636. + if test "$fast_install" != no; then
  48637. + link_command="$finalize_var$compile_command$finalize_rpath"
  48638. + if test "$fast_install" = yes; then
  48639. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  48640. + else
  48641. + # fast_install is set to needless
  48642. + relink_command=
  48643. + fi
  48644. else
  48645. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  48646. - destfile="$destdir/$destfile"
  48647. + link_command="$compile_var$compile_command$compile_rpath"
  48648. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  48649. fi
  48650. + fi
  48651. - # If the file is missing, and there is a .exe on the end, strip it
  48652. - # because it is most likely a libtool script we actually want to
  48653. - # install
  48654. - stripped_ext=""
  48655. - case $file in
  48656. - *.exe)
  48657. - if test ! -f "$file"; then
  48658. - file=`$echo $file|${SED} 's,.exe$,,'`
  48659. - stripped_ext=".exe"
  48660. - fi
  48661. - ;;
  48662. - esac
  48663. -
  48664. - # Do a test to see if this is really a libtool program.
  48665. - case $host in
  48666. - *cygwin*|*mingw*)
  48667. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  48668. - ;;
  48669. - *)
  48670. - wrapper=$file
  48671. - ;;
  48672. - esac
  48673. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  48674. - notinst_deplibs=
  48675. - relink_command=
  48676. -
  48677. - # Note that it is not necessary on cygwin/mingw to append a dot to
  48678. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  48679. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  48680. - # `FILE.' does not work on cygwin managed mounts.
  48681. - #
  48682. - # If there is no directory component, then add one.
  48683. - case $wrapper in
  48684. - */* | *\\*) . ${wrapper} ;;
  48685. - *) . ./${wrapper} ;;
  48686. - esac
  48687. -
  48688. - # Check the variables that should have been set.
  48689. - if test -z "$notinst_deplibs"; then
  48690. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  48691. - exit $EXIT_FAILURE
  48692. - fi
  48693. + # Replace the output file specification.
  48694. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  48695. - finalize=yes
  48696. - for lib in $notinst_deplibs; do
  48697. - # Check to see that each library is installed.
  48698. - libdir=
  48699. - if test -f "$lib"; then
  48700. - # If there is no directory component, then add one.
  48701. - case $lib in
  48702. - */* | *\\*) . $lib ;;
  48703. - *) . ./$lib ;;
  48704. - esac
  48705. - fi
  48706. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  48707. - if test -n "$libdir" && test ! -f "$libfile"; then
  48708. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  48709. - finalize=no
  48710. - fi
  48711. - done
  48712. + # Delete the old output files.
  48713. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  48714. - relink_command=
  48715. - # Note that it is not necessary on cygwin/mingw to append a dot to
  48716. - # foo even if both foo and FILE.exe exist: automatic-append-.exe
  48717. - # behavior happens only for exec(3), not for open(2)! Also, sourcing
  48718. - # `FILE.' does not work on cygwin managed mounts.
  48719. - #
  48720. - # If there is no directory component, then add one.
  48721. - case $wrapper in
  48722. - */* | *\\*) . ${wrapper} ;;
  48723. - *) . ./${wrapper} ;;
  48724. - esac
  48725. + func_show_eval "$link_command" 'exit $?'
  48726. - outputname=
  48727. - if test "$fast_install" = no && test -n "$relink_command"; then
  48728. - if test "$finalize" = yes && test -z "$run"; then
  48729. - tmpdir=`func_mktempdir`
  48730. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  48731. - outputname="$tmpdir/$file"
  48732. - # Replace the output file specification.
  48733. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  48734. + # Now create the wrapper script.
  48735. + func_verbose "creating $output"
  48736. - $show "$relink_command"
  48737. - if $run eval "$relink_command"; then :
  48738. - else
  48739. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  48740. - ${rm}r "$tmpdir"
  48741. - continue
  48742. - fi
  48743. - file="$outputname"
  48744. - else
  48745. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  48746. - fi
  48747. + # Quote the relink command for shipping.
  48748. + if test -n "$relink_command"; then
  48749. + # Preserve any variables that may affect compiler behavior
  48750. + for var in $variables_saved_for_relink; do
  48751. + if eval test -z \"\${$var+set}\"; then
  48752. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  48753. + elif eval var_value=\$$var; test -z "$var_value"; then
  48754. + relink_command="$var=; export $var; $relink_command"
  48755. else
  48756. - # Install the binary that we compiled earlier.
  48757. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  48758. + func_quote_for_eval "$var_value"
  48759. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  48760. fi
  48761. - fi
  48762. + done
  48763. + relink_command="(cd `pwd`; $relink_command)"
  48764. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  48765. + fi
  48766. - # remove .exe since cygwin /usr/bin/install will append another
  48767. - # one anyway
  48768. - case $install_prog,$host in
  48769. - */usr/bin/install*,*cygwin*)
  48770. - case $file:$destfile in
  48771. - *.exe:*.exe)
  48772. - # this is ok
  48773. - ;;
  48774. - *.exe:*)
  48775. - destfile=$destfile.exe
  48776. - ;;
  48777. - *:*.exe)
  48778. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  48779. - ;;
  48780. - esac
  48781. - ;;
  48782. + # Quote $ECHO for shipping.
  48783. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  48784. + case $progpath in
  48785. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  48786. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  48787. + esac
  48788. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  48789. + else
  48790. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  48791. + fi
  48792. +
  48793. + # Only actually do things if not in dry run mode.
  48794. + $opt_dry_run || {
  48795. + # win32 will think the script is a binary if it has
  48796. + # a .exe suffix, so we strip it off here.
  48797. + case $output in
  48798. + *.exe) func_stripname '' '.exe' "$output"
  48799. + output=$func_stripname_result ;;
  48800. esac
  48801. - $show "$install_prog$stripme $file $destfile"
  48802. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  48803. - test -n "$outputname" && ${rm}r "$tmpdir"
  48804. - ;;
  48805. - esac
  48806. - done
  48807. + # test for cygwin because mv fails w/o .exe extensions
  48808. + case $host in
  48809. + *cygwin*)
  48810. + exeext=.exe
  48811. + func_stripname '' '.exe' "$outputname"
  48812. + outputname=$func_stripname_result ;;
  48813. + *) exeext= ;;
  48814. + esac
  48815. + case $host in
  48816. + *cygwin* | *mingw* )
  48817. + func_dirname_and_basename "$output" "" "."
  48818. + output_name=$func_basename_result
  48819. + output_path=$func_dirname_result
  48820. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  48821. + cwrapper="$output_path/$output_name.exe"
  48822. + $RM $cwrappersource $cwrapper
  48823. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  48824. +
  48825. + func_emit_cwrapperexe_src > $cwrappersource
  48826. +
  48827. + # The wrapper executable is built using the $host compiler,
  48828. + # because it contains $host paths and files. If cross-
  48829. + # compiling, it, like the target executable, must be
  48830. + # executed on the $host or under an emulation environment.
  48831. + $opt_dry_run || {
  48832. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  48833. + $STRIP $cwrapper
  48834. + }
  48835. - for file in $staticlibs; do
  48836. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  48837. + # Now, create the wrapper script for func_source use:
  48838. + func_ltwrapper_scriptname $cwrapper
  48839. + $RM $func_ltwrapper_scriptname_result
  48840. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  48841. + $opt_dry_run || {
  48842. + # note: this script will not be executed, so do not chmod.
  48843. + if test "x$build" = "x$host" ; then
  48844. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  48845. + else
  48846. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  48847. + fi
  48848. + }
  48849. + ;;
  48850. + * )
  48851. + $RM $output
  48852. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  48853. - # Set up the ranlib parameters.
  48854. - oldlib="$destdir/$name"
  48855. + func_emit_wrapper no > $output
  48856. + chmod +x $output
  48857. + ;;
  48858. + esac
  48859. + }
  48860. + exit $EXIT_SUCCESS
  48861. + ;;
  48862. + esac
  48863. - $show "$install_prog $file $oldlib"
  48864. - $run eval "$install_prog \$file \$oldlib" || exit $?
  48865. + # See if we need to build an old-fashioned archive.
  48866. + for oldlib in $oldlibs; do
  48867. - if test -n "$stripme" && test -n "$old_striplib"; then
  48868. - $show "$old_striplib $oldlib"
  48869. - $run eval "$old_striplib $oldlib" || exit $?
  48870. + if test "$build_libtool_libs" = convenience; then
  48871. + oldobjs="$libobjs_save $symfileobj"
  48872. + addlibs="$convenience"
  48873. + build_libtool_libs=no
  48874. + else
  48875. + if test "$build_libtool_libs" = module; then
  48876. + oldobjs="$libobjs_save"
  48877. + build_libtool_libs=no
  48878. + else
  48879. + oldobjs="$old_deplibs $non_pic_objects"
  48880. + if test "$preload" = yes && test -f "$symfileobj"; then
  48881. + oldobjs="$oldobjs $symfileobj"
  48882. + fi
  48883. + fi
  48884. + addlibs="$old_convenience"
  48885. fi
  48886. - # Do each command in the postinstall commands.
  48887. - cmds=$old_postinstall_cmds
  48888. - save_ifs="$IFS"; IFS='~'
  48889. - for cmd in $cmds; do
  48890. - IFS="$save_ifs"
  48891. - eval cmd=\"$cmd\"
  48892. - $show "$cmd"
  48893. - $run eval "$cmd" || exit $?
  48894. - done
  48895. - IFS="$save_ifs"
  48896. - done
  48897. + if test -n "$addlibs"; then
  48898. + gentop="$output_objdir/${outputname}x"
  48899. + generated="$generated $gentop"
  48900. - if test -n "$future_libdirs"; then
  48901. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  48902. - fi
  48903. + func_extract_archives $gentop $addlibs
  48904. + oldobjs="$oldobjs $func_extract_archives_result"
  48905. + fi
  48906. - if test -n "$current_libdirs"; then
  48907. - # Maybe just do a dry run.
  48908. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  48909. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  48910. - else
  48911. - exit $EXIT_SUCCESS
  48912. - fi
  48913. - ;;
  48914. + # Do each command in the archive commands.
  48915. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  48916. + cmds=$old_archive_from_new_cmds
  48917. + else
  48918. - # libtool finish mode
  48919. - finish)
  48920. - modename="$modename: finish"
  48921. - libdirs="$nonopt"
  48922. - admincmds=
  48923. + # Add any objects from preloaded convenience libraries
  48924. + if test -n "$dlprefiles"; then
  48925. + gentop="$output_objdir/${outputname}x"
  48926. + generated="$generated $gentop"
  48927. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  48928. - for dir
  48929. - do
  48930. - libdirs="$libdirs $dir"
  48931. - done
  48932. + func_extract_archives $gentop $dlprefiles
  48933. + oldobjs="$oldobjs $func_extract_archives_result"
  48934. + fi
  48935. - for libdir in $libdirs; do
  48936. - if test -n "$finish_cmds"; then
  48937. - # Do each command in the finish commands.
  48938. - cmds=$finish_cmds
  48939. - save_ifs="$IFS"; IFS='~'
  48940. - for cmd in $cmds; do
  48941. - IFS="$save_ifs"
  48942. - eval cmd=\"$cmd\"
  48943. - $show "$cmd"
  48944. - $run eval "$cmd" || admincmds="$admincmds
  48945. - $cmd"
  48946. + # POSIX demands no paths to be encoded in archives. We have
  48947. + # to avoid creating archives with duplicate basenames if we
  48948. + # might have to extract them afterwards, e.g., when creating a
  48949. + # static archive out of a convenience library, or when linking
  48950. + # the entirety of a libtool archive into another (currently
  48951. + # not supported by libtool).
  48952. + if (for obj in $oldobjs
  48953. + do
  48954. + func_basename "$obj"
  48955. + $ECHO "$func_basename_result"
  48956. + done | sort | sort -uc >/dev/null 2>&1); then
  48957. + :
  48958. + else
  48959. + $ECHO "copying selected object files to avoid basename conflicts..."
  48960. + gentop="$output_objdir/${outputname}x"
  48961. + generated="$generated $gentop"
  48962. + func_mkdir_p "$gentop"
  48963. + save_oldobjs=$oldobjs
  48964. + oldobjs=
  48965. + counter=1
  48966. + for obj in $save_oldobjs
  48967. + do
  48968. + func_basename "$obj"
  48969. + objbase="$func_basename_result"
  48970. + case " $oldobjs " in
  48971. + " ") oldobjs=$obj ;;
  48972. + *[\ /]"$objbase "*)
  48973. + while :; do
  48974. + # Make sure we don't pick an alternate name that also
  48975. + # overlaps.
  48976. + newobj=lt$counter-$objbase
  48977. + func_arith $counter + 1
  48978. + counter=$func_arith_result
  48979. + case " $oldobjs " in
  48980. + *[\ /]"$newobj "*) ;;
  48981. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  48982. + esac
  48983. + done
  48984. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  48985. + oldobjs="$oldobjs $gentop/$newobj"
  48986. + ;;
  48987. + *) oldobjs="$oldobjs $obj" ;;
  48988. + esac
  48989. done
  48990. - IFS="$save_ifs"
  48991. - fi
  48992. - if test -n "$finish_eval"; then
  48993. - # Do the single finish_eval.
  48994. - eval cmds=\"$finish_eval\"
  48995. - $run eval "$cmds" || admincmds="$admincmds
  48996. - $cmds"
  48997. fi
  48998. - done
  48999. - fi
  49000. -
  49001. - # Exit here if they wanted silent mode.
  49002. - test "$show" = : && exit $EXIT_SUCCESS
  49003. + eval cmds=\"$old_archive_cmds\"
  49004. - $echo "X----------------------------------------------------------------------" | $Xsed
  49005. - $echo "Libraries have been installed in:"
  49006. - for libdir in $libdirs; do
  49007. - $echo " $libdir"
  49008. + func_len " $cmds"
  49009. + len=$func_len_result
  49010. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  49011. + cmds=$old_archive_cmds
  49012. + else
  49013. + # the command line is too long to link in one step, link in parts
  49014. + func_verbose "using piecewise archive linking..."
  49015. + save_RANLIB=$RANLIB
  49016. + RANLIB=:
  49017. + objlist=
  49018. + concat_cmds=
  49019. + save_oldobjs=$oldobjs
  49020. + oldobjs=
  49021. + # Is there a better way of finding the last object in the list?
  49022. + for obj in $save_oldobjs
  49023. + do
  49024. + last_oldobj=$obj
  49025. + done
  49026. + eval test_cmds=\"$old_archive_cmds\"
  49027. + func_len " $test_cmds"
  49028. + len0=$func_len_result
  49029. + len=$len0
  49030. + for obj in $save_oldobjs
  49031. + do
  49032. + func_len " $obj"
  49033. + func_arith $len + $func_len_result
  49034. + len=$func_arith_result
  49035. + func_append objlist " $obj"
  49036. + if test "$len" -lt "$max_cmd_len"; then
  49037. + :
  49038. + else
  49039. + # the above command should be used before it gets too long
  49040. + oldobjs=$objlist
  49041. + if test "$obj" = "$last_oldobj" ; then
  49042. + RANLIB=$save_RANLIB
  49043. + fi
  49044. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  49045. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  49046. + objlist=
  49047. + len=$len0
  49048. + fi
  49049. + done
  49050. + RANLIB=$save_RANLIB
  49051. + oldobjs=$objlist
  49052. + if test "X$oldobjs" = "X" ; then
  49053. + eval cmds=\"\$concat_cmds\"
  49054. + else
  49055. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  49056. + fi
  49057. + fi
  49058. + fi
  49059. + func_execute_cmds "$cmds" 'exit $?'
  49060. done
  49061. - $echo
  49062. - $echo "If you ever happen to want to link against installed libraries"
  49063. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  49064. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  49065. - $echo "flag during linking and do at least one of the following:"
  49066. - if test -n "$shlibpath_var"; then
  49067. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  49068. - $echo " during execution"
  49069. - fi
  49070. - if test -n "$runpath_var"; then
  49071. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  49072. - $echo " during linking"
  49073. - fi
  49074. - if test -n "$hardcode_libdir_flag_spec"; then
  49075. - libdir=LIBDIR
  49076. - eval flag=\"$hardcode_libdir_flag_spec\"
  49077. -
  49078. - $echo " - use the \`$flag' linker flag"
  49079. - fi
  49080. - if test -n "$admincmds"; then
  49081. - $echo " - have your system administrator run these commands:$admincmds"
  49082. - fi
  49083. - if test -f /etc/ld.so.conf; then
  49084. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  49085. - fi
  49086. - $echo
  49087. - $echo "See any operating system documentation about shared libraries for"
  49088. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  49089. - $echo "X----------------------------------------------------------------------" | $Xsed
  49090. - exit $EXIT_SUCCESS
  49091. - ;;
  49092. - # libtool execute mode
  49093. - execute)
  49094. - modename="$modename: execute"
  49095. + test -n "$generated" && \
  49096. + func_show_eval "${RM}r$generated"
  49097. - # The first argument is the command name.
  49098. - cmd="$nonopt"
  49099. - if test -z "$cmd"; then
  49100. - $echo "$modename: you must specify a COMMAND" 1>&2
  49101. - $echo "$help"
  49102. - exit $EXIT_FAILURE
  49103. - fi
  49104. -
  49105. - # Handle -dlopen flags immediately.
  49106. - for file in $execute_dlfiles; do
  49107. - if test ! -f "$file"; then
  49108. - $echo "$modename: \`$file' is not a file" 1>&2
  49109. - $echo "$help" 1>&2
  49110. - exit $EXIT_FAILURE
  49111. - fi
  49112. + # Now create the libtool archive.
  49113. + case $output in
  49114. + *.la)
  49115. + old_library=
  49116. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  49117. + func_verbose "creating $output"
  49118. - dir=
  49119. - case $file in
  49120. - *.la)
  49121. - # Check to see that this really is a libtool archive.
  49122. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  49123. + # Preserve any variables that may affect compiler behavior
  49124. + for var in $variables_saved_for_relink; do
  49125. + if eval test -z \"\${$var+set}\"; then
  49126. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  49127. + elif eval var_value=\$$var; test -z "$var_value"; then
  49128. + relink_command="$var=; export $var; $relink_command"
  49129. else
  49130. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  49131. - $echo "$help" 1>&2
  49132. - exit $EXIT_FAILURE
  49133. + func_quote_for_eval "$var_value"
  49134. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  49135. fi
  49136. + done
  49137. + # Quote the link command for shipping.
  49138. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  49139. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  49140. + if test "$hardcode_automatic" = yes ; then
  49141. + relink_command=
  49142. + fi
  49143. - # Read the libtool library.
  49144. - dlname=
  49145. - library_names=
  49146. + # Only create the output if not a dry run.
  49147. + $opt_dry_run || {
  49148. + for installed in no yes; do
  49149. + if test "$installed" = yes; then
  49150. + if test -z "$install_libdir"; then
  49151. + break
  49152. + fi
  49153. + output="$output_objdir/$outputname"i
  49154. + # Replace all uninstalled libtool libraries with the installed ones
  49155. + newdependency_libs=
  49156. + for deplib in $dependency_libs; do
  49157. + case $deplib in
  49158. + *.la)
  49159. + func_basename "$deplib"
  49160. + name="$func_basename_result"
  49161. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  49162. + test -z "$libdir" && \
  49163. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  49164. + newdependency_libs="$newdependency_libs $libdir/$name"
  49165. + ;;
  49166. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  49167. + esac
  49168. + done
  49169. + dependency_libs="$newdependency_libs"
  49170. + newdlfiles=
  49171. +
  49172. + for lib in $dlfiles; do
  49173. + case $lib in
  49174. + *.la)
  49175. + func_basename "$lib"
  49176. + name="$func_basename_result"
  49177. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  49178. + test -z "$libdir" && \
  49179. + func_fatal_error "\`$lib' is not a valid libtool archive"
  49180. + newdlfiles="$newdlfiles $libdir/$name"
  49181. + ;;
  49182. + *) newdlfiles="$newdlfiles $lib" ;;
  49183. + esac
  49184. + done
  49185. + dlfiles="$newdlfiles"
  49186. + newdlprefiles=
  49187. + for lib in $dlprefiles; do
  49188. + case $lib in
  49189. + *.la)
  49190. + # Only pass preopened files to the pseudo-archive (for
  49191. + # eventual linking with the app. that links it) if we
  49192. + # didn't already link the preopened objects directly into
  49193. + # the library:
  49194. + func_basename "$lib"
  49195. + name="$func_basename_result"
  49196. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  49197. + test -z "$libdir" && \
  49198. + func_fatal_error "\`$lib' is not a valid libtool archive"
  49199. + newdlprefiles="$newdlprefiles $libdir/$name"
  49200. + ;;
  49201. + esac
  49202. + done
  49203. + dlprefiles="$newdlprefiles"
  49204. + else
  49205. + newdlfiles=
  49206. + for lib in $dlfiles; do
  49207. + case $lib in
  49208. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  49209. + *) abs=`pwd`"/$lib" ;;
  49210. + esac
  49211. + newdlfiles="$newdlfiles $abs"
  49212. + done
  49213. + dlfiles="$newdlfiles"
  49214. + newdlprefiles=
  49215. + for lib in $dlprefiles; do
  49216. + case $lib in
  49217. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  49218. + *) abs=`pwd`"/$lib" ;;
  49219. + esac
  49220. + newdlprefiles="$newdlprefiles $abs"
  49221. + done
  49222. + dlprefiles="$newdlprefiles"
  49223. + fi
  49224. + $RM $output
  49225. + # place dlname in correct position for cygwin
  49226. + tdlname=$dlname
  49227. + case $host,$output,$installed,$module,$dlname in
  49228. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  49229. + esac
  49230. + $ECHO > $output "\
  49231. +# $outputname - a libtool library file
  49232. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49233. +#
  49234. +# Please DO NOT delete this file!
  49235. +# It is necessary for linking the library.
  49236. - # If there is no directory component, then add one.
  49237. - case $file in
  49238. - */* | *\\*) . $file ;;
  49239. - *) . ./$file ;;
  49240. - esac
  49241. +# The name that we can dlopen(3).
  49242. +dlname='$tdlname'
  49243. - # Skip this library if it cannot be dlopened.
  49244. - if test -z "$dlname"; then
  49245. - # Warn if it was a shared library.
  49246. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  49247. - continue
  49248. - fi
  49249. +# Names of this library.
  49250. +library_names='$library_names'
  49251. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  49252. - test "X$dir" = "X$file" && dir=.
  49253. +# The name of the static archive.
  49254. +old_library='$old_library'
  49255. - if test -f "$dir/$objdir/$dlname"; then
  49256. - dir="$dir/$objdir"
  49257. - else
  49258. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  49259. - exit $EXIT_FAILURE
  49260. - fi
  49261. - ;;
  49262. +# Linker flags that can not go in dependency_libs.
  49263. +inherited_linker_flags='$new_inherited_linker_flags'
  49264. - *.lo)
  49265. - # Just add the directory containing the .lo file.
  49266. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  49267. - test "X$dir" = "X$file" && dir=.
  49268. - ;;
  49269. +# Libraries that this one depends upon.
  49270. +dependency_libs='$dependency_libs'
  49271. - *)
  49272. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  49273. - continue
  49274. - ;;
  49275. - esac
  49276. +# Names of additional weak libraries provided by this library
  49277. +weak_library_names='$weak_libs'
  49278. - # Get the absolute pathname.
  49279. - absdir=`cd "$dir" && pwd`
  49280. - test -n "$absdir" && dir="$absdir"
  49281. +# Version information for $libname.
  49282. +current=$current
  49283. +age=$age
  49284. +revision=$revision
  49285. - # Now add the directory to shlibpath_var.
  49286. - if eval "test -z \"\$$shlibpath_var\""; then
  49287. - eval "$shlibpath_var=\"\$dir\""
  49288. - else
  49289. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  49290. - fi
  49291. - done
  49292. +# Is this an already installed library?
  49293. +installed=$installed
  49294. - # This variable tells wrapper scripts just to set shlibpath_var
  49295. - # rather than running their programs.
  49296. - libtool_execute_magic="$magic"
  49297. +# Should we warn about portability when linking against -modules?
  49298. +shouldnotlink=$module
  49299. - # Check if any of the arguments is a wrapper script.
  49300. - args=
  49301. - for file
  49302. - do
  49303. - case $file in
  49304. - -*) ;;
  49305. - *)
  49306. - # Do a test to see if this is really a libtool program.
  49307. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49308. - # If there is no directory component, then add one.
  49309. - case $file in
  49310. - */* | *\\*) . $file ;;
  49311. - *) . ./$file ;;
  49312. - esac
  49313. +# Files to dlopen/dlpreopen
  49314. +dlopen='$dlfiles'
  49315. +dlpreopen='$dlprefiles'
  49316. - # Transform arg to wrapped name.
  49317. - file="$progdir/$program"
  49318. - fi
  49319. - ;;
  49320. - esac
  49321. - # Quote arguments (to preserve shell metacharacters).
  49322. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  49323. - args="$args \"$file\""
  49324. - done
  49325. +# Directory that this library needs to be installed in:
  49326. +libdir='$install_libdir'"
  49327. + if test "$installed" = no && test "$need_relink" = yes; then
  49328. + $ECHO >> $output "\
  49329. +relink_command=\"$relink_command\""
  49330. + fi
  49331. + done
  49332. + }
  49333. - if test -z "$run"; then
  49334. - if test -n "$shlibpath_var"; then
  49335. - # Export the shlibpath_var.
  49336. - eval "export $shlibpath_var"
  49337. - fi
  49338. + # Do a symbolic link so that the libtool archive can be found in
  49339. + # LD_LIBRARY_PATH before the program is installed.
  49340. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  49341. + ;;
  49342. + esac
  49343. + exit $EXIT_SUCCESS
  49344. +}
  49345. - # Restore saved environment variables
  49346. - if test "${save_LC_ALL+set}" = set; then
  49347. - LC_ALL="$save_LC_ALL"; export LC_ALL
  49348. - fi
  49349. - if test "${save_LANG+set}" = set; then
  49350. - LANG="$save_LANG"; export LANG
  49351. - fi
  49352. +{ test "$mode" = link || test "$mode" = relink; } &&
  49353. + func_mode_link ${1+"$@"}
  49354. - # Now prepare to actually exec the command.
  49355. - exec_cmd="\$cmd$args"
  49356. - else
  49357. - # Display what would be done.
  49358. - if test -n "$shlibpath_var"; then
  49359. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  49360. - $echo "export $shlibpath_var"
  49361. - fi
  49362. - $echo "$cmd$args"
  49363. - exit $EXIT_SUCCESS
  49364. - fi
  49365. - ;;
  49366. - # libtool clean and uninstall mode
  49367. - clean | uninstall)
  49368. - modename="$modename: $mode"
  49369. - rm="$nonopt"
  49370. +# func_mode_uninstall arg...
  49371. +func_mode_uninstall ()
  49372. +{
  49373. + $opt_debug
  49374. + RM="$nonopt"
  49375. files=
  49376. rmforce=
  49377. exit_status=0
  49378. @@ -6456,30 +8209,28 @@
  49379. for arg
  49380. do
  49381. case $arg in
  49382. - -f) rm="$rm $arg"; rmforce=yes ;;
  49383. - -*) rm="$rm $arg" ;;
  49384. + -f) RM="$RM $arg"; rmforce=yes ;;
  49385. + -*) RM="$RM $arg" ;;
  49386. *) files="$files $arg" ;;
  49387. esac
  49388. done
  49389. - if test -z "$rm"; then
  49390. - $echo "$modename: you must specify an RM program" 1>&2
  49391. - $echo "$help" 1>&2
  49392. - exit $EXIT_FAILURE
  49393. - fi
  49394. + test -z "$RM" && \
  49395. + func_fatal_help "you must specify an RM program"
  49396. rmdirs=
  49397. origobjdir="$objdir"
  49398. for file in $files; do
  49399. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  49400. - if test "X$dir" = "X$file"; then
  49401. - dir=.
  49402. + func_dirname "$file" "" "."
  49403. + dir="$func_dirname_result"
  49404. + if test "X$dir" = X.; then
  49405. objdir="$origobjdir"
  49406. else
  49407. objdir="$dir/$origobjdir"
  49408. fi
  49409. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  49410. + func_basename "$file"
  49411. + name="$func_basename_result"
  49412. test "$mode" = uninstall && objdir="$dir"
  49413. # Remember objdir for removal later, being careful to avoid duplicates
  49414. @@ -6491,9 +8242,9 @@
  49415. fi
  49416. # Don't error if the file doesn't exist and rm -f was used.
  49417. - if (test -L "$file") >/dev/null 2>&1 \
  49418. - || (test -h "$file") >/dev/null 2>&1 \
  49419. - || test -f "$file"; then
  49420. + if { test -L "$file"; } >/dev/null 2>&1 ||
  49421. + { test -h "$file"; } >/dev/null 2>&1 ||
  49422. + test -f "$file"; then
  49423. :
  49424. elif test -d "$file"; then
  49425. exit_status=1
  49426. @@ -6507,8 +8258,8 @@
  49427. case $name in
  49428. *.la)
  49429. # Possibly a libtool archive, so verify it.
  49430. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49431. - . $dir/$name
  49432. + if func_lalib_p "$file"; then
  49433. + func_source $dir/$name
  49434. # Delete the libtool libraries and symlinks.
  49435. for n in $library_names; do
  49436. @@ -6523,39 +8274,17 @@
  49437. *" $dlname "*) ;;
  49438. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  49439. esac
  49440. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  49441. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  49442. ;;
  49443. uninstall)
  49444. if test -n "$library_names"; then
  49445. # Do each command in the postuninstall commands.
  49446. - cmds=$postuninstall_cmds
  49447. - save_ifs="$IFS"; IFS='~'
  49448. - for cmd in $cmds; do
  49449. - IFS="$save_ifs"
  49450. - eval cmd=\"$cmd\"
  49451. - $show "$cmd"
  49452. - $run eval "$cmd"
  49453. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  49454. - exit_status=1
  49455. - fi
  49456. - done
  49457. - IFS="$save_ifs"
  49458. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  49459. fi
  49460. if test -n "$old_library"; then
  49461. # Do each command in the old_postuninstall commands.
  49462. - cmds=$old_postuninstall_cmds
  49463. - save_ifs="$IFS"; IFS='~'
  49464. - for cmd in $cmds; do
  49465. - IFS="$save_ifs"
  49466. - eval cmd=\"$cmd\"
  49467. - $show "$cmd"
  49468. - $run eval "$cmd"
  49469. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  49470. - exit_status=1
  49471. - fi
  49472. - done
  49473. - IFS="$save_ifs"
  49474. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  49475. fi
  49476. # FIXME: should reinstall the best remaining shared library.
  49477. ;;
  49478. @@ -6565,20 +8294,20 @@
  49479. *.lo)
  49480. # Possibly a libtool object, so verify it.
  49481. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49482. + if func_lalib_p "$file"; then
  49483. # Read the .lo file
  49484. - . $dir/$name
  49485. + func_source $dir/$name
  49486. # Add PIC object to the list of files to remove.
  49487. - if test -n "$pic_object" \
  49488. - && test "$pic_object" != none; then
  49489. + if test -n "$pic_object" &&
  49490. + test "$pic_object" != none; then
  49491. rmfiles="$rmfiles $dir/$pic_object"
  49492. fi
  49493. # Add non-PIC object to the list of files to remove.
  49494. - if test -n "$non_pic_object" \
  49495. - && test "$non_pic_object" != none; then
  49496. + if test -n "$non_pic_object" &&
  49497. + test "$non_pic_object" != none; then
  49498. rmfiles="$rmfiles $dir/$non_pic_object"
  49499. fi
  49500. fi
  49501. @@ -6589,17 +8318,26 @@
  49502. noexename=$name
  49503. case $file in
  49504. *.exe)
  49505. - file=`$echo $file|${SED} 's,.exe$,,'`
  49506. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  49507. + func_stripname '' '.exe' "$file"
  49508. + file=$func_stripname_result
  49509. + func_stripname '' '.exe' "$name"
  49510. + noexename=$func_stripname_result
  49511. # $file with .exe has already been added to rmfiles,
  49512. # add $file without .exe
  49513. rmfiles="$rmfiles $file"
  49514. ;;
  49515. esac
  49516. # Do a test to see if this is a libtool program.
  49517. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49518. - relink_command=
  49519. - . $dir/$noexename
  49520. + if func_ltwrapper_p "$file"; then
  49521. + if func_ltwrapper_executable_p "$file"; then
  49522. + func_ltwrapper_scriptname "$file"
  49523. + relink_command=
  49524. + func_source $func_ltwrapper_scriptname_result
  49525. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  49526. + else
  49527. + relink_command=
  49528. + func_source $dir/$noexename
  49529. + fi
  49530. # note $name still contains .exe if it was in $file originally
  49531. # as does the version of $file that was added into $rmfiles
  49532. @@ -6614,237 +8352,38 @@
  49533. fi
  49534. ;;
  49535. esac
  49536. - $show "$rm $rmfiles"
  49537. - $run $rm $rmfiles || exit_status=1
  49538. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  49539. done
  49540. objdir="$origobjdir"
  49541. # Try to remove the ${objdir}s in the directories where we deleted files
  49542. for dir in $rmdirs; do
  49543. if test -d "$dir"; then
  49544. - $show "rmdir $dir"
  49545. - $run rmdir $dir >/dev/null 2>&1
  49546. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  49547. fi
  49548. done
  49549. exit $exit_status
  49550. - ;;
  49551. +}
  49552. - "")
  49553. - $echo "$modename: you must specify a MODE" 1>&2
  49554. - $echo "$generic_help" 1>&2
  49555. - exit $EXIT_FAILURE
  49556. - ;;
  49557. - esac
  49558. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  49559. + func_mode_uninstall ${1+"$@"}
  49560. - if test -z "$exec_cmd"; then
  49561. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  49562. - $echo "$generic_help" 1>&2
  49563. - exit $EXIT_FAILURE
  49564. - fi
  49565. -fi # test -z "$show_help"
  49566. +test -z "$mode" && {
  49567. + help="$generic_help"
  49568. + func_fatal_help "you must specify a MODE"
  49569. +}
  49570. +
  49571. +test -z "$exec_cmd" && \
  49572. + func_fatal_help "invalid operation mode \`$mode'"
  49573. if test -n "$exec_cmd"; then
  49574. - eval exec $exec_cmd
  49575. + eval exec "$exec_cmd"
  49576. exit $EXIT_FAILURE
  49577. fi
  49578. -# We need to display help for each of the modes.
  49579. -case $mode in
  49580. -"") $echo \
  49581. -"Usage: $modename [OPTION]... [MODE-ARG]...
  49582. -
  49583. -Provide generalized library-building support services.
  49584. -
  49585. - --config show all configuration variables
  49586. - --debug enable verbose shell tracing
  49587. --n, --dry-run display commands without modifying any files
  49588. - --features display basic configuration information and exit
  49589. - --finish same as \`--mode=finish'
  49590. - --help display this help message and exit
  49591. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  49592. - --quiet same as \`--silent'
  49593. - --silent don't print informational messages
  49594. - --tag=TAG use configuration variables from tag TAG
  49595. - --version print version information
  49596. -
  49597. -MODE must be one of the following:
  49598. -
  49599. - clean remove files from the build directory
  49600. - compile compile a source file into a libtool object
  49601. - execute automatically set library path, then run a program
  49602. - finish complete the installation of libtool libraries
  49603. - install install libraries or executables
  49604. - link create a library or an executable
  49605. - uninstall remove libraries from an installed directory
  49606. -
  49607. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  49608. -a more detailed description of MODE.
  49609. -
  49610. -Report bugs to <bug-libtool@gnu.org>."
  49611. - exit $EXIT_SUCCESS
  49612. - ;;
  49613. -
  49614. -clean)
  49615. - $echo \
  49616. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  49617. -
  49618. -Remove files from the build directory.
  49619. -
  49620. -RM is the name of the program to use to delete files associated with each FILE
  49621. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49622. -to RM.
  49623. -
  49624. -If FILE is a libtool library, object or program, all the files associated
  49625. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  49626. - ;;
  49627. -
  49628. -compile)
  49629. - $echo \
  49630. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  49631. -
  49632. -Compile a source file into a libtool library object.
  49633. -
  49634. -This mode accepts the following additional options:
  49635. -
  49636. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  49637. - -prefer-pic try to building PIC objects only
  49638. - -prefer-non-pic try to building non-PIC objects only
  49639. - -static always build a \`.o' file suitable for static linking
  49640. -
  49641. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  49642. -from the given SOURCEFILE.
  49643. -
  49644. -The output file name is determined by removing the directory component from
  49645. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  49646. -library object suffix, \`.lo'."
  49647. - ;;
  49648. -
  49649. -execute)
  49650. - $echo \
  49651. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  49652. -
  49653. -Automatically set library path, then run a program.
  49654. -
  49655. -This mode accepts the following additional options:
  49656. -
  49657. - -dlopen FILE add the directory containing FILE to the library path
  49658. -
  49659. -This mode sets the library path environment variable according to \`-dlopen'
  49660. -flags.
  49661. -
  49662. -If any of the ARGS are libtool executable wrappers, then they are translated
  49663. -into their corresponding uninstalled binary, and any of their required library
  49664. -directories are added to the library path.
  49665. -
  49666. -Then, COMMAND is executed, with ARGS as arguments."
  49667. - ;;
  49668. -
  49669. -finish)
  49670. - $echo \
  49671. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  49672. -
  49673. -Complete the installation of libtool libraries.
  49674. -
  49675. -Each LIBDIR is a directory that contains libtool libraries.
  49676. -
  49677. -The commands that this mode executes may require superuser privileges. Use
  49678. -the \`--dry-run' option if you just want to see what would be executed."
  49679. - ;;
  49680. -
  49681. -install)
  49682. - $echo \
  49683. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  49684. -
  49685. -Install executables or libraries.
  49686. -
  49687. -INSTALL-COMMAND is the installation command. The first component should be
  49688. -either the \`install' or \`cp' program.
  49689. -
  49690. -The rest of the components are interpreted as arguments to that command (only
  49691. -BSD-compatible install options are recognized)."
  49692. - ;;
  49693. -
  49694. -link)
  49695. - $echo \
  49696. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  49697. -
  49698. -Link object files or libraries together to form another library, or to
  49699. -create an executable program.
  49700. -
  49701. -LINK-COMMAND is a command using the C compiler that you would use to create
  49702. -a program from several object files.
  49703. -
  49704. -The following components of LINK-COMMAND are treated specially:
  49705. -
  49706. - -all-static do not do any dynamic linking at all
  49707. - -avoid-version do not add a version suffix if possible
  49708. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  49709. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  49710. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  49711. - -export-symbols SYMFILE
  49712. - try to export only the symbols listed in SYMFILE
  49713. - -export-symbols-regex REGEX
  49714. - try to export only the symbols matching REGEX
  49715. - -LLIBDIR search LIBDIR for required installed libraries
  49716. - -lNAME OUTPUT-FILE requires the installed library libNAME
  49717. - -module build a library that can dlopened
  49718. - -no-fast-install disable the fast-install mode
  49719. - -no-install link a not-installable executable
  49720. - -no-undefined declare that a library does not refer to external symbols
  49721. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  49722. - -objectlist FILE Use a list of object files found in FILE to specify objects
  49723. - -precious-files-regex REGEX
  49724. - don't remove output files matching REGEX
  49725. - -release RELEASE specify package release information
  49726. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  49727. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  49728. - -static do not do any dynamic linking of libtool libraries
  49729. - -version-info CURRENT[:REVISION[:AGE]]
  49730. - specify library version info [each variable defaults to 0]
  49731. -
  49732. -All other options (arguments beginning with \`-') are ignored.
  49733. -
  49734. -Every other argument is treated as a filename. Files ending in \`.la' are
  49735. -treated as uninstalled libtool libraries, other files are standard or library
  49736. -object files.
  49737. -
  49738. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  49739. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  49740. -required, except when creating a convenience library.
  49741. -
  49742. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  49743. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  49744. -
  49745. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  49746. -is created, otherwise an executable program is created."
  49747. - ;;
  49748. -
  49749. -uninstall)
  49750. - $echo \
  49751. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  49752. -
  49753. -Remove libraries from an installation directory.
  49754. -
  49755. -RM is the name of the program to use to delete files associated with each FILE
  49756. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  49757. -to RM.
  49758. +exit $exit_status
  49759. -If FILE is a libtool library, all the files associated with it are deleted.
  49760. -Otherwise, only FILE itself is deleted using RM."
  49761. - ;;
  49762. -
  49763. -*)
  49764. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  49765. - $echo "$help" 1>&2
  49766. - exit $EXIT_FAILURE
  49767. - ;;
  49768. -esac
  49769. -
  49770. -$echo
  49771. -$echo "Try \`$modename --help' for more information about other modes."
  49772. -
  49773. -exit $?
  49774. # The TAGs below are defined such that we never get into a situation
  49775. # in which we disable both kinds of libraries. Given conflicting
  49776. @@ -6858,14 +8397,17 @@
  49777. # configuration. But we'll never go from static-only to shared-only.
  49778. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  49779. -disable_libs=shared
  49780. +build_libtool_libs=no
  49781. +build_old_libs=yes
  49782. # ### END LIBTOOL TAG CONFIG: disable-shared
  49783. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  49784. -disable_libs=static
  49785. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  49786. # ### END LIBTOOL TAG CONFIG: disable-static
  49787. # Local Variables:
  49788. # mode:shell-script
  49789. # sh-indentation:2
  49790. # End:
  49791. +# vi:sw=2
  49792. +
  49793. diff -Nur libgcrypt-1.4.5.orig/m4/libtool.m4 libgcrypt-1.4.5/m4/libtool.m4
  49794. --- libgcrypt-1.4.5.orig/m4/libtool.m4 2009-04-02 11:25:32.000000000 +0200
  49795. +++ libgcrypt-1.4.5/m4/libtool.m4 2011-02-16 16:00:40.334804929 +0100
  49796. @@ -1,123 +1,185 @@
  49797. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  49798. -## Copyright 1996, 1997, 1998, 1999, 2000, 2001
  49799. -## Free Software Foundation, Inc.
  49800. -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  49801. -##
  49802. -## This program is free software; you can redistribute it and/or modify
  49803. -## it under the terms of the GNU General Public License as published by
  49804. -## the Free Software Foundation; either version 2 of the License, or
  49805. -## (at your option) any later version.
  49806. -##
  49807. -## This program is distributed in the hope that it will be useful, but
  49808. -## WITHOUT ANY WARRANTY; without even the implied warranty of
  49809. -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  49810. -## General Public License for more details.
  49811. -##
  49812. -## You should have received a copy of the GNU General Public License
  49813. -## along with this program; if not, write to the Free Software
  49814. -## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  49815. -##
  49816. -## As a special exception to the GNU General Public License, if you
  49817. -## distribute this file as part of a program that contains a
  49818. -## configuration script generated by Autoconf, you may include it under
  49819. -## the same distribution terms that you use for the rest of that program.
  49820. -
  49821. -# serial 47 AC_PROG_LIBTOOL
  49822. -# Debian $Rev: 961 $
  49823. -
  49824. -
  49825. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  49826. -# -----------------------------------------------------------
  49827. -# If this macro is not defined by Autoconf, define it here.
  49828. -m4_ifdef([AC_PROVIDE_IFELSE],
  49829. - [],
  49830. - [m4_define([AC_PROVIDE_IFELSE],
  49831. - [m4_ifdef([AC_PROVIDE_$1],
  49832. - [$2], [$3])])])
  49833. +#
  49834. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49835. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  49836. +# Written by Gordon Matzigkeit, 1996
  49837. +#
  49838. +# This file is free software; the Free Software Foundation gives
  49839. +# unlimited permission to copy and/or distribute it, with or without
  49840. +# modifications, as long as this notice is preserved.
  49841. +
  49842. +m4_define([_LT_COPYING], [dnl
  49843. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  49844. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  49845. +# Written by Gordon Matzigkeit, 1996
  49846. +#
  49847. +# This file is part of GNU Libtool.
  49848. +#
  49849. +# GNU Libtool is free software; you can redistribute it and/or
  49850. +# modify it under the terms of the GNU General Public License as
  49851. +# published by the Free Software Foundation; either version 2 of
  49852. +# the License, or (at your option) any later version.
  49853. +#
  49854. +# As a special exception to the GNU General Public License,
  49855. +# if you distribute this file as part of a program or library that
  49856. +# is built using GNU Libtool, you may include this file under the
  49857. +# same distribution terms that you use for the rest of that program.
  49858. +#
  49859. +# GNU Libtool is distributed in the hope that it will be useful,
  49860. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  49861. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49862. +# GNU General Public License for more details.
  49863. +#
  49864. +# You should have received a copy of the GNU General Public License
  49865. +# along with GNU Libtool; see the file COPYING. If not, a copy
  49866. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  49867. +# obtained by writing to the Free Software Foundation, Inc.,
  49868. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  49869. +])
  49870. +# serial 56 LT_INIT
  49871. -# AC_PROG_LIBTOOL
  49872. -# ---------------
  49873. -AC_DEFUN([AC_PROG_LIBTOOL],
  49874. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  49875. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  49876. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  49877. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  49878. - [AC_LIBTOOL_CXX],
  49879. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  49880. - ])])
  49881. -dnl And a similar setup for Fortran 77 support
  49882. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  49883. - [AC_LIBTOOL_F77],
  49884. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  49885. -])])
  49886. -
  49887. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  49888. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  49889. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  49890. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  49891. - [AC_LIBTOOL_GCJ],
  49892. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  49893. - [AC_LIBTOOL_GCJ],
  49894. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  49895. - [AC_LIBTOOL_GCJ],
  49896. - [ifdef([AC_PROG_GCJ],
  49897. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  49898. - ifdef([A][M_PROG_GCJ],
  49899. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  49900. - ifdef([LT_AC_PROG_GCJ],
  49901. - [define([LT_AC_PROG_GCJ],
  49902. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  49903. -])])# AC_PROG_LIBTOOL
  49904. +
  49905. +# LT_PREREQ(VERSION)
  49906. +# ------------------
  49907. +# Complain and exit if this libtool version is less that VERSION.
  49908. +m4_defun([LT_PREREQ],
  49909. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  49910. + [m4_default([$3],
  49911. + [m4_fatal([Libtool version $1 or higher is required],
  49912. + 63)])],
  49913. + [$2])])
  49914. +
  49915. +
  49916. +# _LT_CHECK_BUILDDIR
  49917. +# ------------------
  49918. +# Complain if the absolute build directory name contains unusual characters
  49919. +m4_defun([_LT_CHECK_BUILDDIR],
  49920. +[case `pwd` in
  49921. + *\ * | *\ *)
  49922. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  49923. +esac
  49924. +])
  49925. -# _AC_PROG_LIBTOOL
  49926. -# ----------------
  49927. -AC_DEFUN([_AC_PROG_LIBTOOL],
  49928. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  49929. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  49930. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  49931. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  49932. +# LT_INIT([OPTIONS])
  49933. +# ------------------
  49934. +AC_DEFUN([LT_INIT],
  49935. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  49936. +AC_BEFORE([$0], [LT_LANG])dnl
  49937. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  49938. +AC_BEFORE([$0], [LTDL_INIT])dnl
  49939. +m4_require([_LT_CHECK_BUILDDIR])dnl
  49940. +
  49941. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  49942. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  49943. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  49944. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  49945. +dnl unless we require an AC_DEFUNed macro:
  49946. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  49947. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  49948. +AC_REQUIRE([LTVERSION_VERSION])dnl
  49949. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  49950. +m4_require([_LT_PROG_LTMAIN])dnl
  49951. +
  49952. +dnl Parse OPTIONS
  49953. +_LT_SET_OPTIONS([$0], [$1])
  49954. # This can be used to rebuild libtool when needed
  49955. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  49956. +LIBTOOL_DEPS="$ltmain"
  49957. # Always use our own libtool.
  49958. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  49959. AC_SUBST(LIBTOOL)dnl
  49960. -# Prevent multiple expansion
  49961. -define([AC_PROG_LIBTOOL], [])
  49962. -])# _AC_PROG_LIBTOOL
  49963. +_LT_SETUP
  49964. +# Only expand once:
  49965. +m4_define([LT_INIT])
  49966. +])# LT_INIT
  49967. -# AC_LIBTOOL_SETUP
  49968. -# ----------------
  49969. -AC_DEFUN([AC_LIBTOOL_SETUP],
  49970. -[AC_PREREQ(2.50)dnl
  49971. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  49972. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  49973. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  49974. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  49975. +# Old names:
  49976. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  49977. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  49978. +dnl aclocal-1.4 backwards compatibility:
  49979. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  49980. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  49981. +
  49982. +
  49983. +# _LT_CC_BASENAME(CC)
  49984. +# -------------------
  49985. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  49986. +m4_defun([_LT_CC_BASENAME],
  49987. +[for cc_temp in $1""; do
  49988. + case $cc_temp in
  49989. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  49990. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  49991. + \-*) ;;
  49992. + *) break;;
  49993. + esac
  49994. +done
  49995. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  49996. +])
  49997. +
  49998. +
  49999. +# _LT_FILEUTILS_DEFAULTS
  50000. +# ----------------------
  50001. +# It is okay to use these file commands and assume they have been set
  50002. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  50003. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  50004. +[: ${CP="cp -f"}
  50005. +: ${MV="mv -f"}
  50006. +: ${RM="rm -f"}
  50007. +])# _LT_FILEUTILS_DEFAULTS
  50008. +
  50009. +
  50010. +# _LT_SETUP
  50011. +# ---------
  50012. +m4_defun([_LT_SETUP],
  50013. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  50014. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  50015. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  50016. +_LT_DECL([], [host], [0])dnl
  50017. +_LT_DECL([], [host_os], [0])dnl
  50018. +dnl
  50019. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  50020. +_LT_DECL([], [build], [0])dnl
  50021. +_LT_DECL([], [build_os], [0])dnl
  50022. +dnl
  50023. AC_REQUIRE([AC_PROG_CC])dnl
  50024. -AC_REQUIRE([AC_PROG_LD])dnl
  50025. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  50026. -AC_REQUIRE([AC_PROG_NM])dnl
  50027. -
  50028. +AC_REQUIRE([LT_PATH_LD])dnl
  50029. +AC_REQUIRE([LT_PATH_NM])dnl
  50030. +dnl
  50031. AC_REQUIRE([AC_PROG_LN_S])dnl
  50032. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  50033. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  50034. -AC_REQUIRE([AC_OBJEXT])dnl
  50035. -AC_REQUIRE([AC_EXEEXT])dnl
  50036. +test -z "$LN_S" && LN_S="ln -s"
  50037. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  50038. dnl
  50039. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  50040. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  50041. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  50042. +dnl
  50043. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  50044. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  50045. +m4_require([_LT_CMD_RELOAD])dnl
  50046. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  50047. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  50048. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  50049. +
  50050. +_LT_CONFIG_LIBTOOL_INIT([
  50051. +# See if we are running on zsh, and set the options which allow our
  50052. +# commands through without removal of \ escapes INIT.
  50053. +if test -n "\${ZSH_VERSION+set}" ; then
  50054. + setopt NO_GLOB_SUBST
  50055. +fi
  50056. +])
  50057. +if test -n "${ZSH_VERSION+set}" ; then
  50058. + setopt NO_GLOB_SUBST
  50059. +fi
  50060. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  50061. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  50062. -AC_LIBTOOL_OBJDIR
  50063. +_LT_CHECK_OBJDIR
  50064. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  50065. -_LT_AC_PROG_ECHO_BACKSLASH
  50066. +m4_require([_LT_TAG_COMPILER])dnl
  50067. +_LT_PROG_ECHO_BACKSLASH
  50068. case $host_os in
  50069. aix3*)
  50070. @@ -133,174 +195,885 @@
  50071. # Sed substitution that helps us do robust quoting. It backslashifies
  50072. # metacharacters that are still active within double-quoted strings.
  50073. -Xsed='sed -e s/^X//'
  50074. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  50075. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  50076. # Same as above, but do not quote variable references.
  50077. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  50078. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  50079. # Sed substitution to delay expansion of an escaped shell variable in a
  50080. # double_quote_subst'ed string.
  50081. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  50082. +# Sed substitution to delay expansion of an escaped single quote.
  50083. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  50084. +
  50085. # Sed substitution to avoid accidental globbing in evaled expressions
  50086. no_glob_subst='s/\*/\\\*/g'
  50087. -# Constants:
  50088. -rm="rm -f"
  50089. -
  50090. # Global variables:
  50091. -default_ofile=libtool
  50092. +ofile=libtool
  50093. can_build_shared=yes
  50094. -# All known linkers require a `.a' archive for static linking (except M$VC,
  50095. +# All known linkers require a `.a' archive for static linking (except MSVC,
  50096. # which needs '.lib').
  50097. libext=a
  50098. -ltmain="$ac_aux_dir/ltmain.sh"
  50099. -ofile="$default_ofile"
  50100. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  50101. -AC_CHECK_TOOL(AR, ar, false)
  50102. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  50103. -AC_CHECK_TOOL(STRIP, strip, :)
  50104. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  50105. old_CC="$CC"
  50106. old_CFLAGS="$CFLAGS"
  50107. # Set sane defaults for various variables
  50108. -test -z "$AR" && AR=ar
  50109. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  50110. -test -z "$AS" && AS=as
  50111. test -z "$CC" && CC=cc
  50112. test -z "$LTCC" && LTCC=$CC
  50113. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  50114. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  50115. test -z "$LD" && LD=ld
  50116. -test -z "$LN_S" && LN_S="ln -s"
  50117. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  50118. -test -z "$NM" && NM=nm
  50119. -test -z "$SED" && SED=sed
  50120. -test -z "$OBJDUMP" && OBJDUMP=objdump
  50121. -test -z "$RANLIB" && RANLIB=:
  50122. -test -z "$STRIP" && STRIP=:
  50123. test -z "$ac_objext" && ac_objext=o
  50124. -# Determine commands to create old-style static archives.
  50125. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  50126. -old_postinstall_cmds='chmod 644 $oldlib'
  50127. -old_postuninstall_cmds=
  50128. -
  50129. -if test -n "$RANLIB"; then
  50130. - case $host_os in
  50131. - openbsd*)
  50132. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  50133. - ;;
  50134. - *)
  50135. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  50136. - ;;
  50137. - esac
  50138. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  50139. -fi
  50140. +_LT_CC_BASENAME([$compiler])
  50141. # Only perform the check for file, if the check method requires it
  50142. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  50143. case $deplibs_check_method in
  50144. file_magic*)
  50145. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  50146. - AC_PATH_MAGIC
  50147. + _LT_PATH_MAGIC
  50148. fi
  50149. ;;
  50150. esac
  50151. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  50152. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  50153. -enable_win32_dll=yes, enable_win32_dll=no)
  50154. -
  50155. -AC_ARG_ENABLE([libtool-lock],
  50156. - [AC_HELP_STRING([--disable-libtool-lock],
  50157. - [avoid locking (might break parallel builds)])])
  50158. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  50159. +# Use C for the default configuration in the libtool script
  50160. +LT_SUPPORTED_TAG([CC])
  50161. +_LT_LANG_C_CONFIG
  50162. +_LT_LANG_DEFAULT_CONFIG
  50163. +_LT_CONFIG_COMMANDS
  50164. +])# _LT_SETUP
  50165. -AC_ARG_WITH([pic],
  50166. - [AC_HELP_STRING([--with-pic],
  50167. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  50168. - [pic_mode="$withval"],
  50169. - [pic_mode=default])
  50170. -test -z "$pic_mode" && pic_mode=default
  50171. -# Use C for the default configuration in the libtool script
  50172. -tagname=
  50173. -AC_LIBTOOL_LANG_C_CONFIG
  50174. -_LT_AC_TAGCONFIG
  50175. -])# AC_LIBTOOL_SETUP
  50176. +# _LT_PROG_LTMAIN
  50177. +# ---------------
  50178. +# Note that this code is called both from `configure', and `config.status'
  50179. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  50180. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  50181. +# so we pass a copy along to make sure it has a sensible value anyway.
  50182. +m4_defun([_LT_PROG_LTMAIN],
  50183. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  50184. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  50185. +ltmain="$ac_aux_dir/ltmain.sh"
  50186. +])# _LT_PROG_LTMAIN
  50187. +
  50188. +
  50189. +## ------------------------------------- ##
  50190. +## Accumulate code for creating libtool. ##
  50191. +## ------------------------------------- ##
  50192. +
  50193. +# So that we can recreate a full libtool script including additional
  50194. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  50195. +# in macros and then make a single call at the end using the `libtool'
  50196. +# label.
  50197. +
  50198. +
  50199. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  50200. +# ----------------------------------------
  50201. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  50202. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  50203. +[m4_ifval([$1],
  50204. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  50205. + [$1
  50206. +])])])
  50207. +
  50208. +# Initialize.
  50209. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  50210. +
  50211. +
  50212. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  50213. +# ------------------------------
  50214. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  50215. +m4_define([_LT_CONFIG_LIBTOOL],
  50216. +[m4_ifval([$1],
  50217. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  50218. + [$1
  50219. +])])])
  50220. +
  50221. +# Initialize.
  50222. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  50223. +
  50224. +
  50225. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  50226. +# -----------------------------------------------------
  50227. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  50228. +[_LT_CONFIG_LIBTOOL([$1])
  50229. +_LT_CONFIG_LIBTOOL_INIT([$2])
  50230. +])
  50231. +
  50232. +
  50233. +# _LT_FORMAT_COMMENT([COMMENT])
  50234. +# -----------------------------
  50235. +# Add leading comment marks to the start of each line, and a trailing
  50236. +# full-stop to the whole comment if one is not present already.
  50237. +m4_define([_LT_FORMAT_COMMENT],
  50238. +[m4_ifval([$1], [
  50239. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  50240. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  50241. +)])
  50242. +
  50243. +
  50244. +
  50245. +## ------------------------ ##
  50246. +## FIXME: Eliminate VARNAME ##
  50247. +## ------------------------ ##
  50248. +
  50249. +
  50250. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  50251. +# -------------------------------------------------------------------
  50252. +# CONFIGNAME is the name given to the value in the libtool script.
  50253. +# VARNAME is the (base) name used in the configure script.
  50254. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  50255. +# VARNAME. Any other value will be used directly.
  50256. +m4_define([_LT_DECL],
  50257. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  50258. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  50259. + [m4_ifval([$1], [$1], [$2])])
  50260. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  50261. + m4_ifval([$4],
  50262. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  50263. + lt_dict_add_subkey([lt_decl_dict], [$2],
  50264. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  50265. +])
  50266. +
  50267. +
  50268. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  50269. +# --------------------------------------------------------
  50270. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  50271. +
  50272. +
  50273. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  50274. +# ------------------------------------------------
  50275. +m4_define([lt_decl_tag_varnames],
  50276. +[_lt_decl_filter([tagged?], [yes], $@)])
  50277. +
  50278. +
  50279. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  50280. +# ---------------------------------------------------------
  50281. +m4_define([_lt_decl_filter],
  50282. +[m4_case([$#],
  50283. + [0], [m4_fatal([$0: too few arguments: $#])],
  50284. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  50285. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  50286. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  50287. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  50288. +])
  50289. +
  50290. +
  50291. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  50292. +# --------------------------------------------------
  50293. +m4_define([lt_decl_quote_varnames],
  50294. +[_lt_decl_filter([value], [1], $@)])
  50295. +
  50296. +
  50297. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  50298. +# ---------------------------------------------------
  50299. +m4_define([lt_decl_dquote_varnames],
  50300. +[_lt_decl_filter([value], [2], $@)])
  50301. +
  50302. +
  50303. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  50304. +# ---------------------------------------------------
  50305. +m4_define([lt_decl_varnames_tagged],
  50306. +[m4_assert([$# <= 2])dnl
  50307. +_$0(m4_quote(m4_default([$1], [[, ]])),
  50308. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  50309. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  50310. +m4_define([_lt_decl_varnames_tagged],
  50311. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  50312. +
  50313. +
  50314. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  50315. +# ------------------------------------------------
  50316. +m4_define([lt_decl_all_varnames],
  50317. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  50318. + m4_if([$2], [],
  50319. + m4_quote(lt_decl_varnames),
  50320. + m4_quote(m4_shift($@))))[]dnl
  50321. +])
  50322. +m4_define([_lt_decl_all_varnames],
  50323. +[lt_join($@, lt_decl_varnames_tagged([$1],
  50324. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  50325. +])
  50326. +
  50327. +
  50328. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  50329. +# ------------------------------------
  50330. +# Quote a variable value, and forward it to `config.status' so that its
  50331. +# declaration there will have the same value as in `configure'. VARNAME
  50332. +# must have a single quote delimited value for this to work.
  50333. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  50334. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  50335. +
  50336. +
  50337. +# _LT_CONFIG_STATUS_DECLARATIONS
  50338. +# ------------------------------
  50339. +# We delimit libtool config variables with single quotes, so when
  50340. +# we write them to config.status, we have to be sure to quote all
  50341. +# embedded single quotes properly. In configure, this macro expands
  50342. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  50343. +#
  50344. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  50345. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  50346. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  50347. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  50348. -# _LT_AC_SYS_COMPILER
  50349. +# _LT_LIBTOOL_TAGS
  50350. +# ----------------
  50351. +# Output comment and list of tags supported by the script
  50352. +m4_defun([_LT_LIBTOOL_TAGS],
  50353. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  50354. +available_tags="_LT_TAGS"dnl
  50355. +])
  50356. +
  50357. +
  50358. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  50359. +# -----------------------------------
  50360. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  50361. +# expand to a commented shell variable setting:
  50362. +#
  50363. +# # Some comment about what VAR is for.
  50364. +# visible_name=$lt_internal_name
  50365. +m4_define([_LT_LIBTOOL_DECLARE],
  50366. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  50367. + [description])))[]dnl
  50368. +m4_pushdef([_libtool_name],
  50369. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  50370. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  50371. + [0], [_libtool_name=[$]$1],
  50372. + [1], [_libtool_name=$lt_[]$1],
  50373. + [2], [_libtool_name=$lt_[]$1],
  50374. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  50375. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  50376. +])
  50377. +
  50378. +
  50379. +# _LT_LIBTOOL_CONFIG_VARS
  50380. +# -----------------------
  50381. +# Produce commented declarations of non-tagged libtool config variables
  50382. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  50383. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  50384. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  50385. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  50386. +[m4_foreach([_lt_var],
  50387. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  50388. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  50389. +
  50390. +
  50391. +# _LT_LIBTOOL_TAG_VARS(TAG)
  50392. +# -------------------------
  50393. +m4_define([_LT_LIBTOOL_TAG_VARS],
  50394. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  50395. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  50396. +
  50397. +
  50398. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  50399. +# ------------------------------
  50400. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  50401. +
  50402. +
  50403. +# _LT_CONFIG_COMMANDS
  50404. # -------------------
  50405. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  50406. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  50407. +# variables for single and double quote escaping we saved from calls
  50408. +# to _LT_DECL, we can put quote escaped variables declarations
  50409. +# into `config.status', and then the shell code to quote escape them in
  50410. +# for loops in `config.status'. Finally, any additional code accumulated
  50411. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  50412. +m4_defun([_LT_CONFIG_COMMANDS],
  50413. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  50414. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  50415. + dnl instead of duplicating it all over again into config.status,
  50416. + dnl then we will have config.status run $CONFIG_LT later, so it
  50417. + dnl needs to know what name is stored there:
  50418. + [AC_CONFIG_COMMANDS([libtool],
  50419. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  50420. + dnl If the libtool generation code is destined for config.status,
  50421. + dnl expand the accumulated commands and init code now:
  50422. + [AC_CONFIG_COMMANDS([libtool],
  50423. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  50424. +])#_LT_CONFIG_COMMANDS
  50425. +
  50426. +
  50427. +# Initialize.
  50428. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  50429. +[
  50430. +
  50431. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  50432. +# if CDPATH is set.
  50433. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  50434. +
  50435. +sed_quote_subst='$sed_quote_subst'
  50436. +double_quote_subst='$double_quote_subst'
  50437. +delay_variable_subst='$delay_variable_subst'
  50438. +_LT_CONFIG_STATUS_DECLARATIONS
  50439. +LTCC='$LTCC'
  50440. +LTCFLAGS='$LTCFLAGS'
  50441. +compiler='$compiler_DEFAULT'
  50442. +
  50443. +# Quote evaled strings.
  50444. +for var in lt_decl_all_varnames([[ \
  50445. +]], lt_decl_quote_varnames); do
  50446. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  50447. + *[[\\\\\\\`\\"\\\$]]*)
  50448. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  50449. + ;;
  50450. + *)
  50451. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  50452. + ;;
  50453. + esac
  50454. +done
  50455. +
  50456. +# Double-quote double-evaled strings.
  50457. +for var in lt_decl_all_varnames([[ \
  50458. +]], lt_decl_dquote_varnames); do
  50459. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  50460. + *[[\\\\\\\`\\"\\\$]]*)
  50461. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  50462. + ;;
  50463. + *)
  50464. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  50465. + ;;
  50466. + esac
  50467. +done
  50468. +
  50469. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  50470. +case \$lt_ECHO in
  50471. +*'\\\[$]0 --fallback-echo"')dnl "
  50472. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  50473. + ;;
  50474. +esac
  50475. +
  50476. +_LT_OUTPUT_LIBTOOL_INIT
  50477. +])
  50478. +
  50479. +
  50480. +# LT_OUTPUT
  50481. +# ---------
  50482. +# This macro allows early generation of the libtool script (before
  50483. +# AC_OUTPUT is called), incase it is used in configure for compilation
  50484. +# tests.
  50485. +AC_DEFUN([LT_OUTPUT],
  50486. +[: ${CONFIG_LT=./config.lt}
  50487. +AC_MSG_NOTICE([creating $CONFIG_LT])
  50488. +cat >"$CONFIG_LT" <<_LTEOF
  50489. +#! $SHELL
  50490. +# Generated by $as_me.
  50491. +# Run this file to recreate a libtool stub with the current configuration.
  50492. +
  50493. +lt_cl_silent=false
  50494. +SHELL=\${CONFIG_SHELL-$SHELL}
  50495. +_LTEOF
  50496. +
  50497. +cat >>"$CONFIG_LT" <<\_LTEOF
  50498. +AS_SHELL_SANITIZE
  50499. +_AS_PREPARE
  50500. +
  50501. +exec AS_MESSAGE_FD>&1
  50502. +exec AS_MESSAGE_LOG_FD>>config.log
  50503. +{
  50504. + echo
  50505. + AS_BOX([Running $as_me.])
  50506. +} >&AS_MESSAGE_LOG_FD
  50507. +
  50508. +lt_cl_help="\
  50509. +\`$as_me' creates a local libtool stub from the current configuration,
  50510. +for use in further configure time tests before the real libtool is
  50511. +generated.
  50512. +
  50513. +Usage: $[0] [[OPTIONS]]
  50514. +
  50515. + -h, --help print this help, then exit
  50516. + -V, --version print version number, then exit
  50517. + -q, --quiet do not print progress messages
  50518. + -d, --debug don't remove temporary files
  50519. +
  50520. +Report bugs to <bug-libtool@gnu.org>."
  50521. +
  50522. +lt_cl_version="\
  50523. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  50524. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  50525. +configured by $[0], generated by m4_PACKAGE_STRING.
  50526. +
  50527. +Copyright (C) 2008 Free Software Foundation, Inc.
  50528. +This config.lt script is free software; the Free Software Foundation
  50529. +gives unlimited permision to copy, distribute and modify it."
  50530. +
  50531. +while test $[#] != 0
  50532. +do
  50533. + case $[1] in
  50534. + --version | --v* | -V )
  50535. + echo "$lt_cl_version"; exit 0 ;;
  50536. + --help | --h* | -h )
  50537. + echo "$lt_cl_help"; exit 0 ;;
  50538. + --debug | --d* | -d )
  50539. + debug=: ;;
  50540. + --quiet | --q* | --silent | --s* | -q )
  50541. + lt_cl_silent=: ;;
  50542. +
  50543. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  50544. +Try \`$[0] --help' for more information.]) ;;
  50545. +
  50546. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  50547. +Try \`$[0] --help' for more information.]) ;;
  50548. + esac
  50549. + shift
  50550. +done
  50551. +
  50552. +if $lt_cl_silent; then
  50553. + exec AS_MESSAGE_FD>/dev/null
  50554. +fi
  50555. +_LTEOF
  50556. +
  50557. +cat >>"$CONFIG_LT" <<_LTEOF
  50558. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  50559. +_LTEOF
  50560. +
  50561. +cat >>"$CONFIG_LT" <<\_LTEOF
  50562. +AC_MSG_NOTICE([creating $ofile])
  50563. +_LT_OUTPUT_LIBTOOL_COMMANDS
  50564. +AS_EXIT(0)
  50565. +_LTEOF
  50566. +chmod +x "$CONFIG_LT"
  50567. +
  50568. +# configure is writing to config.log, but config.lt does its own redirection,
  50569. +# appending to config.log, which fails on DOS, as config.log is still kept
  50570. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  50571. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  50572. +if test "$no_create" != yes; then
  50573. + lt_cl_success=:
  50574. + test "$silent" = yes &&
  50575. + lt_config_lt_args="$lt_config_lt_args --quiet"
  50576. + exec AS_MESSAGE_LOG_FD>/dev/null
  50577. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  50578. + exec AS_MESSAGE_LOG_FD>>config.log
  50579. + $lt_cl_success || AS_EXIT(1)
  50580. +fi
  50581. +])# LT_OUTPUT
  50582. +
  50583. +
  50584. +# _LT_CONFIG(TAG)
  50585. +# ---------------
  50586. +# If TAG is the built-in tag, create an initial libtool script with a
  50587. +# default configuration from the untagged config vars. Otherwise add code
  50588. +# to config.status for appending the configuration named by TAG from the
  50589. +# matching tagged config vars.
  50590. +m4_defun([_LT_CONFIG],
  50591. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  50592. +_LT_CONFIG_SAVE_COMMANDS([
  50593. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  50594. + m4_if(_LT_TAG, [C], [
  50595. + # See if we are running on zsh, and set the options which allow our
  50596. + # commands through without removal of \ escapes.
  50597. + if test -n "${ZSH_VERSION+set}" ; then
  50598. + setopt NO_GLOB_SUBST
  50599. + fi
  50600. +
  50601. + cfgfile="${ofile}T"
  50602. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  50603. + $RM "$cfgfile"
  50604. +
  50605. + cat <<_LT_EOF >> "$cfgfile"
  50606. +#! $SHELL
  50607. +
  50608. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  50609. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  50610. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  50611. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  50612. +#
  50613. +_LT_COPYING
  50614. +_LT_LIBTOOL_TAGS
  50615. +
  50616. +# ### BEGIN LIBTOOL CONFIG
  50617. +_LT_LIBTOOL_CONFIG_VARS
  50618. +_LT_LIBTOOL_TAG_VARS
  50619. +# ### END LIBTOOL CONFIG
  50620. +
  50621. +_LT_EOF
  50622. +
  50623. + case $host_os in
  50624. + aix3*)
  50625. + cat <<\_LT_EOF >> "$cfgfile"
  50626. +# AIX sometimes has problems with the GCC collect2 program. For some
  50627. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  50628. +# vanish in a puff of smoke.
  50629. +if test "X${COLLECT_NAMES+set}" != Xset; then
  50630. + COLLECT_NAMES=
  50631. + export COLLECT_NAMES
  50632. +fi
  50633. +_LT_EOF
  50634. + ;;
  50635. + esac
  50636. +
  50637. + _LT_PROG_LTMAIN
  50638. +
  50639. + # We use sed instead of cat because bash on DJGPP gets confused if
  50640. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  50641. + # text mode, it properly converts lines to CR/LF. This bash problem
  50642. + # is reportedly fixed, but why not run on old versions too?
  50643. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  50644. + || (rm -f "$cfgfile"; exit 1)
  50645. +
  50646. + _LT_PROG_XSI_SHELLFNS
  50647. +
  50648. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  50649. + || (rm -f "$cfgfile"; exit 1)
  50650. +
  50651. + mv -f "$cfgfile" "$ofile" ||
  50652. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  50653. + chmod +x "$ofile"
  50654. +],
  50655. +[cat <<_LT_EOF >> "$ofile"
  50656. +
  50657. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  50658. +dnl in a comment (ie after a #).
  50659. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  50660. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  50661. +# ### END LIBTOOL TAG CONFIG: $1
  50662. +_LT_EOF
  50663. +])dnl /m4_if
  50664. +],
  50665. +[m4_if([$1], [], [
  50666. + PACKAGE='$PACKAGE'
  50667. + VERSION='$VERSION'
  50668. + TIMESTAMP='$TIMESTAMP'
  50669. + RM='$RM'
  50670. + ofile='$ofile'], [])
  50671. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  50672. +])# _LT_CONFIG
  50673. +
  50674. +
  50675. +# LT_SUPPORTED_TAG(TAG)
  50676. +# ---------------------
  50677. +# Trace this macro to discover what tags are supported by the libtool
  50678. +# --tag option, using:
  50679. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  50680. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  50681. +
  50682. +
  50683. +# C support is built-in for now
  50684. +m4_define([_LT_LANG_C_enabled], [])
  50685. +m4_define([_LT_TAGS], [])
  50686. +
  50687. +
  50688. +# LT_LANG(LANG)
  50689. +# -------------
  50690. +# Enable libtool support for the given language if not already enabled.
  50691. +AC_DEFUN([LT_LANG],
  50692. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  50693. +m4_case([$1],
  50694. + [C], [_LT_LANG(C)],
  50695. + [C++], [_LT_LANG(CXX)],
  50696. + [Java], [_LT_LANG(GCJ)],
  50697. + [Fortran 77], [_LT_LANG(F77)],
  50698. + [Fortran], [_LT_LANG(FC)],
  50699. + [Windows Resource], [_LT_LANG(RC)],
  50700. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  50701. + [_LT_LANG($1)],
  50702. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  50703. +])# LT_LANG
  50704. +
  50705. +
  50706. +# _LT_LANG(LANGNAME)
  50707. +# ------------------
  50708. +m4_defun([_LT_LANG],
  50709. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  50710. + [LT_SUPPORTED_TAG([$1])dnl
  50711. + m4_append([_LT_TAGS], [$1 ])dnl
  50712. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  50713. + _LT_LANG_$1_CONFIG($1)])dnl
  50714. +])# _LT_LANG
  50715. +
  50716. +
  50717. +# _LT_LANG_DEFAULT_CONFIG
  50718. +# -----------------------
  50719. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  50720. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  50721. + [LT_LANG(CXX)],
  50722. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  50723. +
  50724. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  50725. + [LT_LANG(F77)],
  50726. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  50727. +
  50728. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  50729. + [LT_LANG(FC)],
  50730. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  50731. +
  50732. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  50733. +dnl pulling things in needlessly.
  50734. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  50735. + [LT_LANG(GCJ)],
  50736. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  50737. + [LT_LANG(GCJ)],
  50738. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  50739. + [LT_LANG(GCJ)],
  50740. + [m4_ifdef([AC_PROG_GCJ],
  50741. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  50742. + m4_ifdef([A][M_PROG_GCJ],
  50743. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  50744. + m4_ifdef([LT_PROG_GCJ],
  50745. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  50746. +
  50747. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  50748. + [LT_LANG(RC)],
  50749. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  50750. +])# _LT_LANG_DEFAULT_CONFIG
  50751. +
  50752. +# Obsolete macros:
  50753. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  50754. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  50755. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  50756. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  50757. +dnl aclocal-1.4 backwards compatibility:
  50758. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  50759. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  50760. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  50761. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  50762. +
  50763. +
  50764. +# _LT_TAG_COMPILER
  50765. +# ----------------
  50766. +m4_defun([_LT_TAG_COMPILER],
  50767. [AC_REQUIRE([AC_PROG_CC])dnl
  50768. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  50769. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  50770. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  50771. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  50772. +
  50773. # If no C compiler was specified, use CC.
  50774. LTCC=${LTCC-"$CC"}
  50775. +# If no C compiler flags were specified, use CFLAGS.
  50776. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  50777. +
  50778. # Allow CC to be a program name with arguments.
  50779. compiler=$CC
  50780. -])# _LT_AC_SYS_COMPILER
  50781. +])# _LT_TAG_COMPILER
  50782. +
  50783. +
  50784. +# _LT_COMPILER_BOILERPLATE
  50785. +# ------------------------
  50786. +# Check for compiler boilerplate output or warnings with
  50787. +# the simple compiler test code.
  50788. +m4_defun([_LT_COMPILER_BOILERPLATE],
  50789. +[m4_require([_LT_DECL_SED])dnl
  50790. +ac_outfile=conftest.$ac_objext
  50791. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  50792. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  50793. +_lt_compiler_boilerplate=`cat conftest.err`
  50794. +$RM conftest*
  50795. +])# _LT_COMPILER_BOILERPLATE
  50796. -# _LT_AC_SYS_LIBPATH_AIX
  50797. +# _LT_LINKER_BOILERPLATE
  50798. # ----------------------
  50799. +# Check for linker boilerplate output or warnings with
  50800. +# the simple link test code.
  50801. +m4_defun([_LT_LINKER_BOILERPLATE],
  50802. +[m4_require([_LT_DECL_SED])dnl
  50803. +ac_outfile=conftest.$ac_objext
  50804. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  50805. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  50806. +_lt_linker_boilerplate=`cat conftest.err`
  50807. +$RM -r conftest*
  50808. +])# _LT_LINKER_BOILERPLATE
  50809. +
  50810. +# _LT_REQUIRED_DARWIN_CHECKS
  50811. +# -------------------------
  50812. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  50813. + case $host_os in
  50814. + rhapsody* | darwin*)
  50815. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  50816. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  50817. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  50818. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  50819. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  50820. + _LT_DECL([], [DSYMUTIL], [1],
  50821. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  50822. + _LT_DECL([], [NMEDIT], [1],
  50823. + [Tool to change global to local symbols on Mac OS X])
  50824. + _LT_DECL([], [LIPO], [1],
  50825. + [Tool to manipulate fat objects and archives on Mac OS X])
  50826. + _LT_DECL([], [OTOOL], [1],
  50827. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  50828. + _LT_DECL([], [OTOOL64], [1],
  50829. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  50830. +
  50831. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  50832. + [lt_cv_apple_cc_single_mod=no
  50833. + if test -z "${LT_MULTI_MODULE}"; then
  50834. + # By default we will add the -single_module flag. You can override
  50835. + # by either setting the environment variable LT_MULTI_MODULE
  50836. + # non-empty at configure time, or by adding -multi_module to the
  50837. + # link flags.
  50838. + rm -rf libconftest.dylib*
  50839. + echo "int foo(void){return 1;}" > conftest.c
  50840. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  50841. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  50842. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  50843. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  50844. + _lt_result=$?
  50845. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  50846. + lt_cv_apple_cc_single_mod=yes
  50847. + else
  50848. + cat conftest.err >&AS_MESSAGE_LOG_FD
  50849. + fi
  50850. + rm -rf libconftest.dylib*
  50851. + rm -f conftest.*
  50852. + fi])
  50853. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  50854. + [lt_cv_ld_exported_symbols_list],
  50855. + [lt_cv_ld_exported_symbols_list=no
  50856. + save_LDFLAGS=$LDFLAGS
  50857. + echo "_main" > conftest.sym
  50858. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  50859. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  50860. + [lt_cv_ld_exported_symbols_list=yes],
  50861. + [lt_cv_ld_exported_symbols_list=no])
  50862. + LDFLAGS="$save_LDFLAGS"
  50863. + ])
  50864. + case $host_os in
  50865. + rhapsody* | darwin1.[[012]])
  50866. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  50867. + darwin1.*)
  50868. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  50869. + darwin*) # darwin 5.x on
  50870. + # if running on 10.5 or later, the deployment target defaults
  50871. + # to the OS version, if on x86, and 10.4, the deployment
  50872. + # target defaults to 10.4. Don't you love it?
  50873. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  50874. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  50875. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  50876. + 10.[[012]]*)
  50877. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  50878. + 10.*)
  50879. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  50880. + esac
  50881. + ;;
  50882. + esac
  50883. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  50884. + _lt_dar_single_mod='$single_module'
  50885. + fi
  50886. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  50887. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  50888. + else
  50889. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  50890. + fi
  50891. + if test "$DSYMUTIL" != ":"; then
  50892. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  50893. + else
  50894. + _lt_dsymutil=
  50895. + fi
  50896. + ;;
  50897. + esac
  50898. +])
  50899. +
  50900. +
  50901. +# _LT_DARWIN_LINKER_FEATURES
  50902. +# --------------------------
  50903. +# Checks for linker and compiler features on darwin
  50904. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  50905. +[
  50906. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  50907. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  50908. + _LT_TAGVAR(hardcode_direct, $1)=no
  50909. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  50910. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  50911. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  50912. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  50913. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  50914. + case $cc_basename in
  50915. + ifort*) _lt_dar_can_shared=yes ;;
  50916. + *) _lt_dar_can_shared=$GCC ;;
  50917. + esac
  50918. + if test "$_lt_dar_can_shared" = "yes"; then
  50919. + output_verbose_link_cmd=echo
  50920. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  50921. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  50922. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  50923. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  50924. + m4_if([$1], [CXX],
  50925. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  50926. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  50927. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  50928. + fi
  50929. +],[])
  50930. + else
  50931. + _LT_TAGVAR(ld_shlibs, $1)=no
  50932. + fi
  50933. +])
  50934. +
  50935. +# _LT_SYS_MODULE_PATH_AIX
  50936. +# -----------------------
  50937. # Links a minimal program and checks the executable
  50938. # for the system default hardcoded library path. In most cases,
  50939. # this is /usr/lib:/lib, but when the MPI compilers are used
  50940. # the location of the communication and MPI libs are included too.
  50941. # If we don't find anything, use the default library path according
  50942. # to the aix ld manual.
  50943. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  50944. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  50945. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  50946. -}'`
  50947. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  50948. +[m4_require([_LT_DECL_SED])dnl
  50949. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  50950. +lt_aix_libpath_sed='
  50951. + /Import File Strings/,/^$/ {
  50952. + /^0/ {
  50953. + s/^0 *\(.*\)$/\1/
  50954. + p
  50955. + }
  50956. + }'
  50957. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  50958. # Check for a 64-bit object if we didn't find anything.
  50959. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  50960. -}'`; fi],[])
  50961. +if test -z "$aix_libpath"; then
  50962. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  50963. +fi],[])
  50964. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  50965. -])# _LT_AC_SYS_LIBPATH_AIX
  50966. +])# _LT_SYS_MODULE_PATH_AIX
  50967. -# _LT_AC_SHELL_INIT(ARG)
  50968. -# ----------------------
  50969. -AC_DEFUN([_LT_AC_SHELL_INIT],
  50970. +# _LT_SHELL_INIT(ARG)
  50971. +# -------------------
  50972. +m4_define([_LT_SHELL_INIT],
  50973. [ifdef([AC_DIVERSION_NOTICE],
  50974. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  50975. [AC_DIVERT_PUSH(NOTICE)])
  50976. $1
  50977. AC_DIVERT_POP
  50978. -])# _LT_AC_SHELL_INIT
  50979. +])# _LT_SHELL_INIT
  50980. -# _LT_AC_PROG_ECHO_BACKSLASH
  50981. -# --------------------------
  50982. +# _LT_PROG_ECHO_BACKSLASH
  50983. +# -----------------------
  50984. # Add some code to the start of the generated configure script which
  50985. # will find an echo command which doesn't interpret backslashes.
  50986. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  50987. -[_LT_AC_SHELL_INIT([
  50988. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  50989. +[_LT_SHELL_INIT([
  50990. # Check that we are running under the correct shell.
  50991. SHELL=${CONFIG_SHELL-/bin/sh}
  50992. -case X$ECHO in
  50993. +case X$lt_ECHO in
  50994. X*--fallback-echo)
  50995. # Remove one level of quotation (which was required for Make).
  50996. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  50997. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  50998. ;;
  50999. esac
  51000. -echo=${ECHO-echo}
  51001. +ECHO=${lt_ECHO-echo}
  51002. if test "X[$]1" = X--no-reexec; then
  51003. # Discard the --no-reexec flag, and continue.
  51004. shift
  51005. elif test "X[$]1" = X--fallback-echo; then
  51006. # Avoid inline document here, it may be left over
  51007. :
  51008. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  51009. - # Yippee, $echo works!
  51010. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  51011. + # Yippee, $ECHO works!
  51012. :
  51013. else
  51014. # Restart under the correct shell.
  51015. @@ -310,134 +1083,137 @@
  51016. if test "X[$]1" = X--fallback-echo; then
  51017. # used as fallback echo
  51018. shift
  51019. - cat <<EOF
  51020. + cat <<_LT_EOF
  51021. [$]*
  51022. -EOF
  51023. +_LT_EOF
  51024. exit 0
  51025. fi
  51026. # The HP-UX ksh and POSIX shell print the target directory to stdout
  51027. # if CDPATH is set.
  51028. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  51029. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  51030. -if test -z "$ECHO"; then
  51031. -if test "X${echo_test_string+set}" != Xset; then
  51032. -# find a string as large as possible, as long as the shell can cope with it
  51033. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  51034. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  51035. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  51036. - echo_test_string="`eval $cmd`" &&
  51037. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  51038. - then
  51039. - break
  51040. - fi
  51041. - done
  51042. -fi
  51043. +if test -z "$lt_ECHO"; then
  51044. + if test "X${echo_test_string+set}" != Xset; then
  51045. + # find a string as large as possible, as long as the shell can cope with it
  51046. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  51047. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  51048. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  51049. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  51050. + then
  51051. + break
  51052. + fi
  51053. + done
  51054. + fi
  51055. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  51056. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  51057. - test "X$echo_testing_string" = "X$echo_test_string"; then
  51058. - :
  51059. -else
  51060. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  51061. - # backslashes. This makes it impossible to quote backslashes using
  51062. - # echo "$something" | sed 's/\\/\\\\/g'
  51063. - #
  51064. - # So, first we look for a working echo in the user's PATH.
  51065. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  51066. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  51067. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51068. + :
  51069. + else
  51070. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  51071. + # backslashes. This makes it impossible to quote backslashes using
  51072. + # echo "$something" | sed 's/\\/\\\\/g'
  51073. + #
  51074. + # So, first we look for a working echo in the user's PATH.
  51075. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  51076. - for dir in $PATH /usr/ucb; do
  51077. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  51078. + for dir in $PATH /usr/ucb; do
  51079. + IFS="$lt_save_ifs"
  51080. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  51081. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  51082. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  51083. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51084. + ECHO="$dir/echo"
  51085. + break
  51086. + fi
  51087. + done
  51088. IFS="$lt_save_ifs"
  51089. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  51090. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  51091. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  51092. - test "X$echo_testing_string" = "X$echo_test_string"; then
  51093. - echo="$dir/echo"
  51094. - break
  51095. - fi
  51096. - done
  51097. - IFS="$lt_save_ifs"
  51098. - if test "X$echo" = Xecho; then
  51099. - # We didn't find a better echo, so look for alternatives.
  51100. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  51101. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  51102. - test "X$echo_testing_string" = "X$echo_test_string"; then
  51103. - # This shell has a builtin print -r that does the trick.
  51104. - echo='print -r'
  51105. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  51106. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  51107. - # If we have ksh, try running configure again with it.
  51108. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  51109. - export ORIGINAL_CONFIG_SHELL
  51110. - CONFIG_SHELL=/bin/ksh
  51111. - export CONFIG_SHELL
  51112. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  51113. - else
  51114. - # Try using printf.
  51115. - echo='printf %s\n'
  51116. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  51117. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  51118. - test "X$echo_testing_string" = "X$echo_test_string"; then
  51119. - # Cool, printf works
  51120. - :
  51121. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  51122. - test "X$echo_testing_string" = 'X\t' &&
  51123. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  51124. + if test "X$ECHO" = Xecho; then
  51125. + # We didn't find a better echo, so look for alternatives.
  51126. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  51127. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  51128. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51129. + # This shell has a builtin print -r that does the trick.
  51130. + ECHO='print -r'
  51131. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  51132. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  51133. + # If we have ksh, try running configure again with it.
  51134. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  51135. + export ORIGINAL_CONFIG_SHELL
  51136. + CONFIG_SHELL=/bin/ksh
  51137. + export CONFIG_SHELL
  51138. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  51139. + else
  51140. + # Try using printf.
  51141. + ECHO='printf %s\n'
  51142. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  51143. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  51144. test "X$echo_testing_string" = "X$echo_test_string"; then
  51145. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  51146. - export CONFIG_SHELL
  51147. - SHELL="$CONFIG_SHELL"
  51148. - export SHELL
  51149. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  51150. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  51151. - test "X$echo_testing_string" = 'X\t' &&
  51152. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  51153. - test "X$echo_testing_string" = "X$echo_test_string"; then
  51154. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  51155. - else
  51156. - # maybe with a smaller string...
  51157. - prev=:
  51158. + # Cool, printf works
  51159. + :
  51160. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  51161. + test "X$echo_testing_string" = 'X\t' &&
  51162. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  51163. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51164. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  51165. + export CONFIG_SHELL
  51166. + SHELL="$CONFIG_SHELL"
  51167. + export SHELL
  51168. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  51169. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  51170. + test "X$echo_testing_string" = 'X\t' &&
  51171. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  51172. + test "X$echo_testing_string" = "X$echo_test_string"; then
  51173. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  51174. + else
  51175. + # maybe with a smaller string...
  51176. + prev=:
  51177. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  51178. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  51179. - then
  51180. - break
  51181. - fi
  51182. - prev="$cmd"
  51183. - done
  51184. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  51185. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  51186. + then
  51187. + break
  51188. + fi
  51189. + prev="$cmd"
  51190. + done
  51191. - if test "$prev" != 'sed 50q "[$]0"'; then
  51192. - echo_test_string=`eval $prev`
  51193. - export echo_test_string
  51194. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  51195. - else
  51196. - # Oops. We lost completely, so just stick with echo.
  51197. - echo=echo
  51198. - fi
  51199. + if test "$prev" != 'sed 50q "[$]0"'; then
  51200. + echo_test_string=`eval $prev`
  51201. + export echo_test_string
  51202. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  51203. + else
  51204. + # Oops. We lost completely, so just stick with echo.
  51205. + ECHO=echo
  51206. + fi
  51207. + fi
  51208. fi
  51209. fi
  51210. fi
  51211. fi
  51212. -fi
  51213. # Copy echo and quote the copy suitably for passing to libtool from
  51214. # the Makefile, instead of quoting the original, which is used later.
  51215. -ECHO=$echo
  51216. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  51217. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  51218. +lt_ECHO=$ECHO
  51219. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  51220. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  51221. fi
  51222. -AC_SUBST(ECHO)
  51223. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  51224. +AC_SUBST(lt_ECHO)
  51225. +])
  51226. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  51227. +_LT_DECL([], [ECHO], [1],
  51228. + [An echo program that does not interpret backslashes])
  51229. +])# _LT_PROG_ECHO_BACKSLASH
  51230. -# _LT_AC_LOCK
  51231. -# -----------
  51232. -AC_DEFUN([_LT_AC_LOCK],
  51233. +# _LT_ENABLE_LOCK
  51234. +# ---------------
  51235. +m4_defun([_LT_ENABLE_LOCK],
  51236. [AC_ARG_ENABLE([libtool-lock],
  51237. - [AC_HELP_STRING([--disable-libtool-lock],
  51238. - [avoid locking (might break parallel builds)])])
  51239. + [AS_HELP_STRING([--disable-libtool-lock],
  51240. + [avoid locking (might break parallel builds)])])
  51241. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  51242. # Some flags need to be propagated to the compiler or linker for good
  51243. @@ -448,12 +1224,12 @@
  51244. echo 'int i;' > conftest.$ac_ext
  51245. if AC_TRY_EVAL(ac_compile); then
  51246. case `/usr/bin/file conftest.$ac_objext` in
  51247. - *ELF-32*)
  51248. - HPUX_IA64_MODE="32"
  51249. - ;;
  51250. - *ELF-64*)
  51251. - HPUX_IA64_MODE="64"
  51252. - ;;
  51253. + *ELF-32*)
  51254. + HPUX_IA64_MODE="32"
  51255. + ;;
  51256. + *ELF-64*)
  51257. + HPUX_IA64_MODE="64"
  51258. + ;;
  51259. esac
  51260. fi
  51261. rm -rf conftest*
  51262. @@ -462,72 +1238,79 @@
  51263. # Find out which ABI we are using.
  51264. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  51265. if AC_TRY_EVAL(ac_compile); then
  51266. - if test "$lt_cv_prog_gnu_ld" = yes; then
  51267. - case `/usr/bin/file conftest.$ac_objext` in
  51268. - *32-bit*)
  51269. - LD="${LD-ld} -melf32bsmip"
  51270. - ;;
  51271. - *N32*)
  51272. - LD="${LD-ld} -melf32bmipn32"
  51273. - ;;
  51274. - *64-bit*)
  51275. - LD="${LD-ld} -melf64bmip"
  51276. - ;;
  51277. - esac
  51278. - else
  51279. - case `/usr/bin/file conftest.$ac_objext` in
  51280. - *32-bit*)
  51281. - LD="${LD-ld} -32"
  51282. - ;;
  51283. - *N32*)
  51284. - LD="${LD-ld} -n32"
  51285. - ;;
  51286. - *64-bit*)
  51287. - LD="${LD-ld} -64"
  51288. - ;;
  51289. - esac
  51290. - fi
  51291. + if test "$lt_cv_prog_gnu_ld" = yes; then
  51292. + case `/usr/bin/file conftest.$ac_objext` in
  51293. + *32-bit*)
  51294. + LD="${LD-ld} -melf32bsmip"
  51295. + ;;
  51296. + *N32*)
  51297. + LD="${LD-ld} -melf32bmipn32"
  51298. + ;;
  51299. + *64-bit*)
  51300. + LD="${LD-ld} -melf64bmip"
  51301. + ;;
  51302. + esac
  51303. + else
  51304. + case `/usr/bin/file conftest.$ac_objext` in
  51305. + *32-bit*)
  51306. + LD="${LD-ld} -32"
  51307. + ;;
  51308. + *N32*)
  51309. + LD="${LD-ld} -n32"
  51310. + ;;
  51311. + *64-bit*)
  51312. + LD="${LD-ld} -64"
  51313. + ;;
  51314. + esac
  51315. + fi
  51316. fi
  51317. rm -rf conftest*
  51318. ;;
  51319. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  51320. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  51321. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  51322. # Find out which ABI we are using.
  51323. echo 'int i;' > conftest.$ac_ext
  51324. if AC_TRY_EVAL(ac_compile); then
  51325. - case "`/usr/bin/file conftest.o`" in
  51326. - *32-bit*)
  51327. - case $host in
  51328. - x86_64-*linux*)
  51329. - LD="${LD-ld} -m elf_i386"
  51330. - ;;
  51331. - ppc64-*linux*|powerpc64-*linux*)
  51332. - LD="${LD-ld} -m elf32ppclinux"
  51333. - ;;
  51334. - s390x-*linux*)
  51335. - LD="${LD-ld} -m elf_s390"
  51336. - ;;
  51337. - sparc64-*linux*)
  51338. - LD="${LD-ld} -m elf32_sparc"
  51339. - ;;
  51340. - esac
  51341. - ;;
  51342. - *64-bit*)
  51343. - case $host in
  51344. - x86_64-*linux*)
  51345. - LD="${LD-ld} -m elf_x86_64"
  51346. - ;;
  51347. - ppc*-*linux*|powerpc*-*linux*)
  51348. - LD="${LD-ld} -m elf64ppc"
  51349. - ;;
  51350. - s390*-*linux*)
  51351. - LD="${LD-ld} -m elf64_s390"
  51352. - ;;
  51353. - sparc*-*linux*)
  51354. - LD="${LD-ld} -m elf64_sparc"
  51355. - ;;
  51356. - esac
  51357. - ;;
  51358. + case `/usr/bin/file conftest.o` in
  51359. + *32-bit*)
  51360. + case $host in
  51361. + x86_64-*kfreebsd*-gnu)
  51362. + LD="${LD-ld} -m elf_i386_fbsd"
  51363. + ;;
  51364. + x86_64-*linux*)
  51365. + LD="${LD-ld} -m elf_i386"
  51366. + ;;
  51367. + ppc64-*linux*|powerpc64-*linux*)
  51368. + LD="${LD-ld} -m elf32ppclinux"
  51369. + ;;
  51370. + s390x-*linux*)
  51371. + LD="${LD-ld} -m elf_s390"
  51372. + ;;
  51373. + sparc64-*linux*)
  51374. + LD="${LD-ld} -m elf32_sparc"
  51375. + ;;
  51376. + esac
  51377. + ;;
  51378. + *64-bit*)
  51379. + case $host in
  51380. + x86_64-*kfreebsd*-gnu)
  51381. + LD="${LD-ld} -m elf_x86_64_fbsd"
  51382. + ;;
  51383. + x86_64-*linux*)
  51384. + LD="${LD-ld} -m elf_x86_64"
  51385. + ;;
  51386. + ppc*-*linux*|powerpc*-*linux*)
  51387. + LD="${LD-ld} -m elf64ppc"
  51388. + ;;
  51389. + s390*-*linux*|s390*-*tpf*)
  51390. + LD="${LD-ld} -m elf64_s390"
  51391. + ;;
  51392. + sparc*-*linux*)
  51393. + LD="${LD-ld} -m elf64_sparc"
  51394. + ;;
  51395. + esac
  51396. + ;;
  51397. esac
  51398. fi
  51399. rm -rf conftest*
  51400. @@ -539,37 +1322,90 @@
  51401. CFLAGS="$CFLAGS -belf"
  51402. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  51403. [AC_LANG_PUSH(C)
  51404. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  51405. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  51406. AC_LANG_POP])
  51407. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  51408. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  51409. CFLAGS="$SAVE_CFLAGS"
  51410. fi
  51411. ;;
  51412. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  51413. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  51414. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  51415. - AC_CHECK_TOOL(AS, as, false)
  51416. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  51417. +sparc*-*solaris*)
  51418. + # Find out which ABI we are using.
  51419. + echo 'int i;' > conftest.$ac_ext
  51420. + if AC_TRY_EVAL(ac_compile); then
  51421. + case `/usr/bin/file conftest.o` in
  51422. + *64-bit*)
  51423. + case $lt_cv_prog_gnu_ld in
  51424. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  51425. + *)
  51426. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  51427. + LD="${LD-ld} -64"
  51428. + fi
  51429. + ;;
  51430. + esac
  51431. + ;;
  51432. + esac
  51433. + fi
  51434. + rm -rf conftest*
  51435. ;;
  51436. - ])
  51437. esac
  51438. need_locks="$enable_libtool_lock"
  51439. +])# _LT_ENABLE_LOCK
  51440. +
  51441. +
  51442. +# _LT_CMD_OLD_ARCHIVE
  51443. +# -------------------
  51444. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  51445. +[AC_CHECK_TOOL(AR, ar, false)
  51446. +test -z "$AR" && AR=ar
  51447. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  51448. +_LT_DECL([], [AR], [1], [The archiver])
  51449. +_LT_DECL([], [AR_FLAGS], [1])
  51450. +
  51451. +AC_CHECK_TOOL(STRIP, strip, :)
  51452. +test -z "$STRIP" && STRIP=:
  51453. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  51454. +
  51455. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  51456. +test -z "$RANLIB" && RANLIB=:
  51457. +_LT_DECL([], [RANLIB], [1],
  51458. + [Commands used to install an old-style archive])
  51459. -])# _LT_AC_LOCK
  51460. +# Determine commands to create old-style static archives.
  51461. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  51462. +old_postinstall_cmds='chmod 644 $oldlib'
  51463. +old_postuninstall_cmds=
  51464. +
  51465. +if test -n "$RANLIB"; then
  51466. + case $host_os in
  51467. + openbsd*)
  51468. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  51469. + ;;
  51470. + *)
  51471. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  51472. + ;;
  51473. + esac
  51474. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  51475. +fi
  51476. +_LT_DECL([], [old_postinstall_cmds], [2])
  51477. +_LT_DECL([], [old_postuninstall_cmds], [2])
  51478. +_LT_TAGDECL([], [old_archive_cmds], [2],
  51479. + [Commands used to build an old-style archive])
  51480. +])# _LT_CMD_OLD_ARCHIVE
  51481. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  51482. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  51483. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  51484. # ----------------------------------------------------------------
  51485. # Check whether the given compiler option works
  51486. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  51487. -[AC_REQUIRE([LT_AC_PROG_SED])
  51488. +AC_DEFUN([_LT_COMPILER_OPTION],
  51489. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  51490. +m4_require([_LT_DECL_SED])dnl
  51491. AC_CACHE_CHECK([$1], [$2],
  51492. [$2=no
  51493. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  51494. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  51495. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  51496. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  51497. lt_compiler_flag="$3"
  51498. # Insert the option either (1) after the last *FLAGS variable, or
  51499. # (2) before a word containing "conftest.", or (3) at the end.
  51500. @@ -577,7 +1413,7 @@
  51501. # with a dollar sign (not a hyphen), so the echo should work correctly.
  51502. # The option is referenced via a variable to avoid confusing sed.
  51503. lt_compile=`echo "$ac_compile" | $SED \
  51504. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  51505. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  51506. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  51507. -e 's:$: $lt_compiler_flag:'`
  51508. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  51509. @@ -587,58 +1423,78 @@
  51510. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  51511. if (exit $ac_status) && test -s "$ac_outfile"; then
  51512. # The compiler can only warn and ignore the option if not recognized
  51513. - # So say no if there are warnings
  51514. - if test ! -s conftest.err; then
  51515. + # So say no if there are warnings other than the usual output.
  51516. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  51517. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  51518. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  51519. $2=yes
  51520. fi
  51521. fi
  51522. - $rm conftest*
  51523. + $RM conftest*
  51524. ])
  51525. if test x"[$]$2" = xyes; then
  51526. - ifelse([$5], , :, [$5])
  51527. + m4_if([$5], , :, [$5])
  51528. else
  51529. - ifelse([$6], , :, [$6])
  51530. + m4_if([$6], , :, [$6])
  51531. fi
  51532. -])# AC_LIBTOOL_COMPILER_OPTION
  51533. +])# _LT_COMPILER_OPTION
  51534. +# Old name:
  51535. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  51536. +dnl aclocal-1.4 backwards compatibility:
  51537. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  51538. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  51539. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  51540. -# ------------------------------------------------------------
  51541. -# Check whether the given compiler option works
  51542. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  51543. -[AC_CACHE_CHECK([$1], [$2],
  51544. +
  51545. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  51546. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  51547. +# ----------------------------------------------------
  51548. +# Check whether the given linker option works
  51549. +AC_DEFUN([_LT_LINKER_OPTION],
  51550. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  51551. +m4_require([_LT_DECL_SED])dnl
  51552. +AC_CACHE_CHECK([$1], [$2],
  51553. [$2=no
  51554. save_LDFLAGS="$LDFLAGS"
  51555. LDFLAGS="$LDFLAGS $3"
  51556. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  51557. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  51558. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  51559. - # The compiler can only warn and ignore the option if not recognized
  51560. + # The linker can only warn and ignore the option if not recognized
  51561. # So say no if there are warnings
  51562. if test -s conftest.err; then
  51563. # Append any errors to the config.log.
  51564. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  51565. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  51566. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  51567. + if diff conftest.exp conftest.er2 >/dev/null; then
  51568. + $2=yes
  51569. + fi
  51570. else
  51571. $2=yes
  51572. fi
  51573. fi
  51574. - $rm conftest*
  51575. + $RM -r conftest*
  51576. LDFLAGS="$save_LDFLAGS"
  51577. ])
  51578. if test x"[$]$2" = xyes; then
  51579. - ifelse([$4], , :, [$4])
  51580. + m4_if([$4], , :, [$4])
  51581. else
  51582. - ifelse([$5], , :, [$5])
  51583. + m4_if([$5], , :, [$5])
  51584. fi
  51585. -])# AC_LIBTOOL_LINKER_OPTION
  51586. +])# _LT_LINKER_OPTION
  51587. +# Old name:
  51588. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  51589. +dnl aclocal-1.4 backwards compatibility:
  51590. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  51591. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  51592. -# --------------------------
  51593. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  51594. -[# find the maximum length of command line arguments
  51595. +
  51596. +# LT_CMD_MAX_LEN
  51597. +#---------------
  51598. +AC_DEFUN([LT_CMD_MAX_LEN],
  51599. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  51600. +# find the maximum length of command line arguments
  51601. AC_MSG_CHECKING([the maximum length of command line arguments])
  51602. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  51603. i=0
  51604. @@ -660,7 +1516,7 @@
  51605. lt_cv_sys_max_cmd_len=-1;
  51606. ;;
  51607. - cygwin* | mingw*)
  51608. + cygwin* | mingw* | cegcc*)
  51609. # On Win9x/ME, this test blows up -- it succeeds, but takes
  51610. # about 5 minutes as the teststring grows exponentially.
  51611. # Worse, since 9x/ME are not pre-emptively multitasking,
  51612. @@ -677,24 +1533,79 @@
  51613. lt_cv_sys_max_cmd_len=8192;
  51614. ;;
  51615. - *)
  51616. - # If test is not a shell built-in, we'll probably end up computing a
  51617. - # maximum length that is only half of the actual maximum length, but
  51618. - # we can't tell.
  51619. - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  51620. - = "XX$teststring") >/dev/null 2>&1 &&
  51621. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  51622. - lt_cv_sys_max_cmd_len=$new_result &&
  51623. - test $i != 17 # 1/2 MB should be enough
  51624. - do
  51625. - i=`expr $i + 1`
  51626. - teststring=$teststring$teststring
  51627. - done
  51628. - teststring=
  51629. - # Add a significant safety factor because C++ compilers can tack on massive
  51630. - # amounts of additional arguments before passing them to the linker.
  51631. - # It appears as though 1/2 is a usable value.
  51632. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  51633. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  51634. + # This has been around since 386BSD, at least. Likely further.
  51635. + if test -x /sbin/sysctl; then
  51636. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  51637. + elif test -x /usr/sbin/sysctl; then
  51638. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  51639. + else
  51640. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  51641. + fi
  51642. + # And add a safety zone
  51643. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  51644. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  51645. + ;;
  51646. +
  51647. + interix*)
  51648. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  51649. + lt_cv_sys_max_cmd_len=196608
  51650. + ;;
  51651. +
  51652. + osf*)
  51653. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  51654. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  51655. + # nice to cause kernel panics so lets avoid the loop below.
  51656. + # First set a reasonable default.
  51657. + lt_cv_sys_max_cmd_len=16384
  51658. + #
  51659. + if test -x /sbin/sysconfig; then
  51660. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  51661. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  51662. + esac
  51663. + fi
  51664. + ;;
  51665. + sco3.2v5*)
  51666. + lt_cv_sys_max_cmd_len=102400
  51667. + ;;
  51668. + sysv5* | sco5v6* | sysv4.2uw2*)
  51669. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  51670. + if test -n "$kargmax"; then
  51671. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  51672. + else
  51673. + lt_cv_sys_max_cmd_len=32768
  51674. + fi
  51675. + ;;
  51676. + *)
  51677. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  51678. + if test -n "$lt_cv_sys_max_cmd_len"; then
  51679. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  51680. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  51681. + else
  51682. + # Make teststring a little bigger before we do anything with it.
  51683. + # a 1K string should be a reasonable start.
  51684. + for i in 1 2 3 4 5 6 7 8 ; do
  51685. + teststring=$teststring$teststring
  51686. + done
  51687. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  51688. + # If test is not a shell built-in, we'll probably end up computing a
  51689. + # maximum length that is only half of the actual maximum length, but
  51690. + # we can't tell.
  51691. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  51692. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  51693. + test $i != 17 # 1/2 MB should be enough
  51694. + do
  51695. + i=`expr $i + 1`
  51696. + teststring=$teststring$teststring
  51697. + done
  51698. + # Only check the string length outside the loop.
  51699. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  51700. + teststring=
  51701. + # Add a significant safety factor because C++ compilers can tack on
  51702. + # massive amounts of additional arguments before passing them to the
  51703. + # linker. It appears as though 1/2 is a usable value.
  51704. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  51705. + fi
  51706. ;;
  51707. esac
  51708. ])
  51709. @@ -703,27 +1614,35 @@
  51710. else
  51711. AC_MSG_RESULT(none)
  51712. fi
  51713. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  51714. +max_cmd_len=$lt_cv_sys_max_cmd_len
  51715. +_LT_DECL([], [max_cmd_len], [0],
  51716. + [What is the maximum length of a command?])
  51717. +])# LT_CMD_MAX_LEN
  51718. +
  51719. +# Old name:
  51720. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  51721. +dnl aclocal-1.4 backwards compatibility:
  51722. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  51723. -# _LT_AC_CHECK_DLFCN
  51724. -# --------------------
  51725. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  51726. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  51727. -])# _LT_AC_CHECK_DLFCN
  51728. +# _LT_HEADER_DLFCN
  51729. +# ----------------
  51730. +m4_defun([_LT_HEADER_DLFCN],
  51731. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  51732. +])# _LT_HEADER_DLFCN
  51733. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  51734. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  51735. -# ------------------------------------------------------------------
  51736. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  51737. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  51738. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  51739. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  51740. +# ----------------------------------------------------------------
  51741. +m4_defun([_LT_TRY_DLOPEN_SELF],
  51742. +[m4_require([_LT_HEADER_DLFCN])dnl
  51743. if test "$cross_compiling" = yes; then :
  51744. [$4]
  51745. else
  51746. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  51747. lt_status=$lt_dlunknown
  51748. - cat > conftest.$ac_ext <<EOF
  51749. + cat > conftest.$ac_ext <<_LT_EOF
  51750. [#line __oline__ "configure"
  51751. #include "confdefs.h"
  51752. @@ -765,10 +1684,6 @@
  51753. # endif
  51754. #endif
  51755. -#ifdef __cplusplus
  51756. -extern "C" void exit (int);
  51757. -#endif
  51758. -
  51759. void fnord() { int i=42;}
  51760. int main ()
  51761. {
  51762. @@ -781,17 +1696,19 @@
  51763. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  51764. /* dlclose (self); */
  51765. }
  51766. + else
  51767. + puts (dlerror ());
  51768. - exit (status);
  51769. + return status;
  51770. }]
  51771. -EOF
  51772. +_LT_EOF
  51773. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  51774. - (./conftest; exit; ) 2>/dev/null
  51775. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  51776. lt_status=$?
  51777. case x$lt_status in
  51778. x$lt_dlno_uscore) $1 ;;
  51779. x$lt_dlneed_uscore) $2 ;;
  51780. - x$lt_unknown|x*) $3 ;;
  51781. + x$lt_dlunknown|x*) $3 ;;
  51782. esac
  51783. else :
  51784. # compilation failed
  51785. @@ -799,13 +1716,13 @@
  51786. fi
  51787. fi
  51788. rm -fr conftest*
  51789. -])# _LT_AC_TRY_DLOPEN_SELF
  51790. +])# _LT_TRY_DLOPEN_SELF
  51791. -# AC_LIBTOOL_DLOPEN_SELF
  51792. -# -------------------
  51793. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  51794. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  51795. +# LT_SYS_DLOPEN_SELF
  51796. +# ------------------
  51797. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  51798. +[m4_require([_LT_HEADER_DLFCN])dnl
  51799. if test "x$enable_dlopen" != xyes; then
  51800. enable_dlopen=unknown
  51801. enable_dlopen_self=unknown
  51802. @@ -821,15 +1738,15 @@
  51803. lt_cv_dlopen_self=yes
  51804. ;;
  51805. - mingw* | pw32*)
  51806. + mingw* | pw32* | cegcc*)
  51807. lt_cv_dlopen="LoadLibrary"
  51808. lt_cv_dlopen_libs=
  51809. - ;;
  51810. + ;;
  51811. cygwin*)
  51812. lt_cv_dlopen="dlopen"
  51813. lt_cv_dlopen_libs=
  51814. - ;;
  51815. + ;;
  51816. darwin*)
  51817. # if libdl is installed we need to link against it
  51818. @@ -839,13 +1756,13 @@
  51819. lt_cv_dlopen_libs=
  51820. lt_cv_dlopen_self=yes
  51821. ])
  51822. - ;;
  51823. + ;;
  51824. *)
  51825. AC_CHECK_FUNC([shl_load],
  51826. [lt_cv_dlopen="shl_load"],
  51827. [AC_CHECK_LIB([dld], [shl_load],
  51828. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  51829. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  51830. [AC_CHECK_FUNC([dlopen],
  51831. [lt_cv_dlopen="dlopen"],
  51832. [AC_CHECK_LIB([dl], [dlopen],
  51833. @@ -853,7 +1770,7 @@
  51834. [AC_CHECK_LIB([svld], [dlopen],
  51835. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  51836. [AC_CHECK_LIB([dld], [dld_link],
  51837. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  51838. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  51839. ])
  51840. ])
  51841. ])
  51842. @@ -874,23 +1791,23 @@
  51843. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  51844. save_LDFLAGS="$LDFLAGS"
  51845. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  51846. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  51847. save_LIBS="$LIBS"
  51848. LIBS="$lt_cv_dlopen_libs $LIBS"
  51849. AC_CACHE_CHECK([whether a program can dlopen itself],
  51850. lt_cv_dlopen_self, [dnl
  51851. - _LT_AC_TRY_DLOPEN_SELF(
  51852. + _LT_TRY_DLOPEN_SELF(
  51853. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  51854. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  51855. ])
  51856. if test "x$lt_cv_dlopen_self" = xyes; then
  51857. - LDFLAGS="$LDFLAGS $link_static_flag"
  51858. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  51859. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  51860. - lt_cv_dlopen_self_static, [dnl
  51861. - _LT_AC_TRY_DLOPEN_SELF(
  51862. + lt_cv_dlopen_self_static, [dnl
  51863. + _LT_TRY_DLOPEN_SELF(
  51864. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  51865. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  51866. ])
  51867. @@ -912,22 +1829,36 @@
  51868. *) enable_dlopen_self_static=unknown ;;
  51869. esac
  51870. fi
  51871. -])# AC_LIBTOOL_DLOPEN_SELF
  51872. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  51873. + [Whether dlopen is supported])
  51874. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  51875. + [Whether dlopen of programs is supported])
  51876. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  51877. + [Whether dlopen of statically linked programs is supported])
  51878. +])# LT_SYS_DLOPEN_SELF
  51879. +
  51880. +# Old name:
  51881. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  51882. +dnl aclocal-1.4 backwards compatibility:
  51883. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  51884. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  51885. -# ---------------------------------
  51886. -# Check to see if options -c and -o are simultaneously supported by compiler
  51887. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  51888. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  51889. +# _LT_COMPILER_C_O([TAGNAME])
  51890. +# ---------------------------
  51891. +# Check to see if options -c and -o are simultaneously supported by compiler.
  51892. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  51893. +m4_defun([_LT_COMPILER_C_O],
  51894. +[m4_require([_LT_DECL_SED])dnl
  51895. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  51896. +m4_require([_LT_TAG_COMPILER])dnl
  51897. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  51898. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  51899. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  51900. - $rm -r conftest 2>/dev/null
  51901. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  51902. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  51903. + $RM -r conftest 2>/dev/null
  51904. mkdir conftest
  51905. cd conftest
  51906. mkdir out
  51907. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  51908. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  51909. lt_compiler_flag="-o out/conftest2.$ac_objext"
  51910. # Insert the option either (1) after the last *FLAGS variable, or
  51911. @@ -935,7 +1866,7 @@
  51912. # Note that $ac_compile itself does not contain backslashes and begins
  51913. # with a dollar sign (not a hyphen), so the echo should work correctly.
  51914. lt_compile=`echo "$ac_compile" | $SED \
  51915. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  51916. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  51917. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  51918. -e 's:$: $lt_compiler_flag:'`
  51919. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  51920. @@ -947,35 +1878,41 @@
  51921. then
  51922. # The compiler can only warn and ignore the option if not recognized
  51923. # So say no if there are warnings
  51924. - if test ! -s out/conftest.err; then
  51925. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  51926. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  51927. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  51928. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  51929. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  51930. fi
  51931. fi
  51932. - chmod u+w .
  51933. - $rm conftest*
  51934. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  51935. + $RM conftest*
  51936. # SGI C++ compiler will create directory out/ii_files/ for
  51937. # template instantiation
  51938. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  51939. - $rm out/* && rmdir out
  51940. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  51941. + $RM out/* && rmdir out
  51942. cd ..
  51943. - rmdir conftest
  51944. - $rm conftest*
  51945. + $RM -r conftest
  51946. + $RM conftest*
  51947. ])
  51948. -])# AC_LIBTOOL_PROG_CC_C_O
  51949. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  51950. + [Does compiler simultaneously support -c and -o options?])
  51951. +])# _LT_COMPILER_C_O
  51952. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  51953. -# -----------------------------------------
  51954. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  51955. +# ----------------------------------
  51956. # Check to see if we can do hard links to lock some files if needed
  51957. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  51958. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  51959. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  51960. +[m4_require([_LT_ENABLE_LOCK])dnl
  51961. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  51962. +_LT_COMPILER_C_O([$1])
  51963. hard_links="nottested"
  51964. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  51965. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  51966. # do not overwrite the value of need_locks provided by the user
  51967. AC_MSG_CHECKING([if we can lock with hard links])
  51968. hard_links=yes
  51969. - $rm conftest*
  51970. + $RM conftest*
  51971. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  51972. touch conftest.a
  51973. ln conftest.a conftest.b 2>&5 || hard_links=no
  51974. @@ -988,12 +1925,13 @@
  51975. else
  51976. need_locks=no
  51977. fi
  51978. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  51979. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  51980. +])# _LT_COMPILER_FILE_LOCKS
  51981. -# AC_LIBTOOL_OBJDIR
  51982. -# -----------------
  51983. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  51984. +# _LT_CHECK_OBJDIR
  51985. +# ----------------
  51986. +m4_defun([_LT_CHECK_OBJDIR],
  51987. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  51988. [rm -f .libs 2>/dev/null
  51989. mkdir .libs 2>/dev/null
  51990. @@ -1005,40 +1943,46 @@
  51991. fi
  51992. rmdir .libs 2>/dev/null])
  51993. objdir=$lt_cv_objdir
  51994. -])# AC_LIBTOOL_OBJDIR
  51995. +_LT_DECL([], [objdir], [0],
  51996. + [The name of the directory that contains temporary libtool files])dnl
  51997. +m4_pattern_allow([LT_OBJDIR])dnl
  51998. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  51999. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  52000. +])# _LT_CHECK_OBJDIR
  52001. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  52002. -# ----------------------------------------------
  52003. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  52004. +# --------------------------------------
  52005. # Check hardcoding attributes.
  52006. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  52007. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  52008. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  52009. -_LT_AC_TAGVAR(hardcode_action, $1)=
  52010. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  52011. - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  52012. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  52013. +_LT_TAGVAR(hardcode_action, $1)=
  52014. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  52015. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  52016. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  52017. - # We can hardcode non-existant directories.
  52018. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  52019. + # We can hardcode non-existent directories.
  52020. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  52021. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  52022. # have to relink, otherwise we might link with an installed library
  52023. # when we should be linking with a yet-to-be-installed one
  52024. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  52025. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  52026. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  52027. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  52028. # Linking always hardcodes the temporary library directory.
  52029. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  52030. + _LT_TAGVAR(hardcode_action, $1)=relink
  52031. else
  52032. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  52033. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  52034. + _LT_TAGVAR(hardcode_action, $1)=immediate
  52035. fi
  52036. else
  52037. # We cannot hardcode anything, or else we can only hardcode existing
  52038. # directories.
  52039. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  52040. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  52041. fi
  52042. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  52043. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  52044. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  52045. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  52046. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  52047. # Fast installation is not supported
  52048. enable_fast_install=no
  52049. elif test "$shlibpath_overrides_runpath" = yes ||
  52050. @@ -1046,43 +1990,107 @@
  52051. # Fast installation is not necessary
  52052. enable_fast_install=needless
  52053. fi
  52054. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  52055. +_LT_TAGDECL([], [hardcode_action], [0],
  52056. + [How to hardcode a shared library path into an executable])
  52057. +])# _LT_LINKER_HARDCODE_LIBPATH
  52058. -# AC_LIBTOOL_SYS_LIB_STRIP
  52059. -# ------------------------
  52060. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  52061. -[striplib=
  52062. +# _LT_CMD_STRIPLIB
  52063. +# ----------------
  52064. +m4_defun([_LT_CMD_STRIPLIB],
  52065. +[m4_require([_LT_DECL_EGREP])
  52066. +striplib=
  52067. old_striplib=
  52068. AC_MSG_CHECKING([whether stripping libraries is possible])
  52069. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  52070. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  52071. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  52072. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  52073. AC_MSG_RESULT([yes])
  52074. else
  52075. # FIXME - insert some real tests, host_os isn't really good enough
  52076. case $host_os in
  52077. - darwin*)
  52078. - if test -n "$STRIP" ; then
  52079. - striplib="$STRIP -x"
  52080. - AC_MSG_RESULT([yes])
  52081. - else
  52082. - AC_MSG_RESULT([no])
  52083. -fi
  52084. - ;;
  52085. - *)
  52086. - AC_MSG_RESULT([no])
  52087. + darwin*)
  52088. + if test -n "$STRIP" ; then
  52089. + striplib="$STRIP -x"
  52090. + old_striplib="$STRIP -S"
  52091. + AC_MSG_RESULT([yes])
  52092. + else
  52093. + AC_MSG_RESULT([no])
  52094. + fi
  52095. + ;;
  52096. + *)
  52097. + AC_MSG_RESULT([no])
  52098. ;;
  52099. esac
  52100. fi
  52101. -])# AC_LIBTOOL_SYS_LIB_STRIP
  52102. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  52103. +_LT_DECL([], [striplib], [1])
  52104. +])# _LT_CMD_STRIPLIB
  52105. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  52106. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  52107. # -----------------------------
  52108. # PORTME Fill in your ld.so characteristics
  52109. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  52110. -[AC_MSG_CHECKING([dynamic linker characteristics])
  52111. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  52112. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  52113. +m4_require([_LT_DECL_EGREP])dnl
  52114. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  52115. +m4_require([_LT_DECL_OBJDUMP])dnl
  52116. +m4_require([_LT_DECL_SED])dnl
  52117. +AC_MSG_CHECKING([dynamic linker characteristics])
  52118. +m4_if([$1],
  52119. + [], [
  52120. +if test "$GCC" = yes; then
  52121. + case $host_os in
  52122. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  52123. + *) lt_awk_arg="/^libraries:/" ;;
  52124. + esac
  52125. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  52126. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  52127. + # if the path contains ";" then we assume it to be the separator
  52128. + # otherwise default to the standard path separator (i.e. ":") - it is
  52129. + # assumed that no part of a normal pathname contains ";" but that should
  52130. + # okay in the real world where ";" in dirpaths is itself problematic.
  52131. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  52132. + else
  52133. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52134. + fi
  52135. + # Ok, now we have the path, separated by spaces, we can step through it
  52136. + # and add multilib dir if necessary.
  52137. + lt_tmp_lt_search_path_spec=
  52138. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  52139. + for lt_sys_path in $lt_search_path_spec; do
  52140. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  52141. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  52142. + else
  52143. + test -d "$lt_sys_path" && \
  52144. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  52145. + fi
  52146. + done
  52147. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  52148. +BEGIN {RS=" "; FS="/|\n";} {
  52149. + lt_foo="";
  52150. + lt_count=0;
  52151. + for (lt_i = NF; lt_i > 0; lt_i--) {
  52152. + if ($lt_i != "" && $lt_i != ".") {
  52153. + if ($lt_i == "..") {
  52154. + lt_count++;
  52155. + } else {
  52156. + if (lt_count == 0) {
  52157. + lt_foo="/" $lt_i lt_foo;
  52158. + } else {
  52159. + lt_count--;
  52160. + }
  52161. + }
  52162. + }
  52163. + }
  52164. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  52165. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  52166. +}'`
  52167. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  52168. +else
  52169. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  52170. +fi])
  52171. library_names_spec=
  52172. libname_spec='lib$name'
  52173. soname_spec=
  52174. @@ -1096,20 +2104,6 @@
  52175. version_type=none
  52176. dynamic_linker="$host_os ld.so"
  52177. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  52178. -if test "$GCC" = yes; then
  52179. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  52180. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  52181. - # if the path contains ";" then we assume it to be the separator
  52182. - # otherwise default to the standard path separator (i.e. ":") - it is
  52183. - # assumed that no part of a normal pathname contains ";" but that should
  52184. - # okay in the real world where ";" in dirpaths is itself problematic.
  52185. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  52186. - else
  52187. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52188. - fi
  52189. -else
  52190. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  52191. -fi
  52192. need_lib_prefix=unknown
  52193. hardcode_into_libs=no
  52194. @@ -1127,7 +2121,7 @@
  52195. soname_spec='${libname}${release}${shared_ext}$major'
  52196. ;;
  52197. -aix4* | aix5*)
  52198. +aix[[4-9]]*)
  52199. version_type=linux
  52200. need_lib_prefix=no
  52201. need_version=no
  52202. @@ -1146,7 +2140,7 @@
  52203. aix4 | aix4.[[01]] | aix4.[[01]].*)
  52204. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  52205. echo ' yes '
  52206. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  52207. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  52208. :
  52209. else
  52210. can_build_shared=no
  52211. @@ -1172,9 +2166,18 @@
  52212. ;;
  52213. amigaos*)
  52214. - library_names_spec='$libname.ixlibrary $libname.a'
  52215. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  52216. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  52217. + case $host_cpu in
  52218. + powerpc)
  52219. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  52220. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  52221. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52222. + ;;
  52223. + m68k)
  52224. + library_names_spec='$libname.ixlibrary $libname.a'
  52225. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  52226. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  52227. + ;;
  52228. + esac
  52229. ;;
  52230. beos*)
  52231. @@ -1183,7 +2186,7 @@
  52232. shlibpath_var=LIBRARY_PATH
  52233. ;;
  52234. -bsdi4*)
  52235. +bsdi[[45]]*)
  52236. version_type=linux
  52237. need_version=no
  52238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52239. @@ -1197,24 +2200,28 @@
  52240. # libtool to hard-code these into programs
  52241. ;;
  52242. -cygwin* | mingw* | pw32*)
  52243. +cygwin* | mingw* | pw32* | cegcc*)
  52244. version_type=windows
  52245. shrext_cmds=".dll"
  52246. need_version=no
  52247. need_lib_prefix=no
  52248. case $GCC,$host_os in
  52249. - yes,cygwin* | yes,mingw* | yes,pw32*)
  52250. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  52251. library_names_spec='$libname.dll.a'
  52252. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  52253. postinstall_cmds='base_file=`basename \${file}`~
  52254. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  52255. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  52256. dldir=$destdir/`dirname \$dlpath`~
  52257. test -d \$dldir || mkdir -p \$dldir~
  52258. - $install_prog $dir/$dlname \$dldir/$dlname'
  52259. + $install_prog $dir/$dlname \$dldir/$dlname~
  52260. + chmod a+x \$dldir/$dlname~
  52261. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  52262. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  52263. + fi'
  52264. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  52265. dlpath=$dir/\$dldll~
  52266. - $rm \$dlpath'
  52267. + $RM \$dlpath'
  52268. shlibpath_overrides_runpath=yes
  52269. case $host_os in
  52270. @@ -1223,25 +2230,25 @@
  52271. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  52272. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  52273. ;;
  52274. - mingw*)
  52275. + mingw* | cegcc*)
  52276. # MinGW DLLs use traditional 'lib' prefix
  52277. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  52278. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  52279. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  52280. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  52281. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  52282. # It is most probably a Windows format PATH printed by
  52283. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  52284. # path with ; separators, and with drive letters. We can handle the
  52285. # drive letters (cygwin fileutils understands them), so leave them,
  52286. # especially as we might pass files found there to a mingw objdump,
  52287. # which wouldn't understand a cygwinified path. Ahh.
  52288. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  52289. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  52290. else
  52291. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52292. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  52293. fi
  52294. ;;
  52295. pw32*)
  52296. # pw32 DLLs use 'pw' prefix rather than 'lib'
  52297. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  52298. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  52299. ;;
  52300. esac
  52301. ;;
  52302. @@ -1260,17 +2267,13 @@
  52303. version_type=darwin
  52304. need_lib_prefix=no
  52305. need_version=no
  52306. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  52307. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  52308. soname_spec='${libname}${release}${major}$shared_ext'
  52309. shlibpath_overrides_runpath=yes
  52310. shlibpath_var=DYLD_LIBRARY_PATH
  52311. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  52312. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  52313. - if test "$GCC" = yes; then
  52314. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  52315. - else
  52316. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  52317. - fi
  52318. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  52319. +m4_if([$1], [],[
  52320. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  52321. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  52322. ;;
  52323. @@ -1287,20 +2290,17 @@
  52324. dynamic_linker=no
  52325. ;;
  52326. -kfreebsd*-gnu)
  52327. - version_type=linux
  52328. - need_lib_prefix=no
  52329. - need_version=no
  52330. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  52331. - soname_spec='${libname}${release}${shared_ext}$major'
  52332. - shlibpath_var=LD_LIBRARY_PATH
  52333. - shlibpath_overrides_runpath=no
  52334. - hardcode_into_libs=yes
  52335. - dynamic_linker='GNU ld.so'
  52336. - ;;
  52337. -
  52338. -freebsd*)
  52339. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  52340. +freebsd* | dragonfly*)
  52341. + # DragonFly does not have aout. When/if they implement a new
  52342. + # versioning mechanism, adjust this.
  52343. + if test -x /usr/bin/objformat; then
  52344. + objformat=`/usr/bin/objformat`
  52345. + else
  52346. + case $host_os in
  52347. + freebsd[[123]]*) objformat=aout ;;
  52348. + *) objformat=elf ;;
  52349. + esac
  52350. + fi
  52351. version_type=freebsd-$objformat
  52352. case $version_type in
  52353. freebsd-elf*)
  52354. @@ -1318,14 +2318,19 @@
  52355. freebsd2*)
  52356. shlibpath_overrides_runpath=yes
  52357. ;;
  52358. - freebsd3.[01]* | freebsdelf3.[01]*)
  52359. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  52360. shlibpath_overrides_runpath=yes
  52361. hardcode_into_libs=yes
  52362. ;;
  52363. - *) # from 3.2 on
  52364. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  52365. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  52366. shlibpath_overrides_runpath=no
  52367. hardcode_into_libs=yes
  52368. ;;
  52369. + *) # from 4.6 on, and DragonFly
  52370. + shlibpath_overrides_runpath=yes
  52371. + hardcode_into_libs=yes
  52372. + ;;
  52373. esac
  52374. ;;
  52375. @@ -1345,7 +2350,7 @@
  52376. version_type=sunos
  52377. need_lib_prefix=no
  52378. need_version=no
  52379. - case "$host_cpu" in
  52380. + case $host_cpu in
  52381. ia64*)
  52382. shrext_cmds='.so'
  52383. hardcode_into_libs=yes
  52384. @@ -1361,18 +2366,18 @@
  52385. fi
  52386. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52387. ;;
  52388. - hppa*64*)
  52389. - shrext_cmds='.sl'
  52390. - hardcode_into_libs=yes
  52391. - dynamic_linker="$host_os dld.sl"
  52392. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  52393. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  52394. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52395. - soname_spec='${libname}${release}${shared_ext}$major'
  52396. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  52397. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52398. - ;;
  52399. - *)
  52400. + hppa*64*)
  52401. + shrext_cmds='.sl'
  52402. + hardcode_into_libs=yes
  52403. + dynamic_linker="$host_os dld.sl"
  52404. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  52405. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  52406. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52407. + soname_spec='${libname}${release}${shared_ext}$major'
  52408. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  52409. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  52410. + ;;
  52411. + *)
  52412. shrext_cmds='.sl'
  52413. dynamic_linker="$host_os dld.sl"
  52414. shlibpath_var=SHLIB_PATH
  52415. @@ -1385,6 +2390,18 @@
  52416. postinstall_cmds='chmod 555 $lib'
  52417. ;;
  52418. +interix[[3-9]]*)
  52419. + version_type=linux
  52420. + need_lib_prefix=no
  52421. + need_version=no
  52422. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  52423. + soname_spec='${libname}${release}${shared_ext}$major'
  52424. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  52425. + shlibpath_var=LD_LIBRARY_PATH
  52426. + shlibpath_overrides_runpath=no
  52427. + hardcode_into_libs=yes
  52428. + ;;
  52429. +
  52430. irix5* | irix6* | nonstopux*)
  52431. case $host_os in
  52432. nonstopux*) version_type=nonstopux ;;
  52433. @@ -1428,7 +2445,7 @@
  52434. ;;
  52435. # This must be Linux ELF.
  52436. -linux*)
  52437. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  52438. version_type=linux
  52439. need_lib_prefix=no
  52440. need_version=no
  52441. @@ -1437,6 +2454,17 @@
  52442. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  52443. shlibpath_var=LD_LIBRARY_PATH
  52444. shlibpath_overrides_runpath=no
  52445. + # Some binutils ld are patched to set DT_RUNPATH
  52446. + save_LDFLAGS=$LDFLAGS
  52447. + save_libdir=$libdir
  52448. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  52449. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  52450. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  52451. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  52452. + [shlibpath_overrides_runpath=yes])])
  52453. + LDFLAGS=$save_LDFLAGS
  52454. + libdir=$save_libdir
  52455. +
  52456. # This implies no fast_install, which is unacceptable.
  52457. # Some rework will be needed to allow for fast_install
  52458. # before this can be enabled.
  52459. @@ -1444,7 +2472,7 @@
  52460. # Append ld.so.conf contents to the search path
  52461. if test -f /etc/ld.so.conf; then
  52462. - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  52463. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  52464. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  52465. fi
  52466. @@ -1457,7 +2485,7 @@
  52467. dynamic_linker='GNU/Linux ld.so'
  52468. ;;
  52469. -knetbsd*-gnu)
  52470. +netbsdelf*-gnu)
  52471. version_type=linux
  52472. need_lib_prefix=no
  52473. need_version=no
  52474. @@ -1466,14 +2494,14 @@
  52475. shlibpath_var=LD_LIBRARY_PATH
  52476. shlibpath_overrides_runpath=no
  52477. hardcode_into_libs=yes
  52478. - dynamic_linker='GNU ld.so'
  52479. + dynamic_linker='NetBSD ld.elf_so'
  52480. ;;
  52481. netbsd*)
  52482. version_type=sunos
  52483. need_lib_prefix=no
  52484. need_version=no
  52485. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  52486. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  52487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  52488. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  52489. dynamic_linker='NetBSD (a.out) ld.so'
  52490. @@ -1494,24 +2522,31 @@
  52491. shlibpath_overrides_runpath=yes
  52492. ;;
  52493. -nto-qnx*)
  52494. - version_type=linux
  52495. +*nto* | *qnx*)
  52496. + version_type=qnx
  52497. need_lib_prefix=no
  52498. need_version=no
  52499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52500. soname_spec='${libname}${release}${shared_ext}$major'
  52501. shlibpath_var=LD_LIBRARY_PATH
  52502. - shlibpath_overrides_runpath=yes
  52503. + shlibpath_overrides_runpath=no
  52504. + hardcode_into_libs=yes
  52505. + dynamic_linker='ldqnx.so'
  52506. ;;
  52507. openbsd*)
  52508. version_type=sunos
  52509. + sys_lib_dlsearch_path_spec="/usr/lib"
  52510. need_lib_prefix=no
  52511. - need_version=yes
  52512. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  52513. + case $host_os in
  52514. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  52515. + *) need_version=no ;;
  52516. + esac
  52517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  52518. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  52519. shlibpath_var=LD_LIBRARY_PATH
  52520. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  52521. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  52522. case $host_os in
  52523. openbsd2.[[89]] | openbsd2.[[89]].*)
  52524. shlibpath_overrides_runpath=no
  52525. @@ -1545,11 +2580,8 @@
  52526. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  52527. ;;
  52528. -sco3.2v5*)
  52529. - version_type=osf
  52530. - soname_spec='${libname}${release}${shared_ext}$major'
  52531. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52532. - shlibpath_var=LD_LIBRARY_PATH
  52533. +rdos*)
  52534. + dynamic_linker=no
  52535. ;;
  52536. solaris*)
  52537. @@ -1577,7 +2609,7 @@
  52538. need_version=yes
  52539. ;;
  52540. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  52541. +sysv4 | sysv4.3*)
  52542. version_type=linux
  52543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52544. soname_spec='${libname}${release}${shared_ext}$major'
  52545. @@ -1586,7 +2618,6 @@
  52546. sni)
  52547. shlibpath_overrides_runpath=no
  52548. need_lib_prefix=no
  52549. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  52550. runpath_var=LD_RUN_PATH
  52551. ;;
  52552. siemens)
  52553. @@ -1610,284 +2641,105 @@
  52554. fi
  52555. ;;
  52556. -uts4*)
  52557. - version_type=linux
  52558. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52559. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  52560. + version_type=freebsd-elf
  52561. + need_lib_prefix=no
  52562. + need_version=no
  52563. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  52564. soname_spec='${libname}${release}${shared_ext}$major'
  52565. shlibpath_var=LD_LIBRARY_PATH
  52566. + shlibpath_overrides_runpath=yes
  52567. + hardcode_into_libs=yes
  52568. + if test "$with_gnu_ld" = yes; then
  52569. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  52570. + else
  52571. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  52572. + case $host_os in
  52573. + sco3.2v5*)
  52574. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  52575. + ;;
  52576. + esac
  52577. + fi
  52578. + sys_lib_dlsearch_path_spec='/usr/lib'
  52579. ;;
  52580. -*)
  52581. - dynamic_linker=no
  52582. - ;;
  52583. -esac
  52584. -AC_MSG_RESULT([$dynamic_linker])
  52585. -test "$dynamic_linker" = no && can_build_shared=no
  52586. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  52587. -
  52588. -
  52589. -# _LT_AC_TAGCONFIG
  52590. -# ----------------
  52591. -AC_DEFUN([_LT_AC_TAGCONFIG],
  52592. -[AC_ARG_WITH([tags],
  52593. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  52594. - [include additional configurations @<:@automatic@:>@])],
  52595. - [tagnames="$withval"])
  52596. -
  52597. -if test -f "$ltmain" && test -n "$tagnames"; then
  52598. - if test ! -f "${ofile}"; then
  52599. - AC_MSG_WARN([output file `$ofile' does not exist])
  52600. - fi
  52601. -
  52602. - if test -z "$LTCC"; then
  52603. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  52604. - if test -z "$LTCC"; then
  52605. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  52606. - else
  52607. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  52608. - fi
  52609. - fi
  52610. -
  52611. - # Extract list of available tagged configurations in $ofile.
  52612. - # Note that this assumes the entire list is on one line.
  52613. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  52614. -
  52615. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  52616. - for tagname in $tagnames; do
  52617. - IFS="$lt_save_ifs"
  52618. - # Check whether tagname contains only valid characters
  52619. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  52620. - "") ;;
  52621. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  52622. - ;;
  52623. - esac
  52624. -
  52625. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  52626. - then
  52627. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  52628. - fi
  52629. -
  52630. - # Update the list of available tags.
  52631. - if test -n "$tagname"; then
  52632. - echo appending configuration tag \"$tagname\" to $ofile
  52633. -
  52634. - case $tagname in
  52635. - CXX)
  52636. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  52637. - AC_LIBTOOL_LANG_CXX_CONFIG
  52638. - else
  52639. - tagname=""
  52640. - fi
  52641. - ;;
  52642. -
  52643. - F77)
  52644. - if test -n "$F77" && test "X$F77" != "Xno"; then
  52645. - AC_LIBTOOL_LANG_F77_CONFIG
  52646. - else
  52647. - tagname=""
  52648. - fi
  52649. - ;;
  52650. -
  52651. - GCJ)
  52652. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  52653. - AC_LIBTOOL_LANG_GCJ_CONFIG
  52654. - else
  52655. - tagname=""
  52656. - fi
  52657. - ;;
  52658. -
  52659. - RC)
  52660. - AC_LIBTOOL_LANG_RC_CONFIG
  52661. - ;;
  52662. +tpf*)
  52663. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  52664. + version_type=linux
  52665. + need_lib_prefix=no
  52666. + need_version=no
  52667. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52668. + shlibpath_var=LD_LIBRARY_PATH
  52669. + shlibpath_overrides_runpath=no
  52670. + hardcode_into_libs=yes
  52671. + ;;
  52672. - *)
  52673. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  52674. - ;;
  52675. - esac
  52676. +uts4*)
  52677. + version_type=linux
  52678. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  52679. + soname_spec='${libname}${release}${shared_ext}$major'
  52680. + shlibpath_var=LD_LIBRARY_PATH
  52681. + ;;
  52682. - # Append the new tag name to the list of available tags.
  52683. - if test -n "$tagname" ; then
  52684. - available_tags="$available_tags $tagname"
  52685. - fi
  52686. - fi
  52687. - done
  52688. - IFS="$lt_save_ifs"
  52689. +*)
  52690. + dynamic_linker=no
  52691. + ;;
  52692. +esac
  52693. +AC_MSG_RESULT([$dynamic_linker])
  52694. +test "$dynamic_linker" = no && can_build_shared=no
  52695. - # Now substitute the updated list of available tags.
  52696. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  52697. - mv "${ofile}T" "$ofile"
  52698. - chmod +x "$ofile"
  52699. - else
  52700. - rm -f "${ofile}T"
  52701. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  52702. - fi
  52703. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  52704. +if test "$GCC" = yes; then
  52705. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  52706. fi
  52707. -])# _LT_AC_TAGCONFIG
  52708. -
  52709. -
  52710. -# AC_LIBTOOL_DLOPEN
  52711. -# -----------------
  52712. -# enable checks for dlopen support
  52713. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  52714. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  52715. -])# AC_LIBTOOL_DLOPEN
  52716. -
  52717. -
  52718. -# AC_LIBTOOL_WIN32_DLL
  52719. -# --------------------
  52720. -# declare package support for building win32 dll's
  52721. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  52722. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  52723. -])# AC_LIBTOOL_WIN32_DLL
  52724. -
  52725. -
  52726. -# AC_ENABLE_SHARED([DEFAULT])
  52727. -# ---------------------------
  52728. -# implement the --enable-shared flag
  52729. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  52730. -AC_DEFUN([AC_ENABLE_SHARED],
  52731. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  52732. -AC_ARG_ENABLE([shared],
  52733. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  52734. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  52735. - [p=${PACKAGE-default}
  52736. - case $enableval in
  52737. - yes) enable_shared=yes ;;
  52738. - no) enable_shared=no ;;
  52739. - *)
  52740. - enable_shared=no
  52741. - # Look at the argument we got. We use all the common list separators.
  52742. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  52743. - for pkg in $enableval; do
  52744. - IFS="$lt_save_ifs"
  52745. - if test "X$pkg" = "X$p"; then
  52746. - enable_shared=yes
  52747. - fi
  52748. - done
  52749. - IFS="$lt_save_ifs"
  52750. - ;;
  52751. - esac],
  52752. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  52753. -])# AC_ENABLE_SHARED
  52754. -
  52755. -
  52756. -# AC_DISABLE_SHARED
  52757. -# -----------------
  52758. -#- set the default shared flag to --disable-shared
  52759. -AC_DEFUN([AC_DISABLE_SHARED],
  52760. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  52761. -AC_ENABLE_SHARED(no)
  52762. -])# AC_DISABLE_SHARED
  52763. -
  52764. -
  52765. -# AC_ENABLE_STATIC([DEFAULT])
  52766. -# ---------------------------
  52767. -# implement the --enable-static flag
  52768. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  52769. -AC_DEFUN([AC_ENABLE_STATIC],
  52770. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  52771. -AC_ARG_ENABLE([static],
  52772. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  52773. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  52774. - [p=${PACKAGE-default}
  52775. - case $enableval in
  52776. - yes) enable_static=yes ;;
  52777. - no) enable_static=no ;;
  52778. - *)
  52779. - enable_static=no
  52780. - # Look at the argument we got. We use all the common list separators.
  52781. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  52782. - for pkg in $enableval; do
  52783. - IFS="$lt_save_ifs"
  52784. - if test "X$pkg" = "X$p"; then
  52785. - enable_static=yes
  52786. - fi
  52787. - done
  52788. - IFS="$lt_save_ifs"
  52789. - ;;
  52790. - esac],
  52791. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  52792. -])# AC_ENABLE_STATIC
  52793. -
  52794. -
  52795. -# AC_DISABLE_STATIC
  52796. -# -----------------
  52797. -# set the default static flag to --disable-static
  52798. -AC_DEFUN([AC_DISABLE_STATIC],
  52799. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  52800. -AC_ENABLE_STATIC(no)
  52801. -])# AC_DISABLE_STATIC
  52802. -
  52803. -
  52804. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  52805. -# ---------------------------------
  52806. -# implement the --enable-fast-install flag
  52807. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  52808. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  52809. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  52810. -AC_ARG_ENABLE([fast-install],
  52811. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  52812. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  52813. - [p=${PACKAGE-default}
  52814. - case $enableval in
  52815. - yes) enable_fast_install=yes ;;
  52816. - no) enable_fast_install=no ;;
  52817. - *)
  52818. - enable_fast_install=no
  52819. - # Look at the argument we got. We use all the common list separators.
  52820. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  52821. - for pkg in $enableval; do
  52822. - IFS="$lt_save_ifs"
  52823. - if test "X$pkg" = "X$p"; then
  52824. - enable_fast_install=yes
  52825. - fi
  52826. - done
  52827. - IFS="$lt_save_ifs"
  52828. - ;;
  52829. - esac],
  52830. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  52831. -])# AC_ENABLE_FAST_INSTALL
  52832. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  52833. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  52834. +fi
  52835. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  52836. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  52837. +fi
  52838. -# AC_DISABLE_FAST_INSTALL
  52839. -# -----------------------
  52840. -# set the default to --disable-fast-install
  52841. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  52842. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  52843. -AC_ENABLE_FAST_INSTALL(no)
  52844. -])# AC_DISABLE_FAST_INSTALL
  52845. +_LT_DECL([], [variables_saved_for_relink], [1],
  52846. + [Variables whose values should be saved in libtool wrapper scripts and
  52847. + restored at link time])
  52848. +_LT_DECL([], [need_lib_prefix], [0],
  52849. + [Do we need the "lib" prefix for modules?])
  52850. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  52851. +_LT_DECL([], [version_type], [0], [Library versioning type])
  52852. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  52853. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  52854. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  52855. + [Is shlibpath searched before the hard-coded library search path?])
  52856. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  52857. +_LT_DECL([], [library_names_spec], [1],
  52858. + [[List of archive names. First name is the real one, the rest are links.
  52859. + The last name is the one that the linker finds with -lNAME]])
  52860. +_LT_DECL([], [soname_spec], [1],
  52861. + [[The coded name of the library, if different from the real name]])
  52862. +_LT_DECL([], [postinstall_cmds], [2],
  52863. + [Command to use after installation of a shared archive])
  52864. +_LT_DECL([], [postuninstall_cmds], [2],
  52865. + [Command to use after uninstallation of a shared archive])
  52866. +_LT_DECL([], [finish_cmds], [2],
  52867. + [Commands used to finish a libtool library installation in a directory])
  52868. +_LT_DECL([], [finish_eval], [1],
  52869. + [[As "finish_cmds", except a single script fragment to be evaled but
  52870. + not shown]])
  52871. +_LT_DECL([], [hardcode_into_libs], [0],
  52872. + [Whether we should hardcode library paths into libraries])
  52873. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  52874. + [Compile-time system search path for libraries])
  52875. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  52876. + [Run-time system search path for libraries])
  52877. +])# _LT_SYS_DYNAMIC_LINKER
  52878. -# AC_LIBTOOL_PICMODE([MODE])
  52879. +# _LT_PATH_TOOL_PREFIX(TOOL)
  52880. # --------------------------
  52881. -# implement the --with-pic flag
  52882. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  52883. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  52884. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  52885. -pic_mode=ifelse($#,1,$1,default)
  52886. -])# AC_LIBTOOL_PICMODE
  52887. -
  52888. -
  52889. -# AC_PROG_EGREP
  52890. -# -------------
  52891. -# This is predefined starting with Autoconf 2.54, so this conditional
  52892. -# definition can be removed once we require Autoconf 2.54 or later.
  52893. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  52894. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  52895. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  52896. - then ac_cv_prog_egrep='grep -E'
  52897. - else ac_cv_prog_egrep='egrep'
  52898. - fi])
  52899. - EGREP=$ac_cv_prog_egrep
  52900. - AC_SUBST([EGREP])
  52901. -])])
  52902. -
  52903. -
  52904. -# AC_PATH_TOOL_PREFIX
  52905. -# -------------------
  52906. -# find a file program which can recognise shared library
  52907. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  52908. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  52909. +# find a file program which can recognize shared library
  52910. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  52911. +[m4_require([_LT_DECL_EGREP])dnl
  52912. AC_MSG_CHECKING([for $1])
  52913. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  52914. [case $MAGIC_CMD in
  52915. @@ -1900,7 +2752,7 @@
  52916. dnl $ac_dummy forces splitting on constant user-supplied paths.
  52917. dnl POSIX.2 word splitting is done only on the output of word expansions,
  52918. dnl not every word. This closes a longstanding sh security hole.
  52919. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  52920. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  52921. for ac_dir in $ac_dummy; do
  52922. IFS="$lt_save_ifs"
  52923. test -z "$ac_dir" && ac_dir=.
  52924. @@ -1909,13 +2761,13 @@
  52925. if test -n "$file_magic_test_file"; then
  52926. case $deplibs_check_method in
  52927. "file_magic "*)
  52928. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  52929. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  52930. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  52931. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  52932. $EGREP "$file_magic_regex" > /dev/null; then
  52933. :
  52934. else
  52935. - cat <<EOF 1>&2
  52936. + cat <<_LT_EOF 1>&2
  52937. *** Warning: the command libtool uses to detect shared libraries,
  52938. *** $file_magic_cmd, produces output that libtool cannot recognize.
  52939. @@ -1926,7 +2778,7 @@
  52940. *** may want to report the problem to your system manager and/or to
  52941. *** bug-libtool@gnu.org
  52942. -EOF
  52943. +_LT_EOF
  52944. fi ;;
  52945. esac
  52946. fi
  52947. @@ -1943,37 +2795,47 @@
  52948. else
  52949. AC_MSG_RESULT(no)
  52950. fi
  52951. -])# AC_PATH_TOOL_PREFIX
  52952. +_LT_DECL([], [MAGIC_CMD], [0],
  52953. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  52954. +])# _LT_PATH_TOOL_PREFIX
  52955. +# Old name:
  52956. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  52957. +dnl aclocal-1.4 backwards compatibility:
  52958. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  52959. -# AC_PATH_MAGIC
  52960. -# -------------
  52961. -# find a file program which can recognise a shared library
  52962. -AC_DEFUN([AC_PATH_MAGIC],
  52963. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  52964. +
  52965. +# _LT_PATH_MAGIC
  52966. +# --------------
  52967. +# find a file program which can recognize a shared library
  52968. +m4_defun([_LT_PATH_MAGIC],
  52969. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  52970. if test -z "$lt_cv_path_MAGIC_CMD"; then
  52971. if test -n "$ac_tool_prefix"; then
  52972. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  52973. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  52974. else
  52975. MAGIC_CMD=:
  52976. fi
  52977. fi
  52978. -])# AC_PATH_MAGIC
  52979. +])# _LT_PATH_MAGIC
  52980. -# AC_PROG_LD
  52981. +# LT_PATH_LD
  52982. # ----------
  52983. # find the pathname to the GNU or non-GNU linker
  52984. -AC_DEFUN([AC_PROG_LD],
  52985. -[AC_ARG_WITH([gnu-ld],
  52986. - [AC_HELP_STRING([--with-gnu-ld],
  52987. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  52988. - [test "$withval" = no || with_gnu_ld=yes],
  52989. - [with_gnu_ld=no])
  52990. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  52991. -AC_REQUIRE([AC_PROG_CC])dnl
  52992. +AC_DEFUN([LT_PATH_LD],
  52993. +[AC_REQUIRE([AC_PROG_CC])dnl
  52994. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  52995. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  52996. +m4_require([_LT_DECL_SED])dnl
  52997. +m4_require([_LT_DECL_EGREP])dnl
  52998. +
  52999. +AC_ARG_WITH([gnu-ld],
  53000. + [AS_HELP_STRING([--with-gnu-ld],
  53001. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  53002. + [test "$withval" = no || with_gnu_ld=yes],
  53003. + [with_gnu_ld=no])dnl
  53004. +
  53005. ac_prog=ld
  53006. if test "$GCC" = yes; then
  53007. # Check if gcc -print-prog-name=ld gives a path.
  53008. @@ -1990,9 +2852,9 @@
  53009. [[\\/]]* | ?:[[\\/]]*)
  53010. re_direlt='/[[^/]][[^/]]*/\.\./'
  53011. # Canonicalize the pathname of ld
  53012. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  53013. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  53014. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  53015. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  53016. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  53017. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  53018. done
  53019. test -z "$LD" && LD="$ac_prog"
  53020. ;;
  53021. @@ -2019,7 +2881,7 @@
  53022. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  53023. lt_cv_path_LD="$ac_dir/$ac_prog"
  53024. # Check to see if the program is GNU ld. I'd rather use --version,
  53025. - # but apparently some GNU ld's only accept -v.
  53026. + # but apparently some variants of GNU ld only accept -v.
  53027. # Break only if it was the GNU/non-GNU ld that we prefer.
  53028. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  53029. *GNU* | *'with BFD'*)
  53030. @@ -2042,16 +2904,25 @@
  53031. AC_MSG_RESULT(no)
  53032. fi
  53033. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  53034. -AC_PROG_LD_GNU
  53035. -])# AC_PROG_LD
  53036. +_LT_PATH_LD_GNU
  53037. +AC_SUBST([LD])
  53038. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  53039. +])# LT_PATH_LD
  53040. -# AC_PROG_LD_GNU
  53041. -# --------------
  53042. -AC_DEFUN([AC_PROG_LD_GNU],
  53043. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  53044. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  53045. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  53046. +# Old names:
  53047. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  53048. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  53049. +dnl aclocal-1.4 backwards compatibility:
  53050. +dnl AC_DEFUN([AM_PROG_LD], [])
  53051. +dnl AC_DEFUN([AC_PROG_LD], [])
  53052. +
  53053. +
  53054. +# _LT_PATH_LD_GNU
  53055. +#- --------------
  53056. +m4_defun([_LT_PATH_LD_GNU],
  53057. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  53058. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  53059. case `$LD -v 2>&1 </dev/null` in
  53060. *GNU* | *'with BFD'*)
  53061. lt_cv_prog_gnu_ld=yes
  53062. @@ -2061,14 +2932,14 @@
  53063. ;;
  53064. esac])
  53065. with_gnu_ld=$lt_cv_prog_gnu_ld
  53066. -])# AC_PROG_LD_GNU
  53067. +])# _LT_PATH_LD_GNU
  53068. -# AC_PROG_LD_RELOAD_FLAG
  53069. -# ----------------------
  53070. +# _LT_CMD_RELOAD
  53071. +# --------------
  53072. # find reload flag for linker
  53073. # -- PORTME Some linkers may need a different reload flag.
  53074. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  53075. +m4_defun([_LT_CMD_RELOAD],
  53076. [AC_CACHE_CHECK([for $LD option to reload object files],
  53077. lt_cv_ld_reload_flag,
  53078. [lt_cv_ld_reload_flag='-r'])
  53079. @@ -2078,15 +2949,28 @@
  53080. *) reload_flag=" $reload_flag" ;;
  53081. esac
  53082. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  53083. -])# AC_PROG_LD_RELOAD_FLAG
  53084. +case $host_os in
  53085. + darwin*)
  53086. + if test "$GCC" = yes; then
  53087. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  53088. + else
  53089. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  53090. + fi
  53091. + ;;
  53092. +esac
  53093. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  53094. +_LT_DECL([], [reload_cmds], [2])dnl
  53095. +])# _LT_CMD_RELOAD
  53096. -# AC_DEPLIBS_CHECK_METHOD
  53097. -# -----------------------
  53098. +# _LT_CHECK_MAGIC_METHOD
  53099. +# ----------------------
  53100. # how to check for library dependencies
  53101. # -- PORTME fill in with the dynamic library characteristics
  53102. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  53103. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  53104. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  53105. +[m4_require([_LT_DECL_EGREP])
  53106. +m4_require([_LT_DECL_OBJDUMP])
  53107. +AC_CACHE_CHECK([how to recognize dependent libraries],
  53108. lt_cv_deplibs_check_method,
  53109. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  53110. lt_cv_file_magic_test_file=
  53111. @@ -2103,7 +2987,7 @@
  53112. # whether `pass_all' will *always* work, you probably want this one.
  53113. case $host_os in
  53114. -aix4* | aix5*)
  53115. +aix[[4-9]]*)
  53116. lt_cv_deplibs_check_method=pass_all
  53117. ;;
  53118. @@ -2111,7 +2995,7 @@
  53119. lt_cv_deplibs_check_method=pass_all
  53120. ;;
  53121. -bsdi4*)
  53122. +bsdi[[45]]*)
  53123. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  53124. lt_cv_file_magic_cmd='/usr/bin/file -L'
  53125. lt_cv_file_magic_test_file=/shlib/libc.so
  53126. @@ -2125,8 +3009,20 @@
  53127. mingw* | pw32*)
  53128. # Base MSYS/MinGW do not provide the 'file' command needed by
  53129. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  53130. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  53131. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  53132. + # unless we find 'file', for example because we are cross-compiling.
  53133. + if ( file / ) >/dev/null 2>&1; then
  53134. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  53135. + lt_cv_file_magic_cmd='func_win32_libid'
  53136. + else
  53137. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  53138. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  53139. + fi
  53140. + ;;
  53141. +
  53142. +cegcc)
  53143. + # use the weaker test based on 'objdump'. See mingw*.
  53144. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  53145. lt_cv_file_magic_cmd='$OBJDUMP -f'
  53146. ;;
  53147. @@ -2134,13 +3030,13 @@
  53148. lt_cv_deplibs_check_method=pass_all
  53149. ;;
  53150. -freebsd* | kfreebsd*-gnu)
  53151. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  53152. +freebsd* | dragonfly*)
  53153. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  53154. case $host_cpu in
  53155. i*86 )
  53156. # Not sure whether the presence of OpenBSD here was a mistake.
  53157. # Let's accept both of them until this is cleared up.
  53158. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  53159. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  53160. lt_cv_file_magic_cmd=/usr/bin/file
  53161. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  53162. ;;
  53163. @@ -2156,7 +3052,7 @@
  53164. hpux10.20* | hpux11*)
  53165. lt_cv_file_magic_cmd=/usr/bin/file
  53166. - case "$host_cpu" in
  53167. + case $host_cpu in
  53168. ia64*)
  53169. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  53170. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  53171. @@ -2172,6 +3068,11 @@
  53172. esac
  53173. ;;
  53174. +interix[[3-9]]*)
  53175. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  53176. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  53177. + ;;
  53178. +
  53179. irix5* | irix6* | nonstopux*)
  53180. case $LD in
  53181. *-32|*"-32 ") libmagic=32-bit;;
  53182. @@ -2183,12 +3084,12 @@
  53183. ;;
  53184. # This must be Linux ELF.
  53185. -linux*)
  53186. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  53187. lt_cv_deplibs_check_method=pass_all
  53188. ;;
  53189. -netbsd* | knetbsd*-gnu)
  53190. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  53191. +netbsd* | netbsdelf*-gnu)
  53192. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  53193. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  53194. else
  53195. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  53196. @@ -2201,17 +3102,15 @@
  53197. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  53198. ;;
  53199. -nto-qnx*)
  53200. - lt_cv_deplibs_check_method=unknown
  53201. +*nto* | *qnx*)
  53202. + lt_cv_deplibs_check_method=pass_all
  53203. ;;
  53204. openbsd*)
  53205. - lt_cv_file_magic_cmd=/usr/bin/file
  53206. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  53207. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  53208. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  53209. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  53210. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  53211. else
  53212. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  53213. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  53214. fi
  53215. ;;
  53216. @@ -2219,7 +3118,7 @@
  53217. lt_cv_deplibs_check_method=pass_all
  53218. ;;
  53219. -sco3.2v5*)
  53220. +rdos*)
  53221. lt_cv_deplibs_check_method=pass_all
  53222. ;;
  53223. @@ -2227,7 +3126,11 @@
  53224. lt_cv_deplibs_check_method=pass_all
  53225. ;;
  53226. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  53227. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  53228. + lt_cv_deplibs_check_method=pass_all
  53229. + ;;
  53230. +
  53231. +sysv4 | sysv4.3*)
  53232. case $host_vendor in
  53233. motorola)
  53234. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  53235. @@ -2248,10 +3151,13 @@
  53236. siemens)
  53237. lt_cv_deplibs_check_method=pass_all
  53238. ;;
  53239. + pc)
  53240. + lt_cv_deplibs_check_method=pass_all
  53241. + ;;
  53242. esac
  53243. ;;
  53244. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  53245. +tpf*)
  53246. lt_cv_deplibs_check_method=pass_all
  53247. ;;
  53248. esac
  53249. @@ -2259,58 +3165,106 @@
  53250. file_magic_cmd=$lt_cv_file_magic_cmd
  53251. deplibs_check_method=$lt_cv_deplibs_check_method
  53252. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  53253. -])# AC_DEPLIBS_CHECK_METHOD
  53254. +
  53255. +_LT_DECL([], [deplibs_check_method], [1],
  53256. + [Method to check whether dependent libraries are shared objects])
  53257. +_LT_DECL([], [file_magic_cmd], [1],
  53258. + [Command to use when deplibs_check_method == "file_magic"])
  53259. +])# _LT_CHECK_MAGIC_METHOD
  53260. -# AC_PROG_NM
  53261. +# LT_PATH_NM
  53262. # ----------
  53263. -# find the pathname to a BSD-compatible name lister
  53264. -AC_DEFUN([AC_PROG_NM],
  53265. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  53266. +# find the pathname to a BSD- or MS-compatible name lister
  53267. +AC_DEFUN([LT_PATH_NM],
  53268. +[AC_REQUIRE([AC_PROG_CC])dnl
  53269. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  53270. [if test -n "$NM"; then
  53271. # Let the user override the test.
  53272. lt_cv_path_NM="$NM"
  53273. else
  53274. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  53275. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  53276. - IFS="$lt_save_ifs"
  53277. - test -z "$ac_dir" && ac_dir=.
  53278. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  53279. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  53280. - # Check to see if the nm accepts a BSD-compat flag.
  53281. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  53282. - # nm: unknown option "B" ignored
  53283. - # Tru64's nm complains that /dev/null is an invalid object file
  53284. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  53285. - */dev/null* | *'Invalid file or object type'*)
  53286. - lt_cv_path_NM="$tmp_nm -B"
  53287. - break
  53288. - ;;
  53289. - *)
  53290. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  53291. - */dev/null*)
  53292. - lt_cv_path_NM="$tmp_nm -p"
  53293. + lt_nm_to_check="${ac_tool_prefix}nm"
  53294. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  53295. + lt_nm_to_check="$lt_nm_to_check nm"
  53296. + fi
  53297. + for lt_tmp_nm in $lt_nm_to_check; do
  53298. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  53299. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  53300. + IFS="$lt_save_ifs"
  53301. + test -z "$ac_dir" && ac_dir=.
  53302. + tmp_nm="$ac_dir/$lt_tmp_nm"
  53303. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  53304. + # Check to see if the nm accepts a BSD-compat flag.
  53305. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  53306. + # nm: unknown option "B" ignored
  53307. + # Tru64's nm complains that /dev/null is an invalid object file
  53308. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  53309. + */dev/null* | *'Invalid file or object type'*)
  53310. + lt_cv_path_NM="$tmp_nm -B"
  53311. break
  53312. ;;
  53313. *)
  53314. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  53315. - continue # so that we can try to find one that supports BSD flags
  53316. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  53317. + */dev/null*)
  53318. + lt_cv_path_NM="$tmp_nm -p"
  53319. + break
  53320. + ;;
  53321. + *)
  53322. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  53323. + continue # so that we can try to find one that supports BSD flags
  53324. + ;;
  53325. + esac
  53326. ;;
  53327. esac
  53328. - esac
  53329. - fi
  53330. + fi
  53331. + done
  53332. + IFS="$lt_save_ifs"
  53333. done
  53334. - IFS="$lt_save_ifs"
  53335. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  53336. + : ${lt_cv_path_NM=no}
  53337. fi])
  53338. -NM="$lt_cv_path_NM"
  53339. -])# AC_PROG_NM
  53340. +if test "$lt_cv_path_NM" != "no"; then
  53341. + NM="$lt_cv_path_NM"
  53342. +else
  53343. + # Didn't find any BSD compatible name lister, look for dumpbin.
  53344. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  53345. + AC_SUBST([DUMPBIN])
  53346. + if test "$DUMPBIN" != ":"; then
  53347. + NM="$DUMPBIN"
  53348. + fi
  53349. +fi
  53350. +test -z "$NM" && NM=nm
  53351. +AC_SUBST([NM])
  53352. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  53353. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  53354. + [lt_cv_nm_interface="BSD nm"
  53355. + echo "int some_variable = 0;" > conftest.$ac_ext
  53356. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  53357. + (eval "$ac_compile" 2>conftest.err)
  53358. + cat conftest.err >&AS_MESSAGE_LOG_FD
  53359. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  53360. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  53361. + cat conftest.err >&AS_MESSAGE_LOG_FD
  53362. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  53363. + cat conftest.out >&AS_MESSAGE_LOG_FD
  53364. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  53365. + lt_cv_nm_interface="MS dumpbin"
  53366. + fi
  53367. + rm -f conftest*])
  53368. +])# LT_PATH_NM
  53369. +
  53370. +# Old names:
  53371. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  53372. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  53373. +dnl aclocal-1.4 backwards compatibility:
  53374. +dnl AC_DEFUN([AM_PROG_NM], [])
  53375. +dnl AC_DEFUN([AC_PROG_NM], [])
  53376. -# AC_CHECK_LIBM
  53377. -# -------------
  53378. +
  53379. +# LT_LIB_M
  53380. +# --------
  53381. # check for math library
  53382. -AC_DEFUN([AC_CHECK_LIBM],
  53383. +AC_DEFUN([LT_LIB_M],
  53384. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  53385. LIBM=
  53386. case $host in
  53387. @@ -2325,3567 +3279,3787 @@
  53388. AC_CHECK_LIB(m, cos, LIBM="-lm")
  53389. ;;
  53390. esac
  53391. -])# AC_CHECK_LIBM
  53392. -
  53393. -
  53394. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  53395. -# -----------------------------------
  53396. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  53397. -# LTDLINCL to the include flags for the libltdl header and adds
  53398. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  53399. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  53400. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  53401. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  53402. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  53403. -# flat and you're not using automake, define top_builddir and
  53404. -# top_srcdir appropriately in the Makefiles.
  53405. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  53406. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  53407. - case $enable_ltdl_convenience in
  53408. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  53409. - "") enable_ltdl_convenience=yes
  53410. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  53411. - esac
  53412. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  53413. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  53414. - # For backwards non-gettext consistent compatibility...
  53415. - INCLTDL="$LTDLINCL"
  53416. -])# AC_LIBLTDL_CONVENIENCE
  53417. +AC_SUBST([LIBM])
  53418. +])# LT_LIB_M
  53419. -
  53420. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  53421. -# -----------------------------------
  53422. -# sets LIBLTDL to the link flags for the libltdl installable library and
  53423. -# LTDLINCL to the include flags for the libltdl header and adds
  53424. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  53425. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  53426. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  53427. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  53428. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  53429. -# quotes!). If your package is not flat and you're not using automake,
  53430. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  53431. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  53432. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  53433. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  53434. - AC_CHECK_LIB(ltdl, lt_dlinit,
  53435. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  53436. - [if test x"$enable_ltdl_install" = xno; then
  53437. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  53438. - else
  53439. - enable_ltdl_install=yes
  53440. - fi
  53441. - ])
  53442. - if test x"$enable_ltdl_install" = x"yes"; then
  53443. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  53444. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  53445. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  53446. - else
  53447. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  53448. - LIBLTDL="-lltdl"
  53449. - LTDLINCL=
  53450. - fi
  53451. - # For backwards non-gettext consistent compatibility...
  53452. - INCLTDL="$LTDLINCL"
  53453. -])# AC_LIBLTDL_INSTALLABLE
  53454. +# Old name:
  53455. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  53456. +dnl aclocal-1.4 backwards compatibility:
  53457. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  53458. -# AC_LIBTOOL_CXX
  53459. -# --------------
  53460. -# enable support for C++ libraries
  53461. -AC_DEFUN([AC_LIBTOOL_CXX],
  53462. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  53463. -])# AC_LIBTOOL_CXX
  53464. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  53465. +# -------------------------------
  53466. +m4_defun([_LT_COMPILER_NO_RTTI],
  53467. +[m4_require([_LT_TAG_COMPILER])dnl
  53468. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  53469. -# _LT_AC_LANG_CXX
  53470. -# ---------------
  53471. -AC_DEFUN([_LT_AC_LANG_CXX],
  53472. -[AC_REQUIRE([AC_PROG_CXX])
  53473. -AC_REQUIRE([AC_PROG_CXXCPP])
  53474. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  53475. -])# _LT_AC_LANG_CXX
  53476. +if test "$GCC" = yes; then
  53477. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  53478. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  53479. + lt_cv_prog_compiler_rtti_exceptions,
  53480. + [-fno-rtti -fno-exceptions], [],
  53481. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  53482. +fi
  53483. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  53484. + [Compiler flag to turn off builtin functions])
  53485. +])# _LT_COMPILER_NO_RTTI
  53486. -# AC_LIBTOOL_F77
  53487. -# --------------
  53488. -# enable support for Fortran 77 libraries
  53489. -AC_DEFUN([AC_LIBTOOL_F77],
  53490. -[AC_REQUIRE([_LT_AC_LANG_F77])
  53491. -])# AC_LIBTOOL_F77
  53492. +# _LT_CMD_GLOBAL_SYMBOLS
  53493. +# ----------------------
  53494. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  53495. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  53496. +AC_REQUIRE([AC_PROG_CC])dnl
  53497. +AC_REQUIRE([LT_PATH_NM])dnl
  53498. +AC_REQUIRE([LT_PATH_LD])dnl
  53499. +m4_require([_LT_DECL_SED])dnl
  53500. +m4_require([_LT_DECL_EGREP])dnl
  53501. +m4_require([_LT_TAG_COMPILER])dnl
  53502. -# _LT_AC_LANG_F77
  53503. -# ---------------
  53504. -AC_DEFUN([_LT_AC_LANG_F77],
  53505. -[AC_REQUIRE([AC_PROG_F77])
  53506. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  53507. -])# _LT_AC_LANG_F77
  53508. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  53509. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  53510. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  53511. +[
  53512. +# These are sane defaults that work on at least a few old systems.
  53513. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  53514. +# Character class describing NM global symbol codes.
  53515. +symcode='[[BCDEGRST]]'
  53516. -# AC_LIBTOOL_GCJ
  53517. -# --------------
  53518. -# enable support for GCJ libraries
  53519. -AC_DEFUN([AC_LIBTOOL_GCJ],
  53520. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  53521. -])# AC_LIBTOOL_GCJ
  53522. +# Regexp to match symbols that can be accessed directly from C.
  53523. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  53524. +# Define system-specific variables.
  53525. +case $host_os in
  53526. +aix*)
  53527. + symcode='[[BCDT]]'
  53528. + ;;
  53529. +cygwin* | mingw* | pw32* | cegcc*)
  53530. + symcode='[[ABCDGISTW]]'
  53531. + ;;
  53532. +hpux*)
  53533. + if test "$host_cpu" = ia64; then
  53534. + symcode='[[ABCDEGRST]]'
  53535. + fi
  53536. + ;;
  53537. +irix* | nonstopux*)
  53538. + symcode='[[BCDEGRST]]'
  53539. + ;;
  53540. +osf*)
  53541. + symcode='[[BCDEGQRST]]'
  53542. + ;;
  53543. +solaris*)
  53544. + symcode='[[BDRT]]'
  53545. + ;;
  53546. +sco3.2v5*)
  53547. + symcode='[[DT]]'
  53548. + ;;
  53549. +sysv4.2uw2*)
  53550. + symcode='[[DT]]'
  53551. + ;;
  53552. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  53553. + symcode='[[ABDT]]'
  53554. + ;;
  53555. +sysv4)
  53556. + symcode='[[DFNSTU]]'
  53557. + ;;
  53558. +esac
  53559. -# _LT_AC_LANG_GCJ
  53560. -# ---------------
  53561. -AC_DEFUN([_LT_AC_LANG_GCJ],
  53562. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  53563. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  53564. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  53565. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  53566. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  53567. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  53568. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  53569. -])# _LT_AC_LANG_GCJ
  53570. +# If we're using GNU nm, then use its standard symbol codes.
  53571. +case `$NM -V 2>&1` in
  53572. +*GNU* | *'with BFD'*)
  53573. + symcode='[[ABCDGIRSTW]]' ;;
  53574. +esac
  53575. +# Transform an extracted symbol line into a proper C declaration.
  53576. +# Some systems (esp. on ia64) link data and code symbols differently,
  53577. +# so use this general approach.
  53578. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  53579. -# AC_LIBTOOL_RC
  53580. -# --------------
  53581. -# enable support for Windows resource files
  53582. -AC_DEFUN([AC_LIBTOOL_RC],
  53583. -[AC_REQUIRE([LT_AC_PROG_RC])
  53584. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  53585. -])# AC_LIBTOOL_RC
  53586. +# Transform an extracted symbol line into symbol name and symbol address
  53587. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  53588. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  53589. +# Handle CRLF in mingw tool chain
  53590. +opt_cr=
  53591. +case $build_os in
  53592. +mingw*)
  53593. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  53594. + ;;
  53595. +esac
  53596. -# AC_LIBTOOL_LANG_C_CONFIG
  53597. -# ------------------------
  53598. -# Ensure that the configuration vars for the C compiler are
  53599. -# suitably defined. Those variables are subsequently used by
  53600. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  53601. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  53602. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  53603. -[lt_save_CC="$CC"
  53604. -AC_LANG_PUSH(C)
  53605. +# Try without a prefix underscore, then with it.
  53606. +for ac_symprfx in "" "_"; do
  53607. -# Source file extension for C test sources.
  53608. -ac_ext=c
  53609. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  53610. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  53611. -# Object file extension for compiled C test sources.
  53612. -objext=o
  53613. -_LT_AC_TAGVAR(objext, $1)=$objext
  53614. + # Write the raw and C identifiers.
  53615. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  53616. + # Fake it for dumpbin and say T for any non-static function
  53617. + # and D for any global variable.
  53618. + # Also find C++ and __fastcall symbols from MSVC++,
  53619. + # which start with @ or ?.
  53620. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  53621. +" {last_section=section; section=\$ 3};"\
  53622. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  53623. +" \$ 0!~/External *\|/{next};"\
  53624. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  53625. +" {if(hide[section]) next};"\
  53626. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  53627. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  53628. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  53629. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  53630. +" ' prfx=^$ac_symprfx]"
  53631. + else
  53632. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  53633. + fi
  53634. -# Code to be used in simple compile tests
  53635. -lt_simple_compile_test_code="int some_variable = 0;\n"
  53636. + # Check to see that the pipe works correctly.
  53637. + pipe_works=no
  53638. -# Code to be used in simple link tests
  53639. -lt_simple_link_test_code='int main(){return(0);}\n'
  53640. -
  53641. -_LT_AC_SYS_COMPILER
  53642. -
  53643. -#
  53644. -# Check for any special shared library compilation flags.
  53645. -#
  53646. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  53647. -if test "$GCC" = no; then
  53648. - case $host_os in
  53649. - sco3.2v5*)
  53650. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  53651. - ;;
  53652. - esac
  53653. -fi
  53654. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  53655. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  53656. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  53657. - else
  53658. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  53659. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  53660. - fi
  53661. -fi
  53662. -
  53663. -
  53664. -#
  53665. -# Check to make sure the static flag actually works.
  53666. -#
  53667. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  53668. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  53669. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  53670. - [],
  53671. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  53672. -
  53673. -
  53674. -## CAVEAT EMPTOR:
  53675. -## There is no encapsulation within the following macros, do not change
  53676. -## the running order or otherwise move them around unless you know exactly
  53677. -## what you are doing...
  53678. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  53679. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  53680. -AC_LIBTOOL_PROG_CC_C_O($1)
  53681. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  53682. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  53683. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  53684. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  53685. -AC_LIBTOOL_SYS_LIB_STRIP
  53686. -AC_LIBTOOL_DLOPEN_SELF($1)
  53687. -
  53688. -# Report which librarie types wil actually be built
  53689. -AC_MSG_CHECKING([if libtool supports shared libraries])
  53690. -AC_MSG_RESULT([$can_build_shared])
  53691. -
  53692. -AC_MSG_CHECKING([whether to build shared libraries])
  53693. -test "$can_build_shared" = "no" && enable_shared=no
  53694. -
  53695. -# On AIX, shared libraries and static libraries use the same namespace, and
  53696. -# are all built from PIC.
  53697. -case "$host_os" in
  53698. -aix3*)
  53699. - test "$enable_shared" = yes && enable_static=no
  53700. - if test -n "$RANLIB"; then
  53701. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  53702. - postinstall_cmds='$RANLIB $lib'
  53703. - fi
  53704. - ;;
  53705. + rm -f conftest*
  53706. + cat > conftest.$ac_ext <<_LT_EOF
  53707. +#ifdef __cplusplus
  53708. +extern "C" {
  53709. +#endif
  53710. +char nm_test_var;
  53711. +void nm_test_func(void);
  53712. +void nm_test_func(void){}
  53713. +#ifdef __cplusplus
  53714. +}
  53715. +#endif
  53716. +int main(){nm_test_var='a';nm_test_func();return(0);}
  53717. +_LT_EOF
  53718. -aix4* | aix5*)
  53719. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  53720. - test "$enable_shared" = yes && enable_static=no
  53721. - fi
  53722. - ;;
  53723. - darwin* | rhapsody*)
  53724. - if test "$GCC" = yes; then
  53725. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  53726. - case "$host_os" in
  53727. - rhapsody* | darwin1.[[012]])
  53728. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  53729. - ;;
  53730. - *) # Darwin 1.3 on
  53731. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  53732. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  53733. + if AC_TRY_EVAL(ac_compile); then
  53734. + # Now try to grab the symbols.
  53735. + nlist=conftest.nm
  53736. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  53737. + # Try sorting and uniquifying the output.
  53738. + if sort "$nlist" | uniq > "$nlist"T; then
  53739. + mv -f "$nlist"T "$nlist"
  53740. else
  53741. - case ${MACOSX_DEPLOYMENT_TARGET} in
  53742. - 10.[[012]])
  53743. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  53744. - ;;
  53745. - 10.*)
  53746. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  53747. - ;;
  53748. - esac
  53749. + rm -f "$nlist"T
  53750. fi
  53751. - ;;
  53752. - esac
  53753. - output_verbose_link_cmd='echo'
  53754. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  53755. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  53756. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  53757. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  53758. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  53759. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  53760. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  53761. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  53762. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  53763. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  53764. - else
  53765. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  53766. - fi
  53767. - ;;
  53768. -esac
  53769. -AC_MSG_RESULT([$enable_shared])
  53770. -
  53771. -AC_MSG_CHECKING([whether to build static libraries])
  53772. -# Make sure either enable_shared or enable_static is yes.
  53773. -test "$enable_shared" = yes || enable_static=yes
  53774. -AC_MSG_RESULT([$enable_static])
  53775. -
  53776. -AC_LIBTOOL_CONFIG($1)
  53777. -
  53778. -AC_LANG_POP
  53779. -CC="$lt_save_CC"
  53780. -])# AC_LIBTOOL_LANG_C_CONFIG
  53781. -
  53782. -
  53783. -# AC_LIBTOOL_LANG_CXX_CONFIG
  53784. -# --------------------------
  53785. -# Ensure that the configuration vars for the C compiler are
  53786. -# suitably defined. Those variables are subsequently used by
  53787. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  53788. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  53789. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  53790. -[AC_LANG_PUSH(C++)
  53791. -AC_REQUIRE([AC_PROG_CXX])
  53792. -AC_REQUIRE([AC_PROG_CXXCPP])
  53793. -
  53794. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  53795. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  53796. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  53797. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  53798. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  53799. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  53800. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  53801. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  53802. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  53803. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  53804. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  53805. -_LT_AC_TAGVAR(module_cmds, $1)=
  53806. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  53807. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  53808. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  53809. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  53810. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  53811. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  53812. -
  53813. -# Dependencies to place before and after the object being linked:
  53814. -_LT_AC_TAGVAR(predep_objects, $1)=
  53815. -_LT_AC_TAGVAR(postdep_objects, $1)=
  53816. -_LT_AC_TAGVAR(predeps, $1)=
  53817. -_LT_AC_TAGVAR(postdeps, $1)=
  53818. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  53819. -
  53820. -# Source file extension for C++ test sources.
  53821. -ac_ext=cc
  53822. -
  53823. -# Object file extension for compiled C++ test sources.
  53824. -objext=o
  53825. -_LT_AC_TAGVAR(objext, $1)=$objext
  53826. -
  53827. -# Code to be used in simple compile tests
  53828. -lt_simple_compile_test_code="int some_variable = 0;\n"
  53829. -
  53830. -# Code to be used in simple link tests
  53831. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  53832. -
  53833. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  53834. -_LT_AC_SYS_COMPILER
  53835. -
  53836. -# Allow CC to be a program name with arguments.
  53837. -lt_save_CC=$CC
  53838. -lt_save_LD=$LD
  53839. -lt_save_GCC=$GCC
  53840. -GCC=$GXX
  53841. -lt_save_with_gnu_ld=$with_gnu_ld
  53842. -lt_save_path_LD=$lt_cv_path_LD
  53843. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  53844. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  53845. -else
  53846. - unset lt_cv_prog_gnu_ld
  53847. -fi
  53848. -if test -n "${lt_cv_path_LDCXX+set}"; then
  53849. - lt_cv_path_LD=$lt_cv_path_LDCXX
  53850. -else
  53851. - unset lt_cv_path_LD
  53852. -fi
  53853. -test -z "${LDCXX+set}" || LD=$LDCXX
  53854. -CC=${CXX-"c++"}
  53855. -compiler=$CC
  53856. -_LT_AC_TAGVAR(compiler, $1)=$CC
  53857. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  53858. -
  53859. -# We don't want -fno-exception wen compiling C++ code, so set the
  53860. -# no_builtin_flag separately
  53861. -if test "$GXX" = yes; then
  53862. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  53863. -else
  53864. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  53865. -fi
  53866. -if test "$GXX" = yes; then
  53867. - # Set up default GNU C++ configuration
  53868. + # Make sure that we snagged all the symbols we need.
  53869. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  53870. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  53871. + cat <<_LT_EOF > conftest.$ac_ext
  53872. +#ifdef __cplusplus
  53873. +extern "C" {
  53874. +#endif
  53875. - AC_PROG_LD
  53876. +_LT_EOF
  53877. + # Now generate the symbol file.
  53878. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  53879. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  53880. - # archiving commands below assume that GNU ld is being used.
  53881. - if test "$with_gnu_ld" = yes; then
  53882. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  53883. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  53884. + cat <<_LT_EOF >> conftest.$ac_ext
  53885. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  53886. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  53887. +/* The mapping between symbol names and symbols. */
  53888. +const struct {
  53889. + const char *name;
  53890. + void *address;
  53891. +}
  53892. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  53893. +{
  53894. + { "@PROGRAM@", (void *) 0 },
  53895. +_LT_EOF
  53896. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  53897. + cat <<\_LT_EOF >> conftest.$ac_ext
  53898. + {0, (void *) 0}
  53899. +};
  53900. - # If archive_cmds runs LD, not CC, wlarc should be empty
  53901. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  53902. - # investigate it a little bit more. (MM)
  53903. - wlarc='${wl}'
  53904. +/* This works around a problem in FreeBSD linker */
  53905. +#ifdef FREEBSD_WORKAROUND
  53906. +static const void *lt_preloaded_setup() {
  53907. + return lt__PROGRAM__LTX_preloaded_symbols;
  53908. +}
  53909. +#endif
  53910. - # ancient GNU ld didn't support --whole-archive et. al.
  53911. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  53912. - grep 'no-whole-archive' > /dev/null; then
  53913. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  53914. +#ifdef __cplusplus
  53915. +}
  53916. +#endif
  53917. +_LT_EOF
  53918. + # Now try linking the two files.
  53919. + mv conftest.$ac_objext conftstm.$ac_objext
  53920. + lt_save_LIBS="$LIBS"
  53921. + lt_save_CFLAGS="$CFLAGS"
  53922. + LIBS="conftstm.$ac_objext"
  53923. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  53924. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  53925. + pipe_works=yes
  53926. + fi
  53927. + LIBS="$lt_save_LIBS"
  53928. + CFLAGS="$lt_save_CFLAGS"
  53929. + else
  53930. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  53931. + fi
  53932. + else
  53933. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  53934. + fi
  53935. else
  53936. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  53937. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  53938. fi
  53939. else
  53940. - with_gnu_ld=no
  53941. - wlarc=
  53942. -
  53943. - # A generic and very simple default shared library creation
  53944. - # command for GNU C++ for the case where it uses the native
  53945. - # linker, instead of GNU ld. If possible, this setting should
  53946. - # overridden to take advantage of the native linker features on
  53947. - # the platform it is being used on.
  53948. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  53949. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  53950. + cat conftest.$ac_ext >&5
  53951. fi
  53952. + rm -rf conftest* conftst*
  53953. - # Commands to make compiler produce verbose output that lists
  53954. - # what "hidden" libraries, object files and flags are used when
  53955. - # linking a shared library.
  53956. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  53957. -
  53958. + # Do not use the global_symbol_pipe unless it works.
  53959. + if test "$pipe_works" = yes; then
  53960. + break
  53961. + else
  53962. + lt_cv_sys_global_symbol_pipe=
  53963. + fi
  53964. +done
  53965. +])
  53966. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  53967. + lt_cv_sys_global_symbol_to_cdecl=
  53968. +fi
  53969. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  53970. + AC_MSG_RESULT(failed)
  53971. else
  53972. - GXX=no
  53973. - with_gnu_ld=no
  53974. - wlarc=
  53975. + AC_MSG_RESULT(ok)
  53976. fi
  53977. -# PORTME: fill in a description of your system's C++ link characteristics
  53978. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  53979. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  53980. -case $host_os in
  53981. - aix3*)
  53982. - # FIXME: insert proper C++ library support
  53983. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  53984. - ;;
  53985. - aix4* | aix5*)
  53986. - if test "$host_cpu" = ia64; then
  53987. - # On IA64, the linker does run time linking by default, so we don't
  53988. - # have to do anything special.
  53989. - aix_use_runtimelinking=no
  53990. - exp_sym_flag='-Bexport'
  53991. - no_entry_flag=""
  53992. - else
  53993. - aix_use_runtimelinking=no
  53994. -
  53995. - # Test if we are trying to use run time linking or normal
  53996. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  53997. - # need to do runtime linking.
  53998. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  53999. - for ld_flag in $LDFLAGS; do
  54000. - case $ld_flag in
  54001. - *-brtl*)
  54002. - aix_use_runtimelinking=yes
  54003. - break
  54004. - ;;
  54005. - esac
  54006. - done
  54007. - esac
  54008. -
  54009. - exp_sym_flag='-bexport'
  54010. - no_entry_flag='-bnoentry'
  54011. - fi
  54012. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  54013. + [Take the output of nm and produce a listing of raw symbols and C names])
  54014. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  54015. + [Transform the output of nm in a proper C declaration])
  54016. +_LT_DECL([global_symbol_to_c_name_address],
  54017. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  54018. + [Transform the output of nm in a C name address pair])
  54019. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  54020. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  54021. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  54022. +]) # _LT_CMD_GLOBAL_SYMBOLS
  54023. - # When large executables or shared objects are built, AIX ld can
  54024. - # have problems creating the table of contents. If linking a library
  54025. - # or program results in "error TOC overflow" add -mminimal-toc to
  54026. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  54027. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  54028. -
  54029. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  54030. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  54031. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  54032. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  54033. - if test "$GXX" = yes; then
  54034. - case $host_os in aix4.[012]|aix4.[012].*)
  54035. - # We only want to do this on AIX 4.2 and lower, the check
  54036. - # below for broken collect2 doesn't work under 4.3+
  54037. - collect2name=`${CC} -print-prog-name=collect2`
  54038. - if test -f "$collect2name" && \
  54039. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  54040. - then
  54041. - # We have reworked collect2
  54042. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  54043. - else
  54044. - # We have old collect2
  54045. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  54046. - # It fails to find uninstalled libraries when the uninstalled
  54047. - # path is not listed in the libpath. Setting hardcode_minus_L
  54048. - # to unsupported forces relinking
  54049. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  54050. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  54051. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  54052. - fi
  54053. - esac
  54054. - shared_flag='-shared'
  54055. - else
  54056. - # not using gcc
  54057. - if test "$host_cpu" = ia64; then
  54058. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  54059. - # chokes on -Wl,-G. The following line is correct:
  54060. - shared_flag='-G'
  54061. - else
  54062. - if test "$aix_use_runtimelinking" = yes; then
  54063. - shared_flag='${wl}-G'
  54064. - else
  54065. - shared_flag='${wl}-bM:SRE'
  54066. - fi
  54067. - fi
  54068. - fi
  54069. +# _LT_COMPILER_PIC([TAGNAME])
  54070. +# ---------------------------
  54071. +m4_defun([_LT_COMPILER_PIC],
  54072. +[m4_require([_LT_TAG_COMPILER])dnl
  54073. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  54074. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  54075. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  54076. - # It seems that -bexpall does not export symbols beginning with
  54077. - # underscore (_), so it is better to generate a list of symbols to export.
  54078. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  54079. - if test "$aix_use_runtimelinking" = yes; then
  54080. - # Warning - without using the other runtime loading flags (-brtl),
  54081. - # -berok will link without error, but may produce a broken library.
  54082. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  54083. - # Determine the default libpath from the value encoded in an empty executable.
  54084. - _LT_AC_SYS_LIBPATH_AIX
  54085. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  54086. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  54087. +m4_if([$1], [CXX], [
  54088. + # C++ specific cases for pic, static, wl, etc.
  54089. + if test "$GXX" = yes; then
  54090. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54091. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  54092. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  54093. - else
  54094. + case $host_os in
  54095. + aix*)
  54096. + # All AIX code is PIC.
  54097. if test "$host_cpu" = ia64; then
  54098. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  54099. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  54100. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  54101. - else
  54102. - # Determine the default libpath from the value encoded in an empty executable.
  54103. - _LT_AC_SYS_LIBPATH_AIX
  54104. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  54105. - # Warning - without using the other run time loading flags,
  54106. - # -berok will link without error, but may produce a broken library.
  54107. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  54108. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  54109. - # -bexpall does not export symbols beginning with underscore (_)
  54110. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  54111. - # Exported symbols can be pulled into shared objects from archives
  54112. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  54113. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  54114. - # This is similar to how AIX traditionally builds it's shared libraries.
  54115. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  54116. + # AIX 5 now supports IA64 processor
  54117. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54118. fi
  54119. - fi
  54120. - ;;
  54121. - chorus*)
  54122. - case $cc_basename in
  54123. - *)
  54124. - # FIXME: insert proper C++ library support
  54125. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54126. - ;;
  54127. - esac
  54128. - ;;
  54129. + ;;
  54130. - cygwin* | mingw* | pw32*)
  54131. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  54132. - # as there is no search path for DLLs.
  54133. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  54134. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  54135. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  54136. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  54137. -
  54138. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  54139. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  54140. - # If the export-symbols file already is a .def file (1st line
  54141. - # is EXPORTS), use it as is; otherwise, prepend...
  54142. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  54143. - cp $export_symbols $output_objdir/$soname.def;
  54144. - else
  54145. - echo EXPORTS > $output_objdir/$soname.def;
  54146. - cat $export_symbols >> $output_objdir/$soname.def;
  54147. - fi~
  54148. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  54149. - else
  54150. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54151. - fi
  54152. - ;;
  54153. + amigaos*)
  54154. + case $host_cpu in
  54155. + powerpc)
  54156. + # see comment about AmigaOS4 .so support
  54157. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  54158. + ;;
  54159. + m68k)
  54160. + # FIXME: we need at least 68020 code to build shared libraries, but
  54161. + # adding the `-m68020' flag to GCC prevents building anything better,
  54162. + # like `-m68040'.
  54163. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  54164. + ;;
  54165. + esac
  54166. + ;;
  54167. - darwin* | rhapsody*)
  54168. - if test "$GXX" = yes; then
  54169. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  54170. - case "$host_os" in
  54171. - rhapsody* | darwin1.[[012]])
  54172. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  54173. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  54174. + # PIC is the default for these OSes.
  54175. ;;
  54176. - *) # Darwin 1.3 on
  54177. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  54178. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  54179. - else
  54180. - case ${MACOSX_DEPLOYMENT_TARGET} in
  54181. - 10.[[012]])
  54182. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  54183. - ;;
  54184. - 10.*)
  54185. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  54186. - ;;
  54187. - esac
  54188. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  54189. + # This hack is so that the source file can tell whether it is being
  54190. + # built for inclusion in a dll (and should export symbols for example).
  54191. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  54192. + # (--disable-auto-import) libraries
  54193. + m4_if([$1], [GCJ], [],
  54194. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  54195. + ;;
  54196. + darwin* | rhapsody*)
  54197. + # PIC is the default on this platform
  54198. + # Common symbols not allowed in MH_DYLIB files
  54199. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  54200. + ;;
  54201. + *djgpp*)
  54202. + # DJGPP does not support shared libraries at all
  54203. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  54204. + ;;
  54205. + interix[[3-9]]*)
  54206. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  54207. + # Instead, we relocate shared libraries at runtime.
  54208. + ;;
  54209. + sysv4*MP*)
  54210. + if test -d /usr/nec; then
  54211. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  54212. fi
  54213. ;;
  54214. - esac
  54215. - lt_int_apple_cc_single_mod=no
  54216. - output_verbose_link_cmd='echo'
  54217. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  54218. - lt_int_apple_cc_single_mod=yes
  54219. - fi
  54220. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  54221. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  54222. - else
  54223. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  54224. - fi
  54225. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  54226. -
  54227. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  54228. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  54229. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  54230. - else
  54231. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  54232. - fi
  54233. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  54234. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  54235. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  54236. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  54237. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  54238. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  54239. - else
  54240. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54241. - fi
  54242. - ;;
  54243. -
  54244. - dgux*)
  54245. - case $cc_basename in
  54246. - ec++)
  54247. - # FIXME: insert proper C++ library support
  54248. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54249. - ;;
  54250. - ghcx)
  54251. - # Green Hills C++ Compiler
  54252. - # FIXME: insert proper C++ library support
  54253. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54254. + hpux*)
  54255. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  54256. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  54257. + # sets the default TLS model and affects inlining.
  54258. + case $host_cpu in
  54259. + hppa*64*)
  54260. ;;
  54261. *)
  54262. - # FIXME: insert proper C++ library support
  54263. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54264. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  54265. ;;
  54266. - esac
  54267. - ;;
  54268. - freebsd[12]*)
  54269. - # C++ shared libraries reported to be fairly broken before switch to ELF
  54270. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54271. - ;;
  54272. - freebsd-elf*)
  54273. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  54274. - ;;
  54275. - freebsd* | kfreebsd*-gnu)
  54276. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  54277. - # conventions
  54278. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  54279. - ;;
  54280. - gnu*)
  54281. - ;;
  54282. - hpux9*)
  54283. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  54284. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54285. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  54286. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  54287. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  54288. - # but as the default
  54289. - # location of the library.
  54290. -
  54291. - case $cc_basename in
  54292. - CC)
  54293. - # FIXME: insert proper C++ library support
  54294. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54295. + esac
  54296. ;;
  54297. - aCC)
  54298. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  54299. - # Commands to make compiler produce verbose output that lists
  54300. - # what "hidden" libraries, object files and flags are used when
  54301. - # linking a shared library.
  54302. - #
  54303. - # There doesn't appear to be a way to prevent this compiler from
  54304. - # explicitly linking system object files so we need to strip them
  54305. - # from the output so that they don't get included in the library
  54306. - # dependencies.
  54307. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54308. + *qnx* | *nto*)
  54309. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  54310. + # it will coredump.
  54311. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  54312. ;;
  54313. *)
  54314. - if test "$GXX" = yes; then
  54315. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  54316. - else
  54317. - # FIXME: insert proper C++ library support
  54318. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54319. - fi
  54320. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  54321. ;;
  54322. esac
  54323. - ;;
  54324. - hpux10*|hpux11*)
  54325. - if test $with_gnu_ld = no; then
  54326. - case "$host_cpu" in
  54327. - hppa*64*)
  54328. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  54329. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  54330. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54331. - ;;
  54332. - ia64*)
  54333. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  54334. - ;;
  54335. - *)
  54336. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  54337. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54338. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  54339. - ;;
  54340. - esac
  54341. - fi
  54342. - case "$host_cpu" in
  54343. - hppa*64*)
  54344. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  54345. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  54346. - ;;
  54347. - ia64*)
  54348. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  54349. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  54350. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  54351. - # but as the default
  54352. - # location of the library.
  54353. - ;;
  54354. - *)
  54355. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  54356. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  54357. - # but as the default
  54358. - # location of the library.
  54359. - ;;
  54360. - esac
  54361. -
  54362. - case $cc_basename in
  54363. - CC)
  54364. - # FIXME: insert proper C++ library support
  54365. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54366. + else
  54367. + case $host_os in
  54368. + aix[[4-9]]*)
  54369. + # All AIX code is PIC.
  54370. + if test "$host_cpu" = ia64; then
  54371. + # AIX 5 now supports IA64 processor
  54372. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54373. + else
  54374. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  54375. + fi
  54376. ;;
  54377. - aCC)
  54378. - case "$host_cpu" in
  54379. - hppa*64*|ia64*)
  54380. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  54381. - ;;
  54382. - *)
  54383. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  54384. + chorus*)
  54385. + case $cc_basename in
  54386. + cxch68*)
  54387. + # Green Hills C++ Compiler
  54388. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  54389. ;;
  54390. esac
  54391. - # Commands to make compiler produce verbose output that lists
  54392. - # what "hidden" libraries, object files and flags are used when
  54393. - # linking a shared library.
  54394. - #
  54395. - # There doesn't appear to be a way to prevent this compiler from
  54396. - # explicitly linking system object files so we need to strip them
  54397. - # from the output so that they don't get included in the library
  54398. - # dependencies.
  54399. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54400. ;;
  54401. - *)
  54402. - if test "$GXX" = yes; then
  54403. - if test $with_gnu_ld = no; then
  54404. - case "$host_cpu" in
  54405. - ia64*|hppa*64*)
  54406. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  54407. + dgux*)
  54408. + case $cc_basename in
  54409. + ec++*)
  54410. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  54411. + ;;
  54412. + ghcx*)
  54413. + # Green Hills C++ Compiler
  54414. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  54415. + ;;
  54416. + *)
  54417. + ;;
  54418. + esac
  54419. + ;;
  54420. + freebsd* | dragonfly*)
  54421. + # FreeBSD uses GNU C++
  54422. + ;;
  54423. + hpux9* | hpux10* | hpux11*)
  54424. + case $cc_basename in
  54425. + CC*)
  54426. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54427. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  54428. + if test "$host_cpu" != ia64; then
  54429. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  54430. + fi
  54431. + ;;
  54432. + aCC*)
  54433. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54434. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  54435. + case $host_cpu in
  54436. + hppa*64*|ia64*)
  54437. + # +Z the default
  54438. ;;
  54439. *)
  54440. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  54441. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  54442. ;;
  54443. esac
  54444. - fi
  54445. - else
  54446. - # FIXME: insert proper C++ library support
  54447. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54448. - fi
  54449. - ;;
  54450. - esac
  54451. - ;;
  54452. - irix5* | irix6*)
  54453. - case $cc_basename in
  54454. - CC)
  54455. - # SGI C++
  54456. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  54457. -
  54458. - # Archives containing C++ object files must be created using
  54459. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  54460. - # necessary to make sure instantiated templates are included
  54461. - # in the archive.
  54462. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  54463. + ;;
  54464. + *)
  54465. + ;;
  54466. + esac
  54467. ;;
  54468. - *)
  54469. - if test "$GXX" = yes; then
  54470. - if test "$with_gnu_ld" = no; then
  54471. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  54472. - else
  54473. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  54474. - fi
  54475. - fi
  54476. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  54477. + interix*)
  54478. + # This is c89, which is MS Visual C++ (no shared libs)
  54479. + # Anyone wants to do a port?
  54480. ;;
  54481. - esac
  54482. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  54483. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54484. - ;;
  54485. - linux*)
  54486. - case $cc_basename in
  54487. - KCC)
  54488. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  54489. -
  54490. - # KCC will only create a shared library if the output file
  54491. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  54492. - # to its proper name (with version) after linking.
  54493. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  54494. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  54495. - # Commands to make compiler produce verbose output that lists
  54496. - # what "hidden" libraries, object files and flags are used when
  54497. - # linking a shared library.
  54498. - #
  54499. - # There doesn't appear to be a way to prevent this compiler from
  54500. - # explicitly linking system object files so we need to strip them
  54501. - # from the output so that they don't get included in the library
  54502. - # dependencies.
  54503. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54504. -
  54505. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  54506. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  54507. -
  54508. - # Archives containing C++ object files must be created using
  54509. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  54510. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  54511. - ;;
  54512. - icpc)
  54513. - # Intel C++
  54514. - with_gnu_ld=yes
  54515. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  54516. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  54517. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  54518. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  54519. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  54520. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  54521. - ;;
  54522. - cxx)
  54523. - # Compaq C++
  54524. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  54525. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  54526. -
  54527. - runpath_var=LD_RUN_PATH
  54528. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  54529. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54530. -
  54531. - # Commands to make compiler produce verbose output that lists
  54532. - # what "hidden" libraries, object files and flags are used when
  54533. - # linking a shared library.
  54534. - #
  54535. - # There doesn't appear to be a way to prevent this compiler from
  54536. - # explicitly linking system object files so we need to strip them
  54537. - # from the output so that they don't get included in the library
  54538. - # dependencies.
  54539. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54540. + irix5* | irix6* | nonstopux*)
  54541. + case $cc_basename in
  54542. + CC*)
  54543. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54544. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  54545. + # CC pic flag -KPIC is the default.
  54546. + ;;
  54547. + *)
  54548. + ;;
  54549. + esac
  54550. ;;
  54551. - esac
  54552. - ;;
  54553. - lynxos*)
  54554. - # FIXME: insert proper C++ library support
  54555. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54556. - ;;
  54557. - m88k*)
  54558. - # FIXME: insert proper C++ library support
  54559. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54560. - ;;
  54561. - mvs*)
  54562. - case $cc_basename in
  54563. - cxx)
  54564. - # FIXME: insert proper C++ library support
  54565. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54566. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  54567. + case $cc_basename in
  54568. + KCC*)
  54569. + # KAI C++ Compiler
  54570. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  54571. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  54572. + ;;
  54573. + ecpc* )
  54574. + # old Intel C++ for x86_64 which still supported -KPIC.
  54575. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54576. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  54577. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  54578. + ;;
  54579. + icpc* )
  54580. + # Intel C++, used to be incompatible with GCC.
  54581. + # ICC 10 doesn't accept -KPIC any more.
  54582. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54583. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  54584. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  54585. + ;;
  54586. + pgCC* | pgcpp*)
  54587. + # Portland Group C++ compiler
  54588. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54589. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  54590. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54591. + ;;
  54592. + cxx*)
  54593. + # Compaq C++
  54594. + # Make sure the PIC flag is empty. It appears that all Alpha
  54595. + # Linux and Compaq Tru64 Unix objects are PIC.
  54596. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  54597. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  54598. + ;;
  54599. + xlc* | xlC*)
  54600. + # IBM XL 8.0 on PPC
  54601. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54602. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  54603. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  54604. + ;;
  54605. + *)
  54606. + case `$CC -V 2>&1 | sed 5q` in
  54607. + *Sun\ C*)
  54608. + # Sun C++ 5.9
  54609. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  54610. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54611. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  54612. + ;;
  54613. + esac
  54614. + ;;
  54615. + esac
  54616. ;;
  54617. - *)
  54618. - # FIXME: insert proper C++ library support
  54619. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54620. + lynxos*)
  54621. ;;
  54622. - esac
  54623. - ;;
  54624. - netbsd* | knetbsd*-gnu)
  54625. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  54626. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  54627. - wlarc=
  54628. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  54629. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  54630. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  54631. - fi
  54632. - # Workaround some broken pre-1.5 toolchains
  54633. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  54634. - ;;
  54635. - osf3*)
  54636. - case $cc_basename in
  54637. - KCC)
  54638. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  54639. -
  54640. - # KCC will only create a shared library if the output file
  54641. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  54642. - # to its proper name (with version) after linking.
  54643. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  54644. -
  54645. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  54646. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54647. -
  54648. - # Archives containing C++ object files must be created using
  54649. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  54650. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  54651. -
  54652. - ;;
  54653. - RCC)
  54654. - # Rational C++ 2.4.1
  54655. - # FIXME: insert proper C++ library support
  54656. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54657. - ;;
  54658. - cxx)
  54659. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  54660. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  54661. -
  54662. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  54663. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54664. -
  54665. - # Commands to make compiler produce verbose output that lists
  54666. - # what "hidden" libraries, object files and flags are used when
  54667. - # linking a shared library.
  54668. - #
  54669. - # There doesn't appear to be a way to prevent this compiler from
  54670. - # explicitly linking system object files so we need to strip them
  54671. - # from the output so that they don't get included in the library
  54672. - # dependencies.
  54673. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54674. + m88k*)
  54675. ;;
  54676. - *)
  54677. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  54678. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  54679. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  54680. -
  54681. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  54682. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54683. -
  54684. - # Commands to make compiler produce verbose output that lists
  54685. - # what "hidden" libraries, object files and flags are used when
  54686. - # linking a shared library.
  54687. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  54688. -
  54689. - else
  54690. - # FIXME: insert proper C++ library support
  54691. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54692. - fi
  54693. + mvs*)
  54694. + case $cc_basename in
  54695. + cxx*)
  54696. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  54697. + ;;
  54698. + *)
  54699. + ;;
  54700. + esac
  54701. ;;
  54702. - esac
  54703. - ;;
  54704. - osf4* | osf5*)
  54705. - case $cc_basename in
  54706. - KCC)
  54707. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  54708. -
  54709. - # KCC will only create a shared library if the output file
  54710. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  54711. - # to its proper name (with version) after linking.
  54712. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  54713. -
  54714. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  54715. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54716. -
  54717. - # Archives containing C++ object files must be created using
  54718. - # the KAI C++ compiler.
  54719. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  54720. - ;;
  54721. - RCC)
  54722. - # Rational C++ 2.4.1
  54723. - # FIXME: insert proper C++ library support
  54724. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54725. - ;;
  54726. - cxx)
  54727. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  54728. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  54729. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  54730. - echo "-hidden">> $lib.exp~
  54731. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  54732. - $rm $lib.exp'
  54733. -
  54734. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  54735. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54736. -
  54737. - # Commands to make compiler produce verbose output that lists
  54738. - # what "hidden" libraries, object files and flags are used when
  54739. - # linking a shared library.
  54740. - #
  54741. - # There doesn't appear to be a way to prevent this compiler from
  54742. - # explicitly linking system object files so we need to strip them
  54743. - # from the output so that they don't get included in the library
  54744. - # dependencies.
  54745. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54746. + netbsd* | netbsdelf*-gnu)
  54747. ;;
  54748. - *)
  54749. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  54750. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  54751. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  54752. -
  54753. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  54754. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  54755. -
  54756. - # Commands to make compiler produce verbose output that lists
  54757. - # what "hidden" libraries, object files and flags are used when
  54758. - # linking a shared library.
  54759. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  54760. -
  54761. - else
  54762. - # FIXME: insert proper C++ library support
  54763. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54764. - fi
  54765. + *qnx* | *nto*)
  54766. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  54767. + # it will coredump.
  54768. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  54769. + ;;
  54770. + osf3* | osf4* | osf5*)
  54771. + case $cc_basename in
  54772. + KCC*)
  54773. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  54774. + ;;
  54775. + RCC*)
  54776. + # Rational C++ 2.4.1
  54777. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  54778. + ;;
  54779. + cxx*)
  54780. + # Digital/Compaq C++
  54781. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54782. + # Make sure the PIC flag is empty. It appears that all Alpha
  54783. + # Linux and Compaq Tru64 Unix objects are PIC.
  54784. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  54785. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  54786. + ;;
  54787. + *)
  54788. + ;;
  54789. + esac
  54790. ;;
  54791. - esac
  54792. - ;;
  54793. - psos*)
  54794. - # FIXME: insert proper C++ library support
  54795. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54796. - ;;
  54797. - sco*)
  54798. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  54799. - case $cc_basename in
  54800. - CC)
  54801. - # FIXME: insert proper C++ library support
  54802. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54803. + psos*)
  54804. ;;
  54805. - *)
  54806. - # FIXME: insert proper C++ library support
  54807. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54808. + solaris*)
  54809. + case $cc_basename in
  54810. + CC*)
  54811. + # Sun C++ 4.2, 5.x and Centerline C++
  54812. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  54813. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54814. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  54815. + ;;
  54816. + gcx*)
  54817. + # Green Hills C++ Compiler
  54818. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  54819. + ;;
  54820. + *)
  54821. + ;;
  54822. + esac
  54823. ;;
  54824. - esac
  54825. - ;;
  54826. - sunos4*)
  54827. - case $cc_basename in
  54828. - CC)
  54829. - # Sun C++ 4.x
  54830. - # FIXME: insert proper C++ library support
  54831. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54832. - ;;
  54833. - lcc)
  54834. - # Lucid
  54835. - # FIXME: insert proper C++ library support
  54836. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54837. + sunos4*)
  54838. + case $cc_basename in
  54839. + CC*)
  54840. + # Sun C++ 4.x
  54841. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  54842. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54843. + ;;
  54844. + lcc*)
  54845. + # Lucid
  54846. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  54847. + ;;
  54848. + *)
  54849. + ;;
  54850. + esac
  54851. ;;
  54852. - *)
  54853. - # FIXME: insert proper C++ library support
  54854. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54855. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  54856. + case $cc_basename in
  54857. + CC*)
  54858. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54859. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  54860. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54861. + ;;
  54862. + esac
  54863. ;;
  54864. - esac
  54865. - ;;
  54866. - solaris*)
  54867. - case $cc_basename in
  54868. - CC)
  54869. - # Sun C++ 4.2, 5.x and Centerline C++
  54870. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  54871. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  54872. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  54873. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  54874. -
  54875. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  54876. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  54877. - case $host_os in
  54878. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  54879. + tandem*)
  54880. + case $cc_basename in
  54881. + NCC*)
  54882. + # NonStop-UX NCC 3.20
  54883. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  54884. + ;;
  54885. *)
  54886. - # The C++ compiler is used as linker so we must use $wl
  54887. - # flag to pass the commands to the underlying system
  54888. - # linker.
  54889. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  54890. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  54891. ;;
  54892. esac
  54893. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  54894. -
  54895. - # Commands to make compiler produce verbose output that lists
  54896. - # what "hidden" libraries, object files and flags are used when
  54897. - # linking a shared library.
  54898. - #
  54899. - # There doesn't appear to be a way to prevent this compiler from
  54900. - # explicitly linking system object files so we need to strip them
  54901. - # from the output so that they don't get included in the library
  54902. - # dependencies.
  54903. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  54904. -
  54905. - # Archives containing C++ object files must be created using
  54906. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  54907. - # necessary to make sure instantiated templates are included
  54908. - # in the archive.
  54909. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  54910. - ;;
  54911. - gcx)
  54912. - # Green Hills C++ Compiler
  54913. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  54914. -
  54915. - # The C++ compiler must be used to create the archive.
  54916. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  54917. + ;;
  54918. + vxworks*)
  54919. ;;
  54920. *)
  54921. - # GNU C++ compiler with Solaris linker
  54922. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  54923. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  54924. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  54925. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  54926. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  54927. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  54928. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  54929. + ;;
  54930. + esac
  54931. + fi
  54932. +],
  54933. +[
  54934. + if test "$GCC" = yes; then
  54935. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  54936. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  54937. - # Commands to make compiler produce verbose output that lists
  54938. - # what "hidden" libraries, object files and flags are used when
  54939. - # linking a shared library.
  54940. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  54941. - else
  54942. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  54943. - # platform.
  54944. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  54945. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  54946. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  54947. + case $host_os in
  54948. + aix*)
  54949. + # All AIX code is PIC.
  54950. + if test "$host_cpu" = ia64; then
  54951. + # AIX 5 now supports IA64 processor
  54952. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  54953. + fi
  54954. + ;;
  54955. - # Commands to make compiler produce verbose output that lists
  54956. - # what "hidden" libraries, object files and flags are used when
  54957. - # linking a shared library.
  54958. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  54959. - fi
  54960. + amigaos*)
  54961. + case $host_cpu in
  54962. + powerpc)
  54963. + # see comment about AmigaOS4 .so support
  54964. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  54965. + ;;
  54966. + m68k)
  54967. + # FIXME: we need at least 68020 code to build shared libraries, but
  54968. + # adding the `-m68020' flag to GCC prevents building anything better,
  54969. + # like `-m68040'.
  54970. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  54971. + ;;
  54972. + esac
  54973. + ;;
  54974. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  54975. - fi
  54976. - ;;
  54977. - esac
  54978. - ;;
  54979. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  54980. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  54981. - ;;
  54982. - tandem*)
  54983. - case $cc_basename in
  54984. - NCC)
  54985. - # NonStop-UX NCC 3.20
  54986. - # FIXME: insert proper C++ library support
  54987. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  54988. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  54989. + # PIC is the default for these OSes.
  54990. + ;;
  54991. +
  54992. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  54993. + # This hack is so that the source file can tell whether it is being
  54994. + # built for inclusion in a dll (and should export symbols for example).
  54995. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  54996. + # (--disable-auto-import) libraries
  54997. + m4_if([$1], [GCJ], [],
  54998. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  54999. + ;;
  55000. +
  55001. + darwin* | rhapsody*)
  55002. + # PIC is the default on this platform
  55003. + # Common symbols not allowed in MH_DYLIB files
  55004. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  55005. + ;;
  55006. +
  55007. + hpux*)
  55008. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  55009. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  55010. + # sets the default TLS model and affects inlining.
  55011. + case $host_cpu in
  55012. + hppa*64*)
  55013. + # +Z the default
  55014. ;;
  55015. *)
  55016. - # FIXME: insert proper C++ library support
  55017. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  55018. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  55019. ;;
  55020. - esac
  55021. - ;;
  55022. - vxworks*)
  55023. - # FIXME: insert proper C++ library support
  55024. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  55025. - ;;
  55026. - *)
  55027. - # FIXME: insert proper C++ library support
  55028. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  55029. - ;;
  55030. -esac
  55031. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  55032. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  55033. + esac
  55034. + ;;
  55035. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  55036. -_LT_AC_TAGVAR(LD, $1)="$LD"
  55037. + interix[[3-9]]*)
  55038. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  55039. + # Instead, we relocate shared libraries at runtime.
  55040. + ;;
  55041. -## CAVEAT EMPTOR:
  55042. -## There is no encapsulation within the following macros, do not change
  55043. -## the running order or otherwise move them around unless you know exactly
  55044. -## what you are doing...
  55045. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  55046. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  55047. -AC_LIBTOOL_PROG_CC_C_O($1)
  55048. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  55049. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  55050. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  55051. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  55052. -AC_LIBTOOL_SYS_LIB_STRIP
  55053. -AC_LIBTOOL_DLOPEN_SELF($1)
  55054. + msdosdjgpp*)
  55055. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  55056. + # on systems that don't support them.
  55057. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  55058. + enable_shared=no
  55059. + ;;
  55060. -AC_LIBTOOL_CONFIG($1)
  55061. + *nto* | *qnx*)
  55062. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  55063. + # it will coredump.
  55064. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  55065. + ;;
  55066. -AC_LANG_POP
  55067. -CC=$lt_save_CC
  55068. -LDCXX=$LD
  55069. -LD=$lt_save_LD
  55070. -GCC=$lt_save_GCC
  55071. -with_gnu_ldcxx=$with_gnu_ld
  55072. -with_gnu_ld=$lt_save_with_gnu_ld
  55073. -lt_cv_path_LDCXX=$lt_cv_path_LD
  55074. -lt_cv_path_LD=$lt_save_path_LD
  55075. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  55076. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  55077. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  55078. + sysv4*MP*)
  55079. + if test -d /usr/nec; then
  55080. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  55081. + fi
  55082. + ;;
  55083. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  55084. -# ------------------------
  55085. -# Figure out "hidden" library dependencies from verbose
  55086. -# compiler output when linking a shared library.
  55087. -# Parse the compiler output and extract the necessary
  55088. -# objects, libraries and library flags.
  55089. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  55090. -dnl we can't use the lt_simple_compile_test_code here,
  55091. -dnl because it contains code intended for an executable,
  55092. -dnl not a library. It's possible we should let each
  55093. -dnl tag define a new lt_????_link_test_code variable,
  55094. -dnl but it's only used here...
  55095. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  55096. -int a;
  55097. -void foo (void) { a = 0; }
  55098. -EOF
  55099. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  55100. -class Foo
  55101. -{
  55102. -public:
  55103. - Foo (void) { a = 0; }
  55104. -private:
  55105. - int a;
  55106. -};
  55107. -EOF
  55108. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  55109. - subroutine foo
  55110. - implicit none
  55111. - integer*4 a
  55112. - a=0
  55113. - return
  55114. - end
  55115. -EOF
  55116. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  55117. -public class foo {
  55118. - private int a;
  55119. - public void bar (void) {
  55120. - a = 0;
  55121. - }
  55122. -};
  55123. -EOF
  55124. -])
  55125. -dnl Parse the compiler output and extract the necessary
  55126. -dnl objects, libraries and library flags.
  55127. -if AC_TRY_EVAL(ac_compile); then
  55128. - # Parse the compiler output and extract the necessary
  55129. - # objects, libraries and library flags.
  55130. -
  55131. - # Sentinel used to keep track of whether or not we are before
  55132. - # the conftest object file.
  55133. - pre_test_object_deps_done=no
  55134. -
  55135. - # The `*' in the case matches for architectures that use `case' in
  55136. - # $output_verbose_cmd can trigger glob expansion during the loop
  55137. - # eval without this substitution.
  55138. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  55139. -
  55140. - for p in `eval $output_verbose_link_cmd`; do
  55141. - case $p in
  55142. + *)
  55143. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  55144. + ;;
  55145. + esac
  55146. + else
  55147. + # PORTME Check for flag to pass linker flags through the system compiler.
  55148. + case $host_os in
  55149. + aix*)
  55150. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55151. + if test "$host_cpu" = ia64; then
  55152. + # AIX 5 now supports IA64 processor
  55153. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55154. + else
  55155. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  55156. + fi
  55157. + ;;
  55158. - -L* | -R* | -l*)
  55159. - # Some compilers place space between "-{L,R}" and the path.
  55160. - # Remove the space.
  55161. - if test $p = "-L" \
  55162. - || test $p = "-R"; then
  55163. - prev=$p
  55164. - continue
  55165. - else
  55166. - prev=
  55167. - fi
  55168. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  55169. + # This hack is so that the source file can tell whether it is being
  55170. + # built for inclusion in a dll (and should export symbols for example).
  55171. + m4_if([$1], [GCJ], [],
  55172. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  55173. + ;;
  55174. - if test "$pre_test_object_deps_done" = no; then
  55175. - case $p in
  55176. - -L* | -R*)
  55177. - # Internal compiler library paths should come after those
  55178. - # provided the user. The postdeps already come after the
  55179. - # user supplied libs so there is no need to process them.
  55180. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  55181. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  55182. - else
  55183. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  55184. - fi
  55185. - ;;
  55186. - # The "-l" case would never come before the object being
  55187. - # linked, so don't bother handling this case.
  55188. - esac
  55189. - else
  55190. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  55191. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  55192. - else
  55193. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  55194. - fi
  55195. - fi
  55196. - ;;
  55197. + hpux9* | hpux10* | hpux11*)
  55198. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55199. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  55200. + # not for PA HP-UX.
  55201. + case $host_cpu in
  55202. + hppa*64*|ia64*)
  55203. + # +Z the default
  55204. + ;;
  55205. + *)
  55206. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  55207. + ;;
  55208. + esac
  55209. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  55210. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  55211. + ;;
  55212. - *.$objext)
  55213. - # This assumes that the test object file only shows up
  55214. - # once in the compiler output.
  55215. - if test "$p" = "conftest.$objext"; then
  55216. - pre_test_object_deps_done=yes
  55217. - continue
  55218. - fi
  55219. + irix5* | irix6* | nonstopux*)
  55220. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55221. + # PIC (with -KPIC) is the default.
  55222. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  55223. + ;;
  55224. - if test "$pre_test_object_deps_done" = no; then
  55225. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  55226. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  55227. - else
  55228. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  55229. - fi
  55230. - else
  55231. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  55232. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  55233. - else
  55234. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  55235. - fi
  55236. - fi
  55237. - ;;
  55238. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  55239. + case $cc_basename in
  55240. + # old Intel for x86_64 which still supported -KPIC.
  55241. + ecc*)
  55242. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55243. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55244. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  55245. + ;;
  55246. + # icc used to be incompatible with GCC.
  55247. + # ICC 10 doesn't accept -KPIC any more.
  55248. + icc* | ifort*)
  55249. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55250. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  55251. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  55252. + ;;
  55253. + # Lahey Fortran 8.1.
  55254. + lf95*)
  55255. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55256. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  55257. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  55258. + ;;
  55259. + pgcc* | pgf77* | pgf90* | pgf95*)
  55260. + # Portland Group compilers (*not* the Pentium gcc compiler,
  55261. + # which looks to be a dead project)
  55262. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55263. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  55264. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55265. + ;;
  55266. + ccc*)
  55267. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55268. + # All Alpha code is PIC.
  55269. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  55270. + ;;
  55271. + xl*)
  55272. + # IBM XL C 8.0/Fortran 10.1 on PPC
  55273. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55274. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  55275. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  55276. + ;;
  55277. + *)
  55278. + case `$CC -V 2>&1 | sed 5q` in
  55279. + *Sun\ C*)
  55280. + # Sun C 5.9
  55281. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55282. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55283. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55284. + ;;
  55285. + *Sun\ F*)
  55286. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  55287. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55288. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55289. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  55290. + ;;
  55291. + esac
  55292. + ;;
  55293. + esac
  55294. + ;;
  55295. - *) ;; # Ignore the rest.
  55296. + newsos6)
  55297. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55298. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55299. + ;;
  55300. - esac
  55301. - done
  55302. + *nto* | *qnx*)
  55303. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  55304. + # it will coredump.
  55305. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  55306. + ;;
  55307. - # Clean up.
  55308. - rm -f a.out a.exe
  55309. -else
  55310. - echo "libtool.m4: error: problem compiling $1 test program"
  55311. -fi
  55312. + osf3* | osf4* | osf5*)
  55313. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55314. + # All OSF/1 code is PIC.
  55315. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  55316. + ;;
  55317. -$rm -f confest.$objext
  55318. + rdos*)
  55319. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  55320. + ;;
  55321. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  55322. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  55323. -esac
  55324. -])# AC_LIBTOOL_POSTDEP_PREDEP
  55325. + solaris*)
  55326. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55327. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55328. + case $cc_basename in
  55329. + f77* | f90* | f95*)
  55330. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  55331. + *)
  55332. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  55333. + esac
  55334. + ;;
  55335. -# AC_LIBTOOL_LANG_F77_CONFIG
  55336. -# ------------------------
  55337. -# Ensure that the configuration vars for the C compiler are
  55338. -# suitably defined. Those variables are subsequently used by
  55339. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  55340. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  55341. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  55342. -[AC_REQUIRE([AC_PROG_F77])
  55343. -AC_LANG_PUSH(Fortran 77)
  55344. + sunos4*)
  55345. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  55346. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  55347. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55348. + ;;
  55349. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  55350. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  55351. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  55352. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  55353. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  55354. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  55355. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  55356. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  55357. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  55358. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  55359. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  55360. -_LT_AC_TAGVAR(module_cmds, $1)=
  55361. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  55362. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  55363. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  55364. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  55365. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  55366. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  55367. + sysv4 | sysv4.2uw2* | sysv4.3*)
  55368. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55369. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55370. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55371. + ;;
  55372. -# Source file extension for f77 test sources.
  55373. -ac_ext=f
  55374. + sysv4*MP*)
  55375. + if test -d /usr/nec ;then
  55376. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  55377. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55378. + fi
  55379. + ;;
  55380. -# Object file extension for compiled f77 test sources.
  55381. -objext=o
  55382. -_LT_AC_TAGVAR(objext, $1)=$objext
  55383. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  55384. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55385. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  55386. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55387. + ;;
  55388. -# Code to be used in simple compile tests
  55389. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  55390. + unicos*)
  55391. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  55392. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  55393. + ;;
  55394. -# Code to be used in simple link tests
  55395. -lt_simple_link_test_code=" program t\n end\n"
  55396. + uts4*)
  55397. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  55398. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  55399. + ;;
  55400. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  55401. -_LT_AC_SYS_COMPILER
  55402. + *)
  55403. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  55404. + ;;
  55405. + esac
  55406. + fi
  55407. +])
  55408. +case $host_os in
  55409. + # For platforms which do not support PIC, -DPIC is meaningless:
  55410. + *djgpp*)
  55411. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  55412. + ;;
  55413. + *)
  55414. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  55415. + ;;
  55416. +esac
  55417. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  55418. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  55419. + [How to pass a linker flag through the compiler])
  55420. -# Allow CC to be a program name with arguments.
  55421. -lt_save_CC="$CC"
  55422. -CC=${F77-"f77"}
  55423. -compiler=$CC
  55424. -_LT_AC_TAGVAR(compiler, $1)=$CC
  55425. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  55426. +#
  55427. +# Check to make sure the PIC flag actually works.
  55428. +#
  55429. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  55430. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  55431. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  55432. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  55433. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  55434. + "" | " "*) ;;
  55435. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  55436. + esac],
  55437. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  55438. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  55439. +fi
  55440. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  55441. + [Additional compiler flags for building library objects])
  55442. -AC_MSG_CHECKING([if libtool supports shared libraries])
  55443. -AC_MSG_RESULT([$can_build_shared])
  55444. +#
  55445. +# Check to make sure the static flag actually works.
  55446. +#
  55447. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  55448. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  55449. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  55450. + $lt_tmp_static_flag,
  55451. + [],
  55452. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  55453. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  55454. + [Compiler flag to prevent dynamic linking])
  55455. +])# _LT_COMPILER_PIC
  55456. -AC_MSG_CHECKING([whether to build shared libraries])
  55457. -test "$can_build_shared" = "no" && enable_shared=no
  55458. -# On AIX, shared libraries and static libraries use the same namespace, and
  55459. -# are all built from PIC.
  55460. -case "$host_os" in
  55461. -aix3*)
  55462. - test "$enable_shared" = yes && enable_static=no
  55463. - if test -n "$RANLIB"; then
  55464. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  55465. - postinstall_cmds='$RANLIB $lib'
  55466. - fi
  55467. +# _LT_LINKER_SHLIBS([TAGNAME])
  55468. +# ----------------------------
  55469. +# See if the linker supports building shared libraries.
  55470. +m4_defun([_LT_LINKER_SHLIBS],
  55471. +[AC_REQUIRE([LT_PATH_LD])dnl
  55472. +AC_REQUIRE([LT_PATH_NM])dnl
  55473. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  55474. +m4_require([_LT_DECL_EGREP])dnl
  55475. +m4_require([_LT_DECL_SED])dnl
  55476. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  55477. +m4_require([_LT_TAG_COMPILER])dnl
  55478. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  55479. +m4_if([$1], [CXX], [
  55480. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  55481. + case $host_os in
  55482. + aix[[4-9]]*)
  55483. + # If we're using GNU nm, then we don't want the "-C" option.
  55484. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  55485. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  55486. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  55487. + else
  55488. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  55489. + fi
  55490. + ;;
  55491. + pw32*)
  55492. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  55493. ;;
  55494. -aix4* | aix5*)
  55495. - test "$enable_shared" = yes && enable_static=no
  55496. + cygwin* | mingw* | cegcc*)
  55497. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  55498. ;;
  55499. -esac
  55500. -AC_MSG_RESULT([$enable_shared])
  55501. -
  55502. -AC_MSG_CHECKING([whether to build static libraries])
  55503. -# Make sure either enable_shared or enable_static is yes.
  55504. -test "$enable_shared" = yes || enable_static=yes
  55505. -AC_MSG_RESULT([$enable_static])
  55506. -
  55507. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  55508. -
  55509. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  55510. -_LT_AC_TAGVAR(LD, $1)="$LD"
  55511. + linux* | k*bsd*-gnu)
  55512. + _LT_TAGVAR(link_all_deplibs, $1)=no
  55513. + ;;
  55514. + *)
  55515. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  55516. + ;;
  55517. + esac
  55518. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  55519. +], [
  55520. + runpath_var=
  55521. + _LT_TAGVAR(allow_undefined_flag, $1)=
  55522. + _LT_TAGVAR(always_export_symbols, $1)=no
  55523. + _LT_TAGVAR(archive_cmds, $1)=
  55524. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  55525. + _LT_TAGVAR(compiler_needs_object, $1)=no
  55526. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  55527. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  55528. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  55529. + _LT_TAGVAR(hardcode_automatic, $1)=no
  55530. + _LT_TAGVAR(hardcode_direct, $1)=no
  55531. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  55532. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  55533. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  55534. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  55535. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  55536. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  55537. + _LT_TAGVAR(inherit_rpath, $1)=no
  55538. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  55539. + _LT_TAGVAR(module_cmds, $1)=
  55540. + _LT_TAGVAR(module_expsym_cmds, $1)=
  55541. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  55542. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  55543. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  55544. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  55545. + # include_expsyms should be a list of space-separated symbols to be *always*
  55546. + # included in the symbol list
  55547. + _LT_TAGVAR(include_expsyms, $1)=
  55548. + # exclude_expsyms can be an extended regexp of symbols to exclude
  55549. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  55550. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  55551. + # as well as any symbol that contains `d'.
  55552. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  55553. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  55554. + # platforms (ab)use it in PIC code, but their linkers get confused if
  55555. + # the symbol is explicitly referenced. Since portable code cannot
  55556. + # rely on this symbol name, it's probably fine to never include it in
  55557. + # preloaded symbol tables.
  55558. + # Exclude shared library initialization/finalization symbols.
  55559. +dnl Note also adjust exclude_expsyms for C++ above.
  55560. + extract_expsyms_cmds=
  55561. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  55562. -AC_LIBTOOL_PROG_CC_C_O($1)
  55563. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  55564. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  55565. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  55566. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  55567. -AC_LIBTOOL_SYS_LIB_STRIP
  55568. + case $host_os in
  55569. + cygwin* | mingw* | pw32* | cegcc*)
  55570. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  55571. + # When not using gcc, we currently assume that we are using
  55572. + # Microsoft Visual C++.
  55573. + if test "$GCC" != yes; then
  55574. + with_gnu_ld=no
  55575. + fi
  55576. + ;;
  55577. + interix*)
  55578. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  55579. + with_gnu_ld=yes
  55580. + ;;
  55581. + openbsd*)
  55582. + with_gnu_ld=no
  55583. + ;;
  55584. + linux* | k*bsd*-gnu)
  55585. + _LT_TAGVAR(link_all_deplibs, $1)=no
  55586. + ;;
  55587. + esac
  55588. + _LT_TAGVAR(ld_shlibs, $1)=yes
  55589. + if test "$with_gnu_ld" = yes; then
  55590. + # If archive_cmds runs LD, not CC, wlarc should be empty
  55591. + wlarc='${wl}'
  55592. -AC_LIBTOOL_CONFIG($1)
  55593. + # Set some defaults for GNU ld with shared library support. These
  55594. + # are reset later if shared libraries are not supported. Putting them
  55595. + # here allows them to be overridden if necessary.
  55596. + runpath_var=LD_RUN_PATH
  55597. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  55598. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  55599. + # ancient GNU ld didn't support --whole-archive et. al.
  55600. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  55601. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  55602. + else
  55603. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  55604. + fi
  55605. + supports_anon_versioning=no
  55606. + case `$LD -v 2>&1` in
  55607. + *GNU\ gold*) supports_anon_versioning=yes ;;
  55608. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  55609. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  55610. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  55611. + *\ 2.11.*) ;; # other 2.11 versions
  55612. + *) supports_anon_versioning=yes ;;
  55613. + esac
  55614. -AC_LANG_POP
  55615. -CC="$lt_save_CC"
  55616. -])# AC_LIBTOOL_LANG_F77_CONFIG
  55617. + # See if GNU ld supports shared libraries.
  55618. + case $host_os in
  55619. + aix[[3-9]]*)
  55620. + # On AIX/PPC, the GNU linker is very broken
  55621. + if test "$host_cpu" != ia64; then
  55622. + _LT_TAGVAR(ld_shlibs, $1)=no
  55623. + cat <<_LT_EOF 1>&2
  55624. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  55625. +*** to be unable to reliably create shared libraries on AIX.
  55626. +*** Therefore, libtool is disabling shared libraries support. If you
  55627. +*** really care for shared libraries, you may want to modify your PATH
  55628. +*** so that a non-GNU linker is found, and then restart.
  55629. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  55630. -# --------------------------
  55631. -# Ensure that the configuration vars for the C compiler are
  55632. -# suitably defined. Those variables are subsequently used by
  55633. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  55634. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  55635. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  55636. -[AC_LANG_SAVE
  55637. +_LT_EOF
  55638. + fi
  55639. + ;;
  55640. -# Source file extension for Java test sources.
  55641. -ac_ext=java
  55642. + amigaos*)
  55643. + case $host_cpu in
  55644. + powerpc)
  55645. + # see comment about AmigaOS4 .so support
  55646. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55647. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  55648. + ;;
  55649. + m68k)
  55650. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  55651. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  55652. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  55653. + ;;
  55654. + esac
  55655. + ;;
  55656. -# Object file extension for compiled Java test sources.
  55657. -objext=o
  55658. -_LT_AC_TAGVAR(objext, $1)=$objext
  55659. + beos*)
  55660. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  55661. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  55662. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  55663. + # support --undefined. This deserves some investigation. FIXME
  55664. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55665. + else
  55666. + _LT_TAGVAR(ld_shlibs, $1)=no
  55667. + fi
  55668. + ;;
  55669. -# Code to be used in simple compile tests
  55670. -lt_simple_compile_test_code="class foo {}\n"
  55671. -
  55672. -# Code to be used in simple link tests
  55673. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  55674. -
  55675. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  55676. -_LT_AC_SYS_COMPILER
  55677. -
  55678. -# Allow CC to be a program name with arguments.
  55679. -lt_save_CC="$CC"
  55680. -CC=${GCJ-"gcj"}
  55681. -compiler=$CC
  55682. -_LT_AC_TAGVAR(compiler, $1)=$CC
  55683. -
  55684. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  55685. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  55686. -
  55687. -## CAVEAT EMPTOR:
  55688. -## There is no encapsulation within the following macros, do not change
  55689. -## the running order or otherwise move them around unless you know exactly
  55690. -## what you are doing...
  55691. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  55692. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  55693. -AC_LIBTOOL_PROG_CC_C_O($1)
  55694. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  55695. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  55696. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  55697. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  55698. -AC_LIBTOOL_SYS_LIB_STRIP
  55699. -AC_LIBTOOL_DLOPEN_SELF($1)
  55700. -
  55701. -AC_LIBTOOL_CONFIG($1)
  55702. -
  55703. -AC_LANG_RESTORE
  55704. -CC="$lt_save_CC"
  55705. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  55706. + cygwin* | mingw* | pw32* | cegcc*)
  55707. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  55708. + # as there is no search path for DLLs.
  55709. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  55710. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  55711. + _LT_TAGVAR(always_export_symbols, $1)=no
  55712. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  55713. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  55714. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  55715. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  55716. + # If the export-symbols file already is a .def file (1st line
  55717. + # is EXPORTS), use it as is; otherwise, prepend...
  55718. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  55719. + cp $export_symbols $output_objdir/$soname.def;
  55720. + else
  55721. + echo EXPORTS > $output_objdir/$soname.def;
  55722. + cat $export_symbols >> $output_objdir/$soname.def;
  55723. + fi~
  55724. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  55725. + else
  55726. + _LT_TAGVAR(ld_shlibs, $1)=no
  55727. + fi
  55728. + ;;
  55729. -# AC_LIBTOOL_LANG_RC_CONFIG
  55730. -# --------------------------
  55731. -# Ensure that the configuration vars for the Windows resource compiler are
  55732. -# suitably defined. Those variables are subsequently used by
  55733. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  55734. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  55735. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  55736. -[AC_LANG_SAVE
  55737. + interix[[3-9]]*)
  55738. + _LT_TAGVAR(hardcode_direct, $1)=no
  55739. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  55740. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  55741. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  55742. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  55743. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  55744. + # default) and relocated if they conflict, which is a slow very memory
  55745. + # consuming and fragmenting process. To avoid this, we pick a random,
  55746. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  55747. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  55748. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  55749. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  55750. + ;;
  55751. +
  55752. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  55753. + tmp_diet=no
  55754. + if test "$host_os" = linux-dietlibc; then
  55755. + case $cc_basename in
  55756. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  55757. + esac
  55758. + fi
  55759. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  55760. + && test "$tmp_diet" = no
  55761. + then
  55762. + tmp_addflag=
  55763. + tmp_sharedflag='-shared'
  55764. + case $cc_basename,$host_cpu in
  55765. + pgcc*) # Portland Group C compiler
  55766. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  55767. + tmp_addflag=' $pic_flag'
  55768. + ;;
  55769. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  55770. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  55771. + tmp_addflag=' $pic_flag -Mnomain' ;;
  55772. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  55773. + tmp_addflag=' -i_dynamic' ;;
  55774. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  55775. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  55776. + ifc* | ifort*) # Intel Fortran compiler
  55777. + tmp_addflag=' -nofor_main' ;;
  55778. + lf95*) # Lahey Fortran 8.1
  55779. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  55780. + tmp_sharedflag='--shared' ;;
  55781. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  55782. + tmp_sharedflag='-qmkshrobj'
  55783. + tmp_addflag= ;;
  55784. + esac
  55785. + case `$CC -V 2>&1 | sed 5q` in
  55786. + *Sun\ C*) # Sun C 5.9
  55787. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  55788. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  55789. + tmp_sharedflag='-G' ;;
  55790. + *Sun\ F*) # Sun Fortran 8.3
  55791. + tmp_sharedflag='-G' ;;
  55792. + esac
  55793. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55794. -# Source file extension for RC test sources.
  55795. -ac_ext=rc
  55796. + if test "x$supports_anon_versioning" = xyes; then
  55797. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  55798. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  55799. + echo "local: *; };" >> $output_objdir/$libname.ver~
  55800. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  55801. + fi
  55802. -# Object file extension for compiled RC test sources.
  55803. -objext=o
  55804. -_LT_AC_TAGVAR(objext, $1)=$objext
  55805. + case $cc_basename in
  55806. + xlf*)
  55807. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  55808. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  55809. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  55810. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  55811. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  55812. + if test "x$supports_anon_versioning" = xyes; then
  55813. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  55814. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  55815. + echo "local: *; };" >> $output_objdir/$libname.ver~
  55816. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  55817. + fi
  55818. + ;;
  55819. + esac
  55820. + else
  55821. + _LT_TAGVAR(ld_shlibs, $1)=no
  55822. + fi
  55823. + ;;
  55824. -# Code to be used in simple compile tests
  55825. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  55826. + netbsd* | netbsdelf*-gnu)
  55827. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  55828. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  55829. + wlarc=
  55830. + else
  55831. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55832. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  55833. + fi
  55834. + ;;
  55835. -# Code to be used in simple link tests
  55836. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  55837. + solaris*)
  55838. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  55839. + _LT_TAGVAR(ld_shlibs, $1)=no
  55840. + cat <<_LT_EOF 1>&2
  55841. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  55842. -_LT_AC_SYS_COMPILER
  55843. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  55844. +*** create shared libraries on Solaris systems. Therefore, libtool
  55845. +*** is disabling shared libraries support. We urge you to upgrade GNU
  55846. +*** binutils to release 2.9.1 or newer. Another option is to modify
  55847. +*** your PATH or compiler configuration so that the native linker is
  55848. +*** used, and then restart.
  55849. -# Allow CC to be a program name with arguments.
  55850. -lt_save_CC="$CC"
  55851. -CC=${RC-"windres"}
  55852. -compiler=$CC
  55853. -_LT_AC_TAGVAR(compiler, $1)=$CC
  55854. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  55855. +_LT_EOF
  55856. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  55857. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55858. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  55859. + else
  55860. + _LT_TAGVAR(ld_shlibs, $1)=no
  55861. + fi
  55862. + ;;
  55863. -AC_LIBTOOL_CONFIG($1)
  55864. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  55865. + case `$LD -v 2>&1` in
  55866. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  55867. + _LT_TAGVAR(ld_shlibs, $1)=no
  55868. + cat <<_LT_EOF 1>&2
  55869. -AC_LANG_RESTORE
  55870. -CC="$lt_save_CC"
  55871. -])# AC_LIBTOOL_LANG_RC_CONFIG
  55872. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  55873. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  55874. +*** is disabling shared libraries support. We urge you to upgrade GNU
  55875. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  55876. +*** your PATH or compiler configuration so that the native linker is
  55877. +*** used, and then restart.
  55878. +_LT_EOF
  55879. + ;;
  55880. + *)
  55881. + # For security reasons, it is highly recommended that you always
  55882. + # use absolute paths for naming shared libraries, and exclude the
  55883. + # DT_RUNPATH tag from executables and libraries. But doing so
  55884. + # requires that you compile everything twice, which is a pain.
  55885. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  55886. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  55887. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55888. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  55889. + else
  55890. + _LT_TAGVAR(ld_shlibs, $1)=no
  55891. + fi
  55892. + ;;
  55893. + esac
  55894. + ;;
  55895. -# AC_LIBTOOL_CONFIG([TAGNAME])
  55896. -# ----------------------------
  55897. -# If TAGNAME is not passed, then create an initial libtool script
  55898. -# with a default configuration from the untagged config vars. Otherwise
  55899. -# add code to config.status for appending the configuration named by
  55900. -# TAGNAME from the matching tagged config vars.
  55901. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  55902. -[# The else clause should only fire when bootstrapping the
  55903. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  55904. -# with your package, and you will get complaints that there are
  55905. -# no rules to generate ltmain.sh.
  55906. -if test -f "$ltmain"; then
  55907. - # See if we are running on zsh, and set the options which allow our commands through
  55908. - # without removal of \ escapes.
  55909. - if test -n "${ZSH_VERSION+set}" ; then
  55910. - setopt NO_GLOB_SUBST
  55911. - fi
  55912. - # Now quote all the things that may contain metacharacters while being
  55913. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  55914. - # variables and quote the copies for generation of the libtool script.
  55915. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  55916. - SED SHELL STRIP \
  55917. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  55918. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  55919. - deplibs_check_method reload_flag reload_cmds need_locks \
  55920. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  55921. - lt_cv_sys_global_symbol_to_c_name_address \
  55922. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  55923. - old_postinstall_cmds old_postuninstall_cmds \
  55924. - _LT_AC_TAGVAR(compiler, $1) \
  55925. - _LT_AC_TAGVAR(CC, $1) \
  55926. - _LT_AC_TAGVAR(LD, $1) \
  55927. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  55928. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  55929. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  55930. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  55931. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  55932. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  55933. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  55934. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  55935. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  55936. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  55937. - _LT_AC_TAGVAR(predep_objects, $1) \
  55938. - _LT_AC_TAGVAR(postdep_objects, $1) \
  55939. - _LT_AC_TAGVAR(predeps, $1) \
  55940. - _LT_AC_TAGVAR(postdeps, $1) \
  55941. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  55942. - _LT_AC_TAGVAR(archive_cmds, $1) \
  55943. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  55944. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  55945. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  55946. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  55947. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  55948. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  55949. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  55950. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  55951. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  55952. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  55953. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  55954. - _LT_AC_TAGVAR(module_cmds, $1) \
  55955. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  55956. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  55957. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  55958. - _LT_AC_TAGVAR(include_expsyms, $1); do
  55959. -
  55960. - case $var in
  55961. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  55962. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  55963. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  55964. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  55965. - _LT_AC_TAGVAR(module_cmds, $1) | \
  55966. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  55967. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  55968. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  55969. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  55970. - postinstall_cmds | postuninstall_cmds | \
  55971. - old_postinstall_cmds | old_postuninstall_cmds | \
  55972. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  55973. - # Double-quote double-evaled strings.
  55974. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  55975. + sunos4*)
  55976. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  55977. + wlarc=
  55978. + _LT_TAGVAR(hardcode_direct, $1)=yes
  55979. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  55980. ;;
  55981. +
  55982. *)
  55983. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  55984. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  55985. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  55986. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  55987. + else
  55988. + _LT_TAGVAR(ld_shlibs, $1)=no
  55989. + fi
  55990. ;;
  55991. esac
  55992. - done
  55993. -
  55994. - case $lt_echo in
  55995. - *'\[$]0 --fallback-echo"')
  55996. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  55997. - ;;
  55998. - esac
  55999. -
  56000. -ifelse([$1], [],
  56001. - [cfgfile="${ofile}T"
  56002. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  56003. - $rm -f "$cfgfile"
  56004. - AC_MSG_NOTICE([creating $ofile])],
  56005. - [cfgfile="$ofile"])
  56006. -
  56007. - cat <<__EOF__ >> "$cfgfile"
  56008. -ifelse([$1], [],
  56009. -[#! $SHELL
  56010. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  56011. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  56012. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  56013. -#
  56014. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  56015. -# Free Software Foundation, Inc.
  56016. -#
  56017. -# This file is part of GNU Libtool:
  56018. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  56019. -#
  56020. -# This program is free software; you can redistribute it and/or modify
  56021. -# it under the terms of the GNU General Public License as published by
  56022. -# the Free Software Foundation; either version 2 of the License, or
  56023. -# (at your option) any later version.
  56024. -#
  56025. -# This program is distributed in the hope that it will be useful, but
  56026. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  56027. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  56028. -# General Public License for more details.
  56029. -#
  56030. -# You should have received a copy of the GNU General Public License
  56031. -# along with this program; if not, write to the Free Software
  56032. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  56033. -#
  56034. -# As a special exception to the GNU General Public License, if you
  56035. -# distribute this file as part of a program that contains a
  56036. -# configuration script generated by Autoconf, you may include it under
  56037. -# the same distribution terms that you use for the rest of that program.
  56038. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  56039. + runpath_var=
  56040. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  56041. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  56042. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  56043. + fi
  56044. + else
  56045. + # PORTME fill in a description of your system's linker (not GNU ld)
  56046. + case $host_os in
  56047. + aix3*)
  56048. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  56049. + _LT_TAGVAR(always_export_symbols, $1)=yes
  56050. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  56051. + # Note: this linker hardcodes the directories in LIBPATH if there
  56052. + # are no directories specified by -L.
  56053. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56054. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  56055. + # Neither direct hardcoding nor static linking is supported with a
  56056. + # broken collect2.
  56057. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  56058. + fi
  56059. + ;;
  56060. -# A sed program that does not truncate output.
  56061. -SED=$lt_SED
  56062. + aix[[4-9]]*)
  56063. + if test "$host_cpu" = ia64; then
  56064. + # On IA64, the linker does run time linking by default, so we don't
  56065. + # have to do anything special.
  56066. + aix_use_runtimelinking=no
  56067. + exp_sym_flag='-Bexport'
  56068. + no_entry_flag=""
  56069. + else
  56070. + # If we're using GNU nm, then we don't want the "-C" option.
  56071. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  56072. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  56073. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  56074. + else
  56075. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  56076. + fi
  56077. + aix_use_runtimelinking=no
  56078. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  56079. -Xsed="$SED -e s/^X//"
  56080. + # Test if we are trying to use run time linking or normal
  56081. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  56082. + # need to do runtime linking.
  56083. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  56084. + for ld_flag in $LDFLAGS; do
  56085. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  56086. + aix_use_runtimelinking=yes
  56087. + break
  56088. + fi
  56089. + done
  56090. + ;;
  56091. + esac
  56092. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  56093. -# if CDPATH is set.
  56094. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  56095. + exp_sym_flag='-bexport'
  56096. + no_entry_flag='-bnoentry'
  56097. + fi
  56098. -# The names of the tagged configurations supported by this script.
  56099. -available_tags=
  56100. + # When large executables or shared objects are built, AIX ld can
  56101. + # have problems creating the table of contents. If linking a library
  56102. + # or program results in "error TOC overflow" add -mminimal-toc to
  56103. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  56104. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  56105. -# ### BEGIN LIBTOOL CONFIG],
  56106. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  56107. + _LT_TAGVAR(archive_cmds, $1)=''
  56108. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56109. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  56110. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  56111. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56112. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  56113. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  56114. + if test "$GCC" = yes; then
  56115. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  56116. + # We only want to do this on AIX 4.2 and lower, the check
  56117. + # below for broken collect2 doesn't work under 4.3+
  56118. + collect2name=`${CC} -print-prog-name=collect2`
  56119. + if test -f "$collect2name" &&
  56120. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  56121. + then
  56122. + # We have reworked collect2
  56123. + :
  56124. + else
  56125. + # We have old collect2
  56126. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  56127. + # It fails to find uninstalled libraries when the uninstalled
  56128. + # path is not listed in the libpath. Setting hardcode_minus_L
  56129. + # to unsupported forces relinking
  56130. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56131. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  56132. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  56133. + fi
  56134. + ;;
  56135. + esac
  56136. + shared_flag='-shared'
  56137. + if test "$aix_use_runtimelinking" = yes; then
  56138. + shared_flag="$shared_flag "'${wl}-G'
  56139. + fi
  56140. + _LT_TAGVAR(link_all_deplibs, $1)=no
  56141. + else
  56142. + # not using gcc
  56143. + if test "$host_cpu" = ia64; then
  56144. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  56145. + # chokes on -Wl,-G. The following line is correct:
  56146. + shared_flag='-G'
  56147. + else
  56148. + if test "$aix_use_runtimelinking" = yes; then
  56149. + shared_flag='${wl}-G'
  56150. + else
  56151. + shared_flag='${wl}-bM:SRE'
  56152. + fi
  56153. + fi
  56154. + fi
  56155. -# Shell to use when invoking shell scripts.
  56156. -SHELL=$lt_SHELL
  56157. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  56158. + # It seems that -bexpall does not export symbols beginning with
  56159. + # underscore (_), so it is better to generate a list of symbols to export.
  56160. + _LT_TAGVAR(always_export_symbols, $1)=yes
  56161. + if test "$aix_use_runtimelinking" = yes; then
  56162. + # Warning - without using the other runtime loading flags (-brtl),
  56163. + # -berok will link without error, but may produce a broken library.
  56164. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  56165. + # Determine the default libpath from the value encoded in an
  56166. + # empty executable.
  56167. + _LT_SYS_MODULE_PATH_AIX
  56168. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  56169. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  56170. + else
  56171. + if test "$host_cpu" = ia64; then
  56172. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  56173. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  56174. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  56175. + else
  56176. + # Determine the default libpath from the value encoded in an
  56177. + # empty executable.
  56178. + _LT_SYS_MODULE_PATH_AIX
  56179. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  56180. + # Warning - without using the other run time loading flags,
  56181. + # -berok will link without error, but may produce a broken library.
  56182. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  56183. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  56184. + # Exported symbols can be pulled into shared objects from archives
  56185. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  56186. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  56187. + # This is similar to how AIX traditionally builds its shared libraries.
  56188. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  56189. + fi
  56190. + fi
  56191. + ;;
  56192. -# Whether or not to build shared libraries.
  56193. -build_libtool_libs=$enable_shared
  56194. + amigaos*)
  56195. + case $host_cpu in
  56196. + powerpc)
  56197. + # see comment about AmigaOS4 .so support
  56198. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  56199. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  56200. + ;;
  56201. + m68k)
  56202. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  56203. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  56204. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56205. + ;;
  56206. + esac
  56207. + ;;
  56208. -# Whether or not to build static libraries.
  56209. -build_old_libs=$enable_static
  56210. + bsdi[[45]]*)
  56211. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  56212. + ;;
  56213. -# Whether or not to add -lc for building shared libraries.
  56214. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  56215. + cygwin* | mingw* | pw32* | cegcc*)
  56216. + # When not using gcc, we currently assume that we are using
  56217. + # Microsoft Visual C++.
  56218. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  56219. + # no search path for DLLs.
  56220. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  56221. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  56222. + # Tell ltmain to make .lib files, not .a files.
  56223. + libext=lib
  56224. + # Tell ltmain to make .dll files, not .so files.
  56225. + shrext_cmds=".dll"
  56226. + # FIXME: Setting linknames here is a bad hack.
  56227. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  56228. + # The linker will automatically build a .lib file if we build a DLL.
  56229. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  56230. + # FIXME: Should let the user specify the lib program.
  56231. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  56232. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  56233. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  56234. + ;;
  56235. -# Whether or not to disallow shared libs when runtime libs are static
  56236. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  56237. + darwin* | rhapsody*)
  56238. + _LT_DARWIN_LINKER_FEATURES($1)
  56239. + ;;
  56240. -# Whether or not to optimize for fast installation.
  56241. -fast_install=$enable_fast_install
  56242. + dgux*)
  56243. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56244. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  56245. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56246. + ;;
  56247. -# The host system.
  56248. -host_alias=$host_alias
  56249. -host=$host
  56250. + freebsd1*)
  56251. + _LT_TAGVAR(ld_shlibs, $1)=no
  56252. + ;;
  56253. -# An echo program that does not interpret backslashes.
  56254. -echo=$lt_echo
  56255. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  56256. + # support. Future versions do this automatically, but an explicit c++rt0.o
  56257. + # does not break anything, and helps significantly (at the cost of a little
  56258. + # extra space).
  56259. + freebsd2.2*)
  56260. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  56261. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56262. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56263. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56264. + ;;
  56265. -# The archiver.
  56266. -AR=$lt_AR
  56267. -AR_FLAGS=$lt_AR_FLAGS
  56268. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  56269. + freebsd2*)
  56270. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  56271. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56272. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56273. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56274. + ;;
  56275. -# A C compiler.
  56276. -LTCC=$lt_LTCC
  56277. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  56278. + freebsd* | dragonfly*)
  56279. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  56280. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56281. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56282. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56283. + ;;
  56284. -# A language-specific compiler.
  56285. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  56286. + hpux9*)
  56287. + if test "$GCC" = yes; then
  56288. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  56289. + else
  56290. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  56291. + fi
  56292. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  56293. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56294. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56295. -# Is the compiler the GNU C compiler?
  56296. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  56297. + # hardcode_minus_L: Not really in the search PATH,
  56298. + # but as the default location of the library.
  56299. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56300. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  56301. + ;;
  56302. -# An ERE matcher.
  56303. -EGREP=$lt_EGREP
  56304. + hpux10*)
  56305. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  56306. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  56307. + else
  56308. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  56309. + fi
  56310. + if test "$with_gnu_ld" = no; then
  56311. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  56312. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  56313. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56314. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56315. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  56316. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  56317. + # hardcode_minus_L: Not really in the search PATH,
  56318. + # but as the default location of the library.
  56319. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56320. + fi
  56321. + ;;
  56322. -# The linker used to build libraries.
  56323. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  56324. + hpux11*)
  56325. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  56326. + case $host_cpu in
  56327. + hppa*64*)
  56328. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  56329. + ;;
  56330. + ia64*)
  56331. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  56332. + ;;
  56333. + *)
  56334. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  56335. + ;;
  56336. + esac
  56337. + else
  56338. + case $host_cpu in
  56339. + hppa*64*)
  56340. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  56341. + ;;
  56342. + ia64*)
  56343. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  56344. + ;;
  56345. + *)
  56346. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  56347. + ;;
  56348. + esac
  56349. + fi
  56350. + if test "$with_gnu_ld" = no; then
  56351. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  56352. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56353. -# Whether we need hard or soft links.
  56354. -LN_S=$lt_LN_S
  56355. -
  56356. -# A BSD-compatible nm program.
  56357. -NM=$lt_NM
  56358. -
  56359. -# A symbol stripping program
  56360. -STRIP=$lt_STRIP
  56361. -
  56362. -# Used to examine libraries when file_magic_cmd begins "file"
  56363. -MAGIC_CMD=$MAGIC_CMD
  56364. + case $host_cpu in
  56365. + hppa*64*|ia64*)
  56366. + _LT_TAGVAR(hardcode_direct, $1)=no
  56367. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56368. + ;;
  56369. + *)
  56370. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56371. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  56372. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  56373. -# Used on cygwin: DLL creation program.
  56374. -DLLTOOL="$DLLTOOL"
  56375. + # hardcode_minus_L: Not really in the search PATH,
  56376. + # but as the default location of the library.
  56377. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56378. + ;;
  56379. + esac
  56380. + fi
  56381. + ;;
  56382. -# Used on cygwin: object dumper.
  56383. -OBJDUMP="$OBJDUMP"
  56384. + irix5* | irix6* | nonstopux*)
  56385. + if test "$GCC" = yes; then
  56386. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  56387. + # Try to use the -exported_symbol ld option, if it does not
  56388. + # work, assume that -exports_file does not work either and
  56389. + # implicitly export all symbols.
  56390. + save_LDFLAGS="$LDFLAGS"
  56391. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  56392. + AC_LINK_IFELSE(int foo(void) {},
  56393. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  56394. + )
  56395. + LDFLAGS="$save_LDFLAGS"
  56396. + else
  56397. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  56398. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  56399. + fi
  56400. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  56401. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56402. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56403. + _LT_TAGVAR(inherit_rpath, $1)=yes
  56404. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56405. + ;;
  56406. -# Used on cygwin: assembler.
  56407. -AS="$AS"
  56408. + netbsd* | netbsdelf*-gnu)
  56409. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  56410. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  56411. + else
  56412. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  56413. + fi
  56414. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56415. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56416. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56417. + ;;
  56418. -# The name of the directory that contains temporary libtool files.
  56419. -objdir=$objdir
  56420. + newsos6)
  56421. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56422. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56423. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56424. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56425. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56426. + ;;
  56427. -# How to create reloadable object files.
  56428. -reload_flag=$lt_reload_flag
  56429. -reload_cmds=$lt_reload_cmds
  56430. + *nto* | *qnx*)
  56431. + ;;
  56432. -# How to pass a linker flag through the compiler.
  56433. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  56434. + openbsd*)
  56435. + if test -f /usr/libexec/ld.so; then
  56436. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56437. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56438. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  56439. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  56440. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  56441. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  56442. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  56443. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  56444. + else
  56445. + case $host_os in
  56446. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  56447. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  56448. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56449. + ;;
  56450. + *)
  56451. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  56452. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  56453. + ;;
  56454. + esac
  56455. + fi
  56456. + else
  56457. + _LT_TAGVAR(ld_shlibs, $1)=no
  56458. + fi
  56459. + ;;
  56460. -# Object file suffix (normally "o").
  56461. -objext="$ac_objext"
  56462. + os2*)
  56463. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  56464. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56465. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  56466. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  56467. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  56468. + ;;
  56469. -# Old archive suffix (normally "a").
  56470. -libext="$libext"
  56471. + osf3*)
  56472. + if test "$GCC" = yes; then
  56473. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  56474. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  56475. + else
  56476. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  56477. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  56478. + fi
  56479. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  56480. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56481. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56482. + ;;
  56483. -# Shared library suffix (normally ".so").
  56484. -shrext_cmds='$shrext_cmds'
  56485. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  56486. + if test "$GCC" = yes; then
  56487. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  56488. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  56489. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  56490. + else
  56491. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  56492. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  56493. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  56494. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  56495. -# Executable file suffix (normally "").
  56496. -exeext="$exeext"
  56497. + # Both c and cxx compiler support -rpath directly
  56498. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  56499. + fi
  56500. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  56501. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  56502. + ;;
  56503. -# Additional compiler flags for building library objects.
  56504. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  56505. -pic_mode=$pic_mode
  56506. + solaris*)
  56507. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  56508. + if test "$GCC" = yes; then
  56509. + wlarc='${wl}'
  56510. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  56511. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  56512. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  56513. + else
  56514. + case `$CC -V 2>&1` in
  56515. + *"Compilers 5.0"*)
  56516. + wlarc=''
  56517. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56518. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  56519. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  56520. + ;;
  56521. + *)
  56522. + wlarc='${wl}'
  56523. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  56524. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  56525. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  56526. + ;;
  56527. + esac
  56528. + fi
  56529. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  56530. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56531. + case $host_os in
  56532. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  56533. + *)
  56534. + # The compiler driver will combine and reorder linker options,
  56535. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  56536. + # but is careful enough not to reorder.
  56537. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  56538. + if test "$GCC" = yes; then
  56539. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  56540. + else
  56541. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  56542. + fi
  56543. + ;;
  56544. + esac
  56545. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56546. + ;;
  56547. -# What is the maximum length of a command?
  56548. -max_cmd_len=$lt_cv_sys_max_cmd_len
  56549. + sunos4*)
  56550. + if test "x$host_vendor" = xsequent; then
  56551. + # Use $CC to link under sequent, because it throws in some extra .o
  56552. + # files that make .init and .fini sections work.
  56553. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  56554. + else
  56555. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  56556. + fi
  56557. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  56558. + _LT_TAGVAR(hardcode_direct, $1)=yes
  56559. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  56560. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56561. + ;;
  56562. -# Does compiler simultaneously support -c and -o options?
  56563. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  56564. + sysv4)
  56565. + case $host_vendor in
  56566. + sni)
  56567. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56568. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  56569. + ;;
  56570. + siemens)
  56571. + ## LD is ld it makes a PLAMLIB
  56572. + ## CC just makes a GrossModule.
  56573. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  56574. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  56575. + _LT_TAGVAR(hardcode_direct, $1)=no
  56576. + ;;
  56577. + motorola)
  56578. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56579. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  56580. + ;;
  56581. + esac
  56582. + runpath_var='LD_RUN_PATH'
  56583. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56584. + ;;
  56585. -# Must we lock files when doing compilation ?
  56586. -need_locks=$lt_need_locks
  56587. + sysv4.3*)
  56588. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56589. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56590. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  56591. + ;;
  56592. -# Do we need the lib prefix for modules?
  56593. -need_lib_prefix=$need_lib_prefix
  56594. + sysv4*MP*)
  56595. + if test -d /usr/nec; then
  56596. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56597. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56598. + runpath_var=LD_RUN_PATH
  56599. + hardcode_runpath_var=yes
  56600. + _LT_TAGVAR(ld_shlibs, $1)=yes
  56601. + fi
  56602. + ;;
  56603. -# Do we need a version for libraries?
  56604. -need_version=$need_version
  56605. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  56606. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  56607. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56608. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56609. + runpath_var='LD_RUN_PATH'
  56610. -# Whether dlopen is supported.
  56611. -dlopen_support=$enable_dlopen
  56612. + if test "$GCC" = yes; then
  56613. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56614. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56615. + else
  56616. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56617. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56618. + fi
  56619. + ;;
  56620. -# Whether dlopen of programs is supported.
  56621. -dlopen_self=$enable_dlopen_self
  56622. + sysv5* | sco3.2v5* | sco5v6*)
  56623. + # Note: We can NOT use -z defs as we might desire, because we do not
  56624. + # link with -lc, and that would cause any symbols used from libc to
  56625. + # always be unresolved, which means just about no library would
  56626. + # ever link correctly. If we're not using GNU ld we use -z text
  56627. + # though, which does catch some bad symbols but isn't as heavy-handed
  56628. + # as -z defs.
  56629. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  56630. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  56631. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56632. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56633. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  56634. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  56635. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  56636. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  56637. + runpath_var='LD_RUN_PATH'
  56638. -# Whether dlopen of statically linked programs is supported.
  56639. -dlopen_self_static=$enable_dlopen_self_static
  56640. + if test "$GCC" = yes; then
  56641. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56642. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56643. + else
  56644. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56645. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  56646. + fi
  56647. + ;;
  56648. -# Compiler flag to prevent dynamic linking.
  56649. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  56650. + uts4*)
  56651. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  56652. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  56653. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  56654. + ;;
  56655. -# Compiler flag to turn off builtin functions.
  56656. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  56657. + *)
  56658. + _LT_TAGVAR(ld_shlibs, $1)=no
  56659. + ;;
  56660. + esac
  56661. -# Compiler flag to allow reflexive dlopens.
  56662. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  56663. + if test x$host_vendor = xsni; then
  56664. + case $host in
  56665. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  56666. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  56667. + ;;
  56668. + esac
  56669. + fi
  56670. + fi
  56671. +])
  56672. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  56673. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  56674. -# Compiler flag to generate shared objects directly from archives.
  56675. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  56676. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  56677. -# Compiler flag to generate thread-safe objects.
  56678. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  56679. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  56680. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  56681. +_LT_DECL([], [extract_expsyms_cmds], [2],
  56682. + [The commands to extract the exported symbol list from a shared archive])
  56683. -# Library versioning type.
  56684. -version_type=$version_type
  56685. +#
  56686. +# Do we need to explicitly link libc?
  56687. +#
  56688. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  56689. +x|xyes)
  56690. + # Assume -lc should be added
  56691. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  56692. -# Format of library name prefix.
  56693. -libname_spec=$lt_libname_spec
  56694. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  56695. + case $_LT_TAGVAR(archive_cmds, $1) in
  56696. + *'~'*)
  56697. + # FIXME: we may have to deal with multi-command sequences.
  56698. + ;;
  56699. + '$CC '*)
  56700. + # Test whether the compiler implicitly links with -lc since on some
  56701. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  56702. + # to ld, don't add -lc before -lgcc.
  56703. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  56704. + $RM conftest*
  56705. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  56706. -# List of archive names. First name is the real one, the rest are links.
  56707. -# The last name is the one that the linker finds with -lNAME.
  56708. -library_names_spec=$lt_library_names_spec
  56709. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  56710. + soname=conftest
  56711. + lib=conftest
  56712. + libobjs=conftest.$ac_objext
  56713. + deplibs=
  56714. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  56715. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  56716. + compiler_flags=-v
  56717. + linker_flags=-v
  56718. + verstring=
  56719. + output_objdir=.
  56720. + libname=conftest
  56721. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  56722. + _LT_TAGVAR(allow_undefined_flag, $1)=
  56723. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  56724. + then
  56725. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56726. + else
  56727. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  56728. + fi
  56729. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  56730. + else
  56731. + cat conftest.err 1>&5
  56732. + fi
  56733. + $RM conftest*
  56734. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  56735. + ;;
  56736. + esac
  56737. + fi
  56738. + ;;
  56739. +esac
  56740. -# The coded name of the library, if different from the real name.
  56741. -soname_spec=$lt_soname_spec
  56742. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  56743. + [Whether or not to add -lc for building shared libraries])
  56744. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  56745. + [enable_shared_with_static_runtimes], [0],
  56746. + [Whether or not to disallow shared libs when runtime libs are static])
  56747. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  56748. + [Compiler flag to allow reflexive dlopens])
  56749. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  56750. + [Compiler flag to generate shared objects directly from archives])
  56751. +_LT_TAGDECL([], [compiler_needs_object], [1],
  56752. + [Whether the compiler copes with passing no objects directly])
  56753. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  56754. + [Create an old-style archive from a shared archive])
  56755. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  56756. + [Create a temporary old-style archive to link instead of a shared archive])
  56757. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  56758. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  56759. +_LT_TAGDECL([], [module_cmds], [2],
  56760. + [Commands used to build a loadable module if different from building
  56761. + a shared archive.])
  56762. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  56763. +_LT_TAGDECL([], [with_gnu_ld], [1],
  56764. + [Whether we are building with GNU ld or not])
  56765. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  56766. + [Flag that allows shared libraries with undefined symbols to be built])
  56767. +_LT_TAGDECL([], [no_undefined_flag], [1],
  56768. + [Flag that enforces no undefined symbols])
  56769. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  56770. + [Flag to hardcode $libdir into a binary during linking.
  56771. + This must work even if $libdir does not exist])
  56772. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  56773. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  56774. + during linking. This must work even if $libdir does not exist]])
  56775. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  56776. + [Whether we need a single "-rpath" flag with a separated argument])
  56777. +_LT_TAGDECL([], [hardcode_direct], [0],
  56778. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  56779. + DIR into the resulting binary])
  56780. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  56781. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  56782. + DIR into the resulting binary and the resulting library dependency is
  56783. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  56784. + library is relocated])
  56785. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  56786. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  56787. + into the resulting binary])
  56788. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  56789. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  56790. + into the resulting binary])
  56791. +_LT_TAGDECL([], [hardcode_automatic], [0],
  56792. + [Set to "yes" if building a shared library automatically hardcodes DIR
  56793. + into the library and all subsequent libraries and executables linked
  56794. + against it])
  56795. +_LT_TAGDECL([], [inherit_rpath], [0],
  56796. + [Set to yes if linker adds runtime paths of dependent libraries
  56797. + to runtime path list])
  56798. +_LT_TAGDECL([], [link_all_deplibs], [0],
  56799. + [Whether libtool must link a program against all its dependency libraries])
  56800. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  56801. + [Fix the shell variable $srcfile for the compiler])
  56802. +_LT_TAGDECL([], [always_export_symbols], [0],
  56803. + [Set to "yes" if exported symbols are required])
  56804. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  56805. + [The commands to list exported symbols])
  56806. +_LT_TAGDECL([], [exclude_expsyms], [1],
  56807. + [Symbols that should not be listed in the preloaded symbols])
  56808. +_LT_TAGDECL([], [include_expsyms], [1],
  56809. + [Symbols that must always be exported])
  56810. +_LT_TAGDECL([], [prelink_cmds], [2],
  56811. + [Commands necessary for linking programs (against libraries) with templates])
  56812. +_LT_TAGDECL([], [file_list_spec], [1],
  56813. + [Specify filename containing input files])
  56814. +dnl FIXME: Not yet implemented
  56815. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  56816. +dnl [Compiler flag to generate thread safe objects])
  56817. +])# _LT_LINKER_SHLIBS
  56818. -# Commands used to build and install an old-style archive.
  56819. -RANLIB=$lt_RANLIB
  56820. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  56821. -old_postinstall_cmds=$lt_old_postinstall_cmds
  56822. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  56823. -# Create an old-style archive from a shared archive.
  56824. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  56825. +# _LT_LANG_C_CONFIG([TAG])
  56826. +# ------------------------
  56827. +# Ensure that the configuration variables for a C compiler are suitably
  56828. +# defined. These variables are subsequently used by _LT_CONFIG to write
  56829. +# the compiler configuration to `libtool'.
  56830. +m4_defun([_LT_LANG_C_CONFIG],
  56831. +[m4_require([_LT_DECL_EGREP])dnl
  56832. +lt_save_CC="$CC"
  56833. +AC_LANG_PUSH(C)
  56834. -# Create a temporary old-style archive to link instead of a shared archive.
  56835. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  56836. +# Source file extension for C test sources.
  56837. +ac_ext=c
  56838. -# Commands used to build and install a shared archive.
  56839. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  56840. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  56841. -postinstall_cmds=$lt_postinstall_cmds
  56842. -postuninstall_cmds=$lt_postuninstall_cmds
  56843. +# Object file extension for compiled C test sources.
  56844. +objext=o
  56845. +_LT_TAGVAR(objext, $1)=$objext
  56846. -# Commands used to build a loadable module (assumed same as above if empty)
  56847. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  56848. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  56849. +# Code to be used in simple compile tests
  56850. +lt_simple_compile_test_code="int some_variable = 0;"
  56851. -# Commands to strip libraries.
  56852. -old_striplib=$lt_old_striplib
  56853. -striplib=$lt_striplib
  56854. +# Code to be used in simple link tests
  56855. +lt_simple_link_test_code='int main(){return(0);}'
  56856. -# Dependencies to place before the objects being linked to create a
  56857. -# shared library.
  56858. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  56859. +_LT_TAG_COMPILER
  56860. +# Save the default compiler, since it gets overwritten when the other
  56861. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  56862. +compiler_DEFAULT=$CC
  56863. +
  56864. +# save warnings/boilerplate of simple test code
  56865. +_LT_COMPILER_BOILERPLATE
  56866. +_LT_LINKER_BOILERPLATE
  56867. -# Dependencies to place after the objects being linked to create a
  56868. -# shared library.
  56869. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  56870. +## CAVEAT EMPTOR:
  56871. +## There is no encapsulation within the following macros, do not change
  56872. +## the running order or otherwise move them around unless you know exactly
  56873. +## what you are doing...
  56874. +if test -n "$compiler"; then
  56875. + _LT_COMPILER_NO_RTTI($1)
  56876. + _LT_COMPILER_PIC($1)
  56877. + _LT_COMPILER_C_O($1)
  56878. + _LT_COMPILER_FILE_LOCKS($1)
  56879. + _LT_LINKER_SHLIBS($1)
  56880. + _LT_SYS_DYNAMIC_LINKER($1)
  56881. + _LT_LINKER_HARDCODE_LIBPATH($1)
  56882. + LT_SYS_DLOPEN_SELF
  56883. + _LT_CMD_STRIPLIB
  56884. +
  56885. + # Report which library types will actually be built
  56886. + AC_MSG_CHECKING([if libtool supports shared libraries])
  56887. + AC_MSG_RESULT([$can_build_shared])
  56888. -# Dependencies to place before the objects being linked to create a
  56889. -# shared library.
  56890. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  56891. + AC_MSG_CHECKING([whether to build shared libraries])
  56892. + test "$can_build_shared" = "no" && enable_shared=no
  56893. -# Dependencies to place after the objects being linked to create a
  56894. -# shared library.
  56895. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  56896. + # On AIX, shared libraries and static libraries use the same namespace, and
  56897. + # are all built from PIC.
  56898. + case $host_os in
  56899. + aix3*)
  56900. + test "$enable_shared" = yes && enable_static=no
  56901. + if test -n "$RANLIB"; then
  56902. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  56903. + postinstall_cmds='$RANLIB $lib'
  56904. + fi
  56905. + ;;
  56906. -# The library search path used internally by the compiler when linking
  56907. -# a shared library.
  56908. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  56909. + aix[[4-9]]*)
  56910. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  56911. + test "$enable_shared" = yes && enable_static=no
  56912. + fi
  56913. + ;;
  56914. + esac
  56915. + AC_MSG_RESULT([$enable_shared])
  56916. -# Method to check whether dependent libraries are shared objects.
  56917. -deplibs_check_method=$lt_deplibs_check_method
  56918. + AC_MSG_CHECKING([whether to build static libraries])
  56919. + # Make sure either enable_shared or enable_static is yes.
  56920. + test "$enable_shared" = yes || enable_static=yes
  56921. + AC_MSG_RESULT([$enable_static])
  56922. -# Command to use when deplibs_check_method == file_magic.
  56923. -file_magic_cmd=$lt_file_magic_cmd
  56924. + _LT_CONFIG($1)
  56925. +fi
  56926. +AC_LANG_POP
  56927. +CC="$lt_save_CC"
  56928. +])# _LT_LANG_C_CONFIG
  56929. -# Flag that allows shared libraries with undefined symbols to be built.
  56930. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  56931. -# Flag that forces no undefined symbols.
  56932. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  56933. +# _LT_PROG_CXX
  56934. +# ------------
  56935. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  56936. +# compiler, we have our own version here.
  56937. +m4_defun([_LT_PROG_CXX],
  56938. +[
  56939. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  56940. +AC_PROG_CXX
  56941. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  56942. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  56943. + (test "X$CXX" != "Xg++"))) ; then
  56944. + AC_PROG_CXXCPP
  56945. +else
  56946. + _lt_caught_CXX_error=yes
  56947. +fi
  56948. +popdef([AC_MSG_ERROR])
  56949. +])# _LT_PROG_CXX
  56950. -# Commands used to finish a libtool library installation in a directory.
  56951. -finish_cmds=$lt_finish_cmds
  56952. +dnl aclocal-1.4 backwards compatibility:
  56953. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  56954. -# Same as above, but a single script fragment to be evaled but not shown.
  56955. -finish_eval=$lt_finish_eval
  56956. -# Take the output of nm and produce a listing of raw symbols and C names.
  56957. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  56958. +# _LT_LANG_CXX_CONFIG([TAG])
  56959. +# --------------------------
  56960. +# Ensure that the configuration variables for a C++ compiler are suitably
  56961. +# defined. These variables are subsequently used by _LT_CONFIG to write
  56962. +# the compiler configuration to `libtool'.
  56963. +m4_defun([_LT_LANG_CXX_CONFIG],
  56964. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  56965. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  56966. +m4_require([_LT_DECL_EGREP])dnl
  56967. +
  56968. +AC_LANG_PUSH(C++)
  56969. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  56970. +_LT_TAGVAR(allow_undefined_flag, $1)=
  56971. +_LT_TAGVAR(always_export_symbols, $1)=no
  56972. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  56973. +_LT_TAGVAR(compiler_needs_object, $1)=no
  56974. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  56975. +_LT_TAGVAR(hardcode_direct, $1)=no
  56976. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  56977. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  56978. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  56979. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  56980. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  56981. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  56982. +_LT_TAGVAR(hardcode_automatic, $1)=no
  56983. +_LT_TAGVAR(inherit_rpath, $1)=no
  56984. +_LT_TAGVAR(module_cmds, $1)=
  56985. +_LT_TAGVAR(module_expsym_cmds, $1)=
  56986. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  56987. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  56988. +_LT_TAGVAR(no_undefined_flag, $1)=
  56989. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  56990. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  56991. -# Transform the output of nm in a proper C declaration
  56992. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  56993. +# Source file extension for C++ test sources.
  56994. +ac_ext=cpp
  56995. -# Transform the output of nm in a C name address pair
  56996. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  56997. +# Object file extension for compiled C++ test sources.
  56998. +objext=o
  56999. +_LT_TAGVAR(objext, $1)=$objext
  57000. -# This is the shared library runtime path variable.
  57001. -runpath_var=$runpath_var
  57002. +# No sense in running all these tests if we already determined that
  57003. +# the CXX compiler isn't working. Some variables (like enable_shared)
  57004. +# are currently assumed to apply to all compilers on this platform,
  57005. +# and will be corrupted by setting them based on a non-working compiler.
  57006. +if test "$_lt_caught_CXX_error" != yes; then
  57007. + # Code to be used in simple compile tests
  57008. + lt_simple_compile_test_code="int some_variable = 0;"
  57009. +
  57010. + # Code to be used in simple link tests
  57011. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  57012. +
  57013. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  57014. + _LT_TAG_COMPILER
  57015. +
  57016. + # save warnings/boilerplate of simple test code
  57017. + _LT_COMPILER_BOILERPLATE
  57018. + _LT_LINKER_BOILERPLATE
  57019. +
  57020. + # Allow CC to be a program name with arguments.
  57021. + lt_save_CC=$CC
  57022. + lt_save_LD=$LD
  57023. + lt_save_GCC=$GCC
  57024. + GCC=$GXX
  57025. + lt_save_with_gnu_ld=$with_gnu_ld
  57026. + lt_save_path_LD=$lt_cv_path_LD
  57027. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  57028. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  57029. + else
  57030. + $as_unset lt_cv_prog_gnu_ld
  57031. + fi
  57032. + if test -n "${lt_cv_path_LDCXX+set}"; then
  57033. + lt_cv_path_LD=$lt_cv_path_LDCXX
  57034. + else
  57035. + $as_unset lt_cv_path_LD
  57036. + fi
  57037. + test -z "${LDCXX+set}" || LD=$LDCXX
  57038. + CC=${CXX-"c++"}
  57039. + compiler=$CC
  57040. + _LT_TAGVAR(compiler, $1)=$CC
  57041. + _LT_CC_BASENAME([$compiler])
  57042. +
  57043. + if test -n "$compiler"; then
  57044. + # We don't want -fno-exception when compiling C++ code, so set the
  57045. + # no_builtin_flag separately
  57046. + if test "$GXX" = yes; then
  57047. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  57048. + else
  57049. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  57050. + fi
  57051. -# This is the shared library path variable.
  57052. -shlibpath_var=$shlibpath_var
  57053. + if test "$GXX" = yes; then
  57054. + # Set up default GNU C++ configuration
  57055. -# Is shlibpath searched before the hard-coded library search path?
  57056. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  57057. + LT_PATH_LD
  57058. -# How to hardcode a shared library path into an executable.
  57059. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  57060. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  57061. + # archiving commands below assume that GNU ld is being used.
  57062. + if test "$with_gnu_ld" = yes; then
  57063. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57064. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  57065. +
  57066. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57067. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  57068. +
  57069. + # If archive_cmds runs LD, not CC, wlarc should be empty
  57070. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  57071. + # investigate it a little bit more. (MM)
  57072. + wlarc='${wl}'
  57073. +
  57074. + # ancient GNU ld didn't support --whole-archive et. al.
  57075. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  57076. + $GREP 'no-whole-archive' > /dev/null; then
  57077. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  57078. + else
  57079. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  57080. + fi
  57081. + else
  57082. + with_gnu_ld=no
  57083. + wlarc=
  57084. -# Whether we should hardcode library paths into libraries.
  57085. -hardcode_into_libs=$hardcode_into_libs
  57086. + # A generic and very simple default shared library creation
  57087. + # command for GNU C++ for the case where it uses the native
  57088. + # linker, instead of GNU ld. If possible, this setting should
  57089. + # overridden to take advantage of the native linker features on
  57090. + # the platform it is being used on.
  57091. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  57092. + fi
  57093. -# Flag to hardcode \$libdir into a binary during linking.
  57094. -# This must work even if \$libdir does not exist.
  57095. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  57096. + # Commands to make compiler produce verbose output that lists
  57097. + # what "hidden" libraries, object files and flags are used when
  57098. + # linking a shared library.
  57099. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57100. -# If ld is used when linking, flag to hardcode \$libdir into
  57101. -# a binary during linking. This must work even if \$libdir does
  57102. -# not exist.
  57103. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  57104. + else
  57105. + GXX=no
  57106. + with_gnu_ld=no
  57107. + wlarc=
  57108. + fi
  57109. -# Whether we need a single -rpath flag with a separated argument.
  57110. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  57111. + # PORTME: fill in a description of your system's C++ link characteristics
  57112. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  57113. + _LT_TAGVAR(ld_shlibs, $1)=yes
  57114. + case $host_os in
  57115. + aix3*)
  57116. + # FIXME: insert proper C++ library support
  57117. + _LT_TAGVAR(ld_shlibs, $1)=no
  57118. + ;;
  57119. + aix[[4-9]]*)
  57120. + if test "$host_cpu" = ia64; then
  57121. + # On IA64, the linker does run time linking by default, so we don't
  57122. + # have to do anything special.
  57123. + aix_use_runtimelinking=no
  57124. + exp_sym_flag='-Bexport'
  57125. + no_entry_flag=""
  57126. + else
  57127. + aix_use_runtimelinking=no
  57128. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  57129. -# resulting binary.
  57130. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  57131. + # Test if we are trying to use run time linking or normal
  57132. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  57133. + # need to do runtime linking.
  57134. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  57135. + for ld_flag in $LDFLAGS; do
  57136. + case $ld_flag in
  57137. + *-brtl*)
  57138. + aix_use_runtimelinking=yes
  57139. + break
  57140. + ;;
  57141. + esac
  57142. + done
  57143. + ;;
  57144. + esac
  57145. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  57146. -# resulting binary.
  57147. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  57148. + exp_sym_flag='-bexport'
  57149. + no_entry_flag='-bnoentry'
  57150. + fi
  57151. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  57152. -# the resulting binary.
  57153. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  57154. + # When large executables or shared objects are built, AIX ld can
  57155. + # have problems creating the table of contents. If linking a library
  57156. + # or program results in "error TOC overflow" add -mminimal-toc to
  57157. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  57158. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  57159. +
  57160. + _LT_TAGVAR(archive_cmds, $1)=''
  57161. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57162. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57163. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  57164. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  57165. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  57166. +
  57167. + if test "$GXX" = yes; then
  57168. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  57169. + # We only want to do this on AIX 4.2 and lower, the check
  57170. + # below for broken collect2 doesn't work under 4.3+
  57171. + collect2name=`${CC} -print-prog-name=collect2`
  57172. + if test -f "$collect2name" &&
  57173. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  57174. + then
  57175. + # We have reworked collect2
  57176. + :
  57177. + else
  57178. + # We have old collect2
  57179. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  57180. + # It fails to find uninstalled libraries when the uninstalled
  57181. + # path is not listed in the libpath. Setting hardcode_minus_L
  57182. + # to unsupported forces relinking
  57183. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  57184. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57185. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  57186. + fi
  57187. + esac
  57188. + shared_flag='-shared'
  57189. + if test "$aix_use_runtimelinking" = yes; then
  57190. + shared_flag="$shared_flag "'${wl}-G'
  57191. + fi
  57192. + else
  57193. + # not using gcc
  57194. + if test "$host_cpu" = ia64; then
  57195. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  57196. + # chokes on -Wl,-G. The following line is correct:
  57197. + shared_flag='-G'
  57198. + else
  57199. + if test "$aix_use_runtimelinking" = yes; then
  57200. + shared_flag='${wl}-G'
  57201. + else
  57202. + shared_flag='${wl}-bM:SRE'
  57203. + fi
  57204. + fi
  57205. + fi
  57206. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  57207. -# and all subsequent libraries and executables linked against it.
  57208. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  57209. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  57210. + # It seems that -bexpall does not export symbols beginning with
  57211. + # underscore (_), so it is better to generate a list of symbols to
  57212. + # export.
  57213. + _LT_TAGVAR(always_export_symbols, $1)=yes
  57214. + if test "$aix_use_runtimelinking" = yes; then
  57215. + # Warning - without using the other runtime loading flags (-brtl),
  57216. + # -berok will link without error, but may produce a broken library.
  57217. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  57218. + # Determine the default libpath from the value encoded in an empty
  57219. + # executable.
  57220. + _LT_SYS_MODULE_PATH_AIX
  57221. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  57222. -# Variables whose values should be saved in libtool wrapper scripts and
  57223. -# restored at relink time.
  57224. -variables_saved_for_relink="$variables_saved_for_relink"
  57225. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  57226. + else
  57227. + if test "$host_cpu" = ia64; then
  57228. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  57229. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  57230. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  57231. + else
  57232. + # Determine the default libpath from the value encoded in an
  57233. + # empty executable.
  57234. + _LT_SYS_MODULE_PATH_AIX
  57235. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  57236. + # Warning - without using the other run time loading flags,
  57237. + # -berok will link without error, but may produce a broken library.
  57238. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  57239. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  57240. + # Exported symbols can be pulled into shared objects from archives
  57241. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  57242. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  57243. + # This is similar to how AIX traditionally builds its shared
  57244. + # libraries.
  57245. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  57246. + fi
  57247. + fi
  57248. + ;;
  57249. -# Whether libtool must link a program against all its dependency libraries.
  57250. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  57251. + beos*)
  57252. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  57253. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57254. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  57255. + # support --undefined. This deserves some investigation. FIXME
  57256. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57257. + else
  57258. + _LT_TAGVAR(ld_shlibs, $1)=no
  57259. + fi
  57260. + ;;
  57261. -# Compile-time system search path for libraries
  57262. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  57263. + chorus*)
  57264. + case $cc_basename in
  57265. + *)
  57266. + # FIXME: insert proper C++ library support
  57267. + _LT_TAGVAR(ld_shlibs, $1)=no
  57268. + ;;
  57269. + esac
  57270. + ;;
  57271. -# Run-time system search path for libraries
  57272. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  57273. + cygwin* | mingw* | pw32* | cegcc*)
  57274. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  57275. + # as there is no search path for DLLs.
  57276. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  57277. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  57278. + _LT_TAGVAR(always_export_symbols, $1)=no
  57279. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  57280. +
  57281. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  57282. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  57283. + # If the export-symbols file already is a .def file (1st line
  57284. + # is EXPORTS), use it as is; otherwise, prepend...
  57285. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  57286. + cp $export_symbols $output_objdir/$soname.def;
  57287. + else
  57288. + echo EXPORTS > $output_objdir/$soname.def;
  57289. + cat $export_symbols >> $output_objdir/$soname.def;
  57290. + fi~
  57291. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  57292. + else
  57293. + _LT_TAGVAR(ld_shlibs, $1)=no
  57294. + fi
  57295. + ;;
  57296. + darwin* | rhapsody*)
  57297. + _LT_DARWIN_LINKER_FEATURES($1)
  57298. + ;;
  57299. -# Fix the shell variable \$srcfile for the compiler.
  57300. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  57301. + dgux*)
  57302. + case $cc_basename in
  57303. + ec++*)
  57304. + # FIXME: insert proper C++ library support
  57305. + _LT_TAGVAR(ld_shlibs, $1)=no
  57306. + ;;
  57307. + ghcx*)
  57308. + # Green Hills C++ Compiler
  57309. + # FIXME: insert proper C++ library support
  57310. + _LT_TAGVAR(ld_shlibs, $1)=no
  57311. + ;;
  57312. + *)
  57313. + # FIXME: insert proper C++ library support
  57314. + _LT_TAGVAR(ld_shlibs, $1)=no
  57315. + ;;
  57316. + esac
  57317. + ;;
  57318. -# Set to yes if exported symbols are required.
  57319. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  57320. + freebsd[[12]]*)
  57321. + # C++ shared libraries reported to be fairly broken before
  57322. + # switch to ELF
  57323. + _LT_TAGVAR(ld_shlibs, $1)=no
  57324. + ;;
  57325. -# The commands to list exported symbols.
  57326. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  57327. + freebsd-elf*)
  57328. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57329. + ;;
  57330. -# The commands to extract the exported symbol list from a shared archive.
  57331. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  57332. + freebsd* | dragonfly*)
  57333. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  57334. + # conventions
  57335. + _LT_TAGVAR(ld_shlibs, $1)=yes
  57336. + ;;
  57337. -# Symbols that should not be listed in the preloaded symbols.
  57338. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  57339. + gnu*)
  57340. + ;;
  57341. -# Symbols that must always be exported.
  57342. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  57343. + hpux9*)
  57344. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  57345. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57346. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57347. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57348. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  57349. + # but as the default
  57350. + # location of the library.
  57351. +
  57352. + case $cc_basename in
  57353. + CC*)
  57354. + # FIXME: insert proper C++ library support
  57355. + _LT_TAGVAR(ld_shlibs, $1)=no
  57356. + ;;
  57357. + aCC*)
  57358. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  57359. + # Commands to make compiler produce verbose output that lists
  57360. + # what "hidden" libraries, object files and flags are used when
  57361. + # linking a shared library.
  57362. + #
  57363. + # There doesn't appear to be a way to prevent this compiler from
  57364. + # explicitly linking system object files so we need to strip them
  57365. + # from the output so that they don't get included in the library
  57366. + # dependencies.
  57367. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  57368. + ;;
  57369. + *)
  57370. + if test "$GXX" = yes; then
  57371. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  57372. + else
  57373. + # FIXME: insert proper C++ library support
  57374. + _LT_TAGVAR(ld_shlibs, $1)=no
  57375. + fi
  57376. + ;;
  57377. + esac
  57378. + ;;
  57379. -ifelse([$1],[],
  57380. -[# ### END LIBTOOL CONFIG],
  57381. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  57382. + hpux10*|hpux11*)
  57383. + if test $with_gnu_ld = no; then
  57384. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  57385. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57386. +
  57387. + case $host_cpu in
  57388. + hppa*64*|ia64*)
  57389. + ;;
  57390. + *)
  57391. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57392. + ;;
  57393. + esac
  57394. + fi
  57395. + case $host_cpu in
  57396. + hppa*64*|ia64*)
  57397. + _LT_TAGVAR(hardcode_direct, $1)=no
  57398. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57399. + ;;
  57400. + *)
  57401. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57402. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57403. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  57404. + # but as the default
  57405. + # location of the library.
  57406. + ;;
  57407. + esac
  57408. -__EOF__
  57409. + case $cc_basename in
  57410. + CC*)
  57411. + # FIXME: insert proper C++ library support
  57412. + _LT_TAGVAR(ld_shlibs, $1)=no
  57413. + ;;
  57414. + aCC*)
  57415. + case $host_cpu in
  57416. + hppa*64*)
  57417. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57418. + ;;
  57419. + ia64*)
  57420. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57421. + ;;
  57422. + *)
  57423. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57424. + ;;
  57425. + esac
  57426. + # Commands to make compiler produce verbose output that lists
  57427. + # what "hidden" libraries, object files and flags are used when
  57428. + # linking a shared library.
  57429. + #
  57430. + # There doesn't appear to be a way to prevent this compiler from
  57431. + # explicitly linking system object files so we need to strip them
  57432. + # from the output so that they don't get included in the library
  57433. + # dependencies.
  57434. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  57435. + ;;
  57436. + *)
  57437. + if test "$GXX" = yes; then
  57438. + if test $with_gnu_ld = no; then
  57439. + case $host_cpu in
  57440. + hppa*64*)
  57441. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57442. + ;;
  57443. + ia64*)
  57444. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57445. + ;;
  57446. + *)
  57447. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57448. + ;;
  57449. + esac
  57450. + fi
  57451. + else
  57452. + # FIXME: insert proper C++ library support
  57453. + _LT_TAGVAR(ld_shlibs, $1)=no
  57454. + fi
  57455. + ;;
  57456. + esac
  57457. + ;;
  57458. -ifelse([$1],[], [
  57459. - case $host_os in
  57460. - aix3*)
  57461. - cat <<\EOF >> "$cfgfile"
  57462. + interix[[3-9]]*)
  57463. + _LT_TAGVAR(hardcode_direct, $1)=no
  57464. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57465. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57466. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57467. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  57468. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  57469. + # default) and relocated if they conflict, which is a slow very memory
  57470. + # consuming and fragmenting process. To avoid this, we pick a random,
  57471. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  57472. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  57473. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  57474. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  57475. + ;;
  57476. + irix5* | irix6*)
  57477. + case $cc_basename in
  57478. + CC*)
  57479. + # SGI C++
  57480. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  57481. +
  57482. + # Archives containing C++ object files must be created using
  57483. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  57484. + # necessary to make sure instantiated templates are included
  57485. + # in the archive.
  57486. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  57487. + ;;
  57488. + *)
  57489. + if test "$GXX" = yes; then
  57490. + if test "$with_gnu_ld" = no; then
  57491. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  57492. + else
  57493. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  57494. + fi
  57495. + fi
  57496. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  57497. + ;;
  57498. + esac
  57499. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57500. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57501. + _LT_TAGVAR(inherit_rpath, $1)=yes
  57502. + ;;
  57503. -# AIX sometimes has problems with the GCC collect2 program. For some
  57504. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  57505. -# vanish in a puff of smoke.
  57506. -if test "X${COLLECT_NAMES+set}" != Xset; then
  57507. - COLLECT_NAMES=
  57508. - export COLLECT_NAMES
  57509. -fi
  57510. -EOF
  57511. - ;;
  57512. - esac
  57513. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  57514. + case $cc_basename in
  57515. + KCC*)
  57516. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  57517. +
  57518. + # KCC will only create a shared library if the output file
  57519. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  57520. + # to its proper name (with version) after linking.
  57521. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  57522. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  57523. + # Commands to make compiler produce verbose output that lists
  57524. + # what "hidden" libraries, object files and flags are used when
  57525. + # linking a shared library.
  57526. + #
  57527. + # There doesn't appear to be a way to prevent this compiler from
  57528. + # explicitly linking system object files so we need to strip them
  57529. + # from the output so that they don't get included in the library
  57530. + # dependencies.
  57531. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  57532. +
  57533. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57534. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  57535. +
  57536. + # Archives containing C++ object files must be created using
  57537. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  57538. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  57539. + ;;
  57540. + icpc* | ecpc* )
  57541. + # Intel C++
  57542. + with_gnu_ld=yes
  57543. + # version 8.0 and above of icpc choke on multiply defined symbols
  57544. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  57545. + # earlier do not add the objects themselves.
  57546. + case `$CC -V 2>&1` in
  57547. + *"Version 7."*)
  57548. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57549. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  57550. + ;;
  57551. + *) # Version 8.0 or newer
  57552. + tmp_idyn=
  57553. + case $host_cpu in
  57554. + ia64*) tmp_idyn=' -i_dynamic';;
  57555. + esac
  57556. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57557. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  57558. + ;;
  57559. + esac
  57560. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57561. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57562. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  57563. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  57564. + ;;
  57565. + pgCC* | pgcpp*)
  57566. + # Portland Group C++ compiler
  57567. + case `$CC -V` in
  57568. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  57569. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  57570. + rm -rf $tpldir~
  57571. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  57572. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  57573. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  57574. + rm -rf $tpldir~
  57575. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  57576. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  57577. + $RANLIB $oldlib'
  57578. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  57579. + rm -rf $tpldir~
  57580. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  57581. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  57582. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  57583. + rm -rf $tpldir~
  57584. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  57585. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  57586. + ;;
  57587. + *) # Version 6 will use weak symbols
  57588. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  57589. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  57590. + ;;
  57591. + esac
  57592. - # We use sed instead of cat because bash on DJGPP gets confused if
  57593. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  57594. - # text mode, it properly converts lines to CR/LF. This bash problem
  57595. - # is reportedly fixed, but why not run on old versions too?
  57596. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  57597. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  57598. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  57599. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  57600. + ;;
  57601. + cxx*)
  57602. + # Compaq C++
  57603. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57604. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  57605. - mv -f "$cfgfile" "$ofile" || \
  57606. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  57607. - chmod +x "$ofile"
  57608. -])
  57609. -else
  57610. - # If there is no Makefile yet, we rely on a make rule to execute
  57611. - # `config.status --recheck' to rerun these tests and create the
  57612. - # libtool script then.
  57613. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  57614. - if test -f "$ltmain_in"; then
  57615. - test -f Makefile && make "$ltmain"
  57616. - fi
  57617. -fi
  57618. -])# AC_LIBTOOL_CONFIG
  57619. + runpath_var=LD_RUN_PATH
  57620. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  57621. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57622. + # Commands to make compiler produce verbose output that lists
  57623. + # what "hidden" libraries, object files and flags are used when
  57624. + # linking a shared library.
  57625. + #
  57626. + # There doesn't appear to be a way to prevent this compiler from
  57627. + # explicitly linking system object files so we need to strip them
  57628. + # from the output so that they don't get included in the library
  57629. + # dependencies.
  57630. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  57631. + ;;
  57632. + xl*)
  57633. + # IBM XL 8.0 on PPC, with GNU ld
  57634. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57635. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  57636. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  57637. + if test "x$supports_anon_versioning" = xyes; then
  57638. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  57639. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  57640. + echo "local: *; };" >> $output_objdir/$libname.ver~
  57641. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  57642. + fi
  57643. + ;;
  57644. + *)
  57645. + case `$CC -V 2>&1 | sed 5q` in
  57646. + *Sun\ C*)
  57647. + # Sun C++ 5.9
  57648. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  57649. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57650. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  57651. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57652. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  57653. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  57654. +
  57655. + # Not sure whether something based on
  57656. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  57657. + # would be better.
  57658. + output_verbose_link_cmd='echo'
  57659. +
  57660. + # Archives containing C++ object files must be created using
  57661. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  57662. + # necessary to make sure instantiated templates are included
  57663. + # in the archive.
  57664. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  57665. + ;;
  57666. + esac
  57667. + ;;
  57668. + esac
  57669. + ;;
  57670. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  57671. -# -------------------------------------------
  57672. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  57673. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  57674. + lynxos*)
  57675. + # FIXME: insert proper C++ library support
  57676. + _LT_TAGVAR(ld_shlibs, $1)=no
  57677. + ;;
  57678. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  57679. + m88k*)
  57680. + # FIXME: insert proper C++ library support
  57681. + _LT_TAGVAR(ld_shlibs, $1)=no
  57682. + ;;
  57683. -if test "$GCC" = yes; then
  57684. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  57685. + mvs*)
  57686. + case $cc_basename in
  57687. + cxx*)
  57688. + # FIXME: insert proper C++ library support
  57689. + _LT_TAGVAR(ld_shlibs, $1)=no
  57690. + ;;
  57691. + *)
  57692. + # FIXME: insert proper C++ library support
  57693. + _LT_TAGVAR(ld_shlibs, $1)=no
  57694. + ;;
  57695. + esac
  57696. + ;;
  57697. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  57698. - lt_cv_prog_compiler_rtti_exceptions,
  57699. - [-fno-rtti -fno-exceptions], [],
  57700. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  57701. -fi
  57702. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  57703. + netbsd*)
  57704. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  57705. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  57706. + wlarc=
  57707. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57708. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57709. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57710. + fi
  57711. + # Workaround some broken pre-1.5 toolchains
  57712. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  57713. + ;;
  57714. + *nto* | *qnx*)
  57715. + _LT_TAGVAR(ld_shlibs, $1)=yes
  57716. + ;;
  57717. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  57718. -# ---------------------------------
  57719. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  57720. -[AC_REQUIRE([AC_CANONICAL_HOST])
  57721. -AC_REQUIRE([AC_PROG_NM])
  57722. -AC_REQUIRE([AC_OBJEXT])
  57723. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  57724. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  57725. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  57726. -[
  57727. -# These are sane defaults that work on at least a few old systems.
  57728. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  57729. + openbsd2*)
  57730. + # C++ shared libraries are fairly broken
  57731. + _LT_TAGVAR(ld_shlibs, $1)=no
  57732. + ;;
  57733. +
  57734. + openbsd*)
  57735. + if test -f /usr/libexec/ld.so; then
  57736. + _LT_TAGVAR(hardcode_direct, $1)=yes
  57737. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57738. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  57739. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  57740. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57741. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  57742. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  57743. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  57744. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  57745. + fi
  57746. + output_verbose_link_cmd=echo
  57747. + else
  57748. + _LT_TAGVAR(ld_shlibs, $1)=no
  57749. + fi
  57750. + ;;
  57751. -# Character class describing NM global symbol codes.
  57752. -symcode='[[BCDEGRST]]'
  57753. + osf3* | osf4* | osf5*)
  57754. + case $cc_basename in
  57755. + KCC*)
  57756. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  57757. +
  57758. + # KCC will only create a shared library if the output file
  57759. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  57760. + # to its proper name (with version) after linking.
  57761. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  57762. +
  57763. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  57764. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57765. +
  57766. + # Archives containing C++ object files must be created using
  57767. + # the KAI C++ compiler.
  57768. + case $host in
  57769. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  57770. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  57771. + esac
  57772. + ;;
  57773. + RCC*)
  57774. + # Rational C++ 2.4.1
  57775. + # FIXME: insert proper C++ library support
  57776. + _LT_TAGVAR(ld_shlibs, $1)=no
  57777. + ;;
  57778. + cxx*)
  57779. + case $host in
  57780. + osf3*)
  57781. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  57782. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  57783. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57784. + ;;
  57785. + *)
  57786. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  57787. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  57788. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  57789. + echo "-hidden">> $lib.exp~
  57790. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  57791. + $RM $lib.exp'
  57792. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  57793. + ;;
  57794. + esac
  57795. -# Regexp to match symbols that can be accessed directly from C.
  57796. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  57797. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57798. -# Transform the above into a raw symbol and a C symbol.
  57799. -symxfrm='\1 \2\3 \3'
  57800. + # Commands to make compiler produce verbose output that lists
  57801. + # what "hidden" libraries, object files and flags are used when
  57802. + # linking a shared library.
  57803. + #
  57804. + # There doesn't appear to be a way to prevent this compiler from
  57805. + # explicitly linking system object files so we need to strip them
  57806. + # from the output so that they don't get included in the library
  57807. + # dependencies.
  57808. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  57809. + ;;
  57810. + *)
  57811. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  57812. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  57813. + case $host in
  57814. + osf3*)
  57815. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  57816. + ;;
  57817. + *)
  57818. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  57819. + ;;
  57820. + esac
  57821. +
  57822. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  57823. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  57824. +
  57825. + # Commands to make compiler produce verbose output that lists
  57826. + # what "hidden" libraries, object files and flags are used when
  57827. + # linking a shared library.
  57828. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57829. +
  57830. + else
  57831. + # FIXME: insert proper C++ library support
  57832. + _LT_TAGVAR(ld_shlibs, $1)=no
  57833. + fi
  57834. + ;;
  57835. + esac
  57836. + ;;
  57837. -# Transform an extracted symbol line into a proper C declaration
  57838. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  57839. + psos*)
  57840. + # FIXME: insert proper C++ library support
  57841. + _LT_TAGVAR(ld_shlibs, $1)=no
  57842. + ;;
  57843. -# Transform an extracted symbol line into symbol name and symbol address
  57844. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  57845. + sunos4*)
  57846. + case $cc_basename in
  57847. + CC*)
  57848. + # Sun C++ 4.x
  57849. + # FIXME: insert proper C++ library support
  57850. + _LT_TAGVAR(ld_shlibs, $1)=no
  57851. + ;;
  57852. + lcc*)
  57853. + # Lucid
  57854. + # FIXME: insert proper C++ library support
  57855. + _LT_TAGVAR(ld_shlibs, $1)=no
  57856. + ;;
  57857. + *)
  57858. + # FIXME: insert proper C++ library support
  57859. + _LT_TAGVAR(ld_shlibs, $1)=no
  57860. + ;;
  57861. + esac
  57862. + ;;
  57863. -# Define system-specific variables.
  57864. -case $host_os in
  57865. -aix*)
  57866. - symcode='[[BCDT]]'
  57867. - ;;
  57868. -cygwin* | mingw* | pw32*)
  57869. - symcode='[[ABCDGISTW]]'
  57870. - ;;
  57871. -hpux*) # Its linker distinguishes data from code symbols
  57872. - if test "$host_cpu" = ia64; then
  57873. - symcode='[[ABCDEGRST]]'
  57874. - fi
  57875. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  57876. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  57877. - ;;
  57878. -irix* | nonstopux*)
  57879. - symcode='[[BCDEGRST]]'
  57880. - ;;
  57881. -osf*)
  57882. - symcode='[[BCDEGQRST]]'
  57883. - ;;
  57884. -solaris* | sysv5*)
  57885. - symcode='[[BDRT]]'
  57886. - ;;
  57887. -sysv4)
  57888. - symcode='[[DFNSTU]]'
  57889. - ;;
  57890. -esac
  57891. + solaris*)
  57892. + case $cc_basename in
  57893. + CC*)
  57894. + # Sun C++ 4.2, 5.x and Centerline C++
  57895. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  57896. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  57897. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  57898. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57899. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  57900. +
  57901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  57902. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57903. + case $host_os in
  57904. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  57905. + *)
  57906. + # The compiler driver will combine and reorder linker options,
  57907. + # but understands `-z linker_flag'.
  57908. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  57909. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  57910. + ;;
  57911. + esac
  57912. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  57913. -# Handle CRLF in mingw tool chain
  57914. -opt_cr=
  57915. -case $build_os in
  57916. -mingw*)
  57917. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  57918. - ;;
  57919. -esac
  57920. + output_verbose_link_cmd='echo'
  57921. -# If we're using GNU nm, then use its standard symbol codes.
  57922. -case `$NM -V 2>&1` in
  57923. -*GNU* | *'with BFD'*)
  57924. - symcode='[[ABCDGIRSTW]]' ;;
  57925. -esac
  57926. + # Archives containing C++ object files must be created using
  57927. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  57928. + # necessary to make sure instantiated templates are included
  57929. + # in the archive.
  57930. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  57931. + ;;
  57932. + gcx*)
  57933. + # Green Hills C++ Compiler
  57934. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  57935. -# Try without a prefix undercore, then with it.
  57936. -for ac_symprfx in "" "_"; do
  57937. + # The C++ compiler must be used to create the archive.
  57938. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  57939. + ;;
  57940. + *)
  57941. + # GNU C++ compiler with Solaris linker
  57942. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  57943. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  57944. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  57945. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  57946. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57947. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  57948. +
  57949. + # Commands to make compiler produce verbose output that lists
  57950. + # what "hidden" libraries, object files and flags are used when
  57951. + # linking a shared library.
  57952. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57953. + else
  57954. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  57955. + # platform.
  57956. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  57957. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  57958. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  57959. +
  57960. + # Commands to make compiler produce verbose output that lists
  57961. + # what "hidden" libraries, object files and flags are used when
  57962. + # linking a shared library.
  57963. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  57964. + fi
  57965. +
  57966. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  57967. + case $host_os in
  57968. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  57969. + *)
  57970. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  57971. + ;;
  57972. + esac
  57973. + fi
  57974. + ;;
  57975. + esac
  57976. + ;;
  57977. - # Write the raw and C identifiers.
  57978. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  57979. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  57980. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  57981. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  57982. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  57983. + runpath_var='LD_RUN_PATH'
  57984. - # Check to see that the pipe works correctly.
  57985. - pipe_works=no
  57986. + case $cc_basename in
  57987. + CC*)
  57988. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57989. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57990. + ;;
  57991. + *)
  57992. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57993. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  57994. + ;;
  57995. + esac
  57996. + ;;
  57997. - rm -f conftest*
  57998. - cat > conftest.$ac_ext <<EOF
  57999. -#ifdef __cplusplus
  58000. -extern "C" {
  58001. -#endif
  58002. -char nm_test_var;
  58003. -void nm_test_func(){}
  58004. -#ifdef __cplusplus
  58005. -}
  58006. -#endif
  58007. -int main(){nm_test_var='a';nm_test_func();return(0);}
  58008. -EOF
  58009. + sysv5* | sco3.2v5* | sco5v6*)
  58010. + # Note: We can NOT use -z defs as we might desire, because we do not
  58011. + # link with -lc, and that would cause any symbols used from libc to
  58012. + # always be unresolved, which means just about no library would
  58013. + # ever link correctly. If we're not using GNU ld we use -z text
  58014. + # though, which does catch some bad symbols but isn't as heavy-handed
  58015. + # as -z defs.
  58016. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  58017. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  58018. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  58019. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  58020. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  58021. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  58022. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  58023. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  58024. + runpath_var='LD_RUN_PATH'
  58025. - if AC_TRY_EVAL(ac_compile); then
  58026. - # Now try to grab the symbols.
  58027. - nlist=conftest.nm
  58028. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  58029. - # Try sorting and uniquifying the output.
  58030. - if sort "$nlist" | uniq > "$nlist"T; then
  58031. - mv -f "$nlist"T "$nlist"
  58032. - else
  58033. - rm -f "$nlist"T
  58034. - fi
  58035. + case $cc_basename in
  58036. + CC*)
  58037. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58038. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58039. + ;;
  58040. + *)
  58041. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58042. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  58043. + ;;
  58044. + esac
  58045. + ;;
  58046. - # Make sure that we snagged all the symbols we need.
  58047. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  58048. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  58049. - cat <<EOF > conftest.$ac_ext
  58050. -#ifdef __cplusplus
  58051. -extern "C" {
  58052. -#endif
  58053. + tandem*)
  58054. + case $cc_basename in
  58055. + NCC*)
  58056. + # NonStop-UX NCC 3.20
  58057. + # FIXME: insert proper C++ library support
  58058. + _LT_TAGVAR(ld_shlibs, $1)=no
  58059. + ;;
  58060. + *)
  58061. + # FIXME: insert proper C++ library support
  58062. + _LT_TAGVAR(ld_shlibs, $1)=no
  58063. + ;;
  58064. + esac
  58065. + ;;
  58066. -EOF
  58067. - # Now generate the symbol file.
  58068. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  58069. + vxworks*)
  58070. + # FIXME: insert proper C++ library support
  58071. + _LT_TAGVAR(ld_shlibs, $1)=no
  58072. + ;;
  58073. - cat <<EOF >> conftest.$ac_ext
  58074. -#if defined (__STDC__) && __STDC__
  58075. -# define lt_ptr_t void *
  58076. -#else
  58077. -# define lt_ptr_t char *
  58078. -# define const
  58079. -#endif
  58080. + *)
  58081. + # FIXME: insert proper C++ library support
  58082. + _LT_TAGVAR(ld_shlibs, $1)=no
  58083. + ;;
  58084. + esac
  58085. -/* The mapping between symbol names and symbols. */
  58086. -const struct {
  58087. - const char *name;
  58088. - lt_ptr_t address;
  58089. -}
  58090. -lt_preloaded_symbols[[]] =
  58091. -{
  58092. -EOF
  58093. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  58094. - cat <<\EOF >> conftest.$ac_ext
  58095. - {0, (lt_ptr_t) 0}
  58096. -};
  58097. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  58098. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  58099. -#ifdef __cplusplus
  58100. -}
  58101. -#endif
  58102. -EOF
  58103. - # Now try linking the two files.
  58104. - mv conftest.$ac_objext conftstm.$ac_objext
  58105. - lt_save_LIBS="$LIBS"
  58106. - lt_save_CFLAGS="$CFLAGS"
  58107. - LIBS="conftstm.$ac_objext"
  58108. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  58109. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  58110. - pipe_works=yes
  58111. - fi
  58112. - LIBS="$lt_save_LIBS"
  58113. - CFLAGS="$lt_save_CFLAGS"
  58114. - else
  58115. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  58116. - fi
  58117. - else
  58118. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  58119. - fi
  58120. - else
  58121. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  58122. - fi
  58123. - else
  58124. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  58125. - cat conftest.$ac_ext >&5
  58126. - fi
  58127. - rm -f conftest* conftst*
  58128. + _LT_TAGVAR(GCC, $1)="$GXX"
  58129. + _LT_TAGVAR(LD, $1)="$LD"
  58130. - # Do not use the global_symbol_pipe unless it works.
  58131. - if test "$pipe_works" = yes; then
  58132. - break
  58133. - else
  58134. - lt_cv_sys_global_symbol_pipe=
  58135. - fi
  58136. -done
  58137. -])
  58138. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  58139. - lt_cv_sys_global_symbol_to_cdecl=
  58140. -fi
  58141. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  58142. - AC_MSG_RESULT(failed)
  58143. -else
  58144. - AC_MSG_RESULT(ok)
  58145. -fi
  58146. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  58147. + ## CAVEAT EMPTOR:
  58148. + ## There is no encapsulation within the following macros, do not change
  58149. + ## the running order or otherwise move them around unless you know exactly
  58150. + ## what you are doing...
  58151. + _LT_SYS_HIDDEN_LIBDEPS($1)
  58152. + _LT_COMPILER_PIC($1)
  58153. + _LT_COMPILER_C_O($1)
  58154. + _LT_COMPILER_FILE_LOCKS($1)
  58155. + _LT_LINKER_SHLIBS($1)
  58156. + _LT_SYS_DYNAMIC_LINKER($1)
  58157. + _LT_LINKER_HARDCODE_LIBPATH($1)
  58158. +
  58159. + _LT_CONFIG($1)
  58160. + fi # test -n "$compiler"
  58161. +
  58162. + CC=$lt_save_CC
  58163. + LDCXX=$LD
  58164. + LD=$lt_save_LD
  58165. + GCC=$lt_save_GCC
  58166. + with_gnu_ld=$lt_save_with_gnu_ld
  58167. + lt_cv_path_LDCXX=$lt_cv_path_LD
  58168. + lt_cv_path_LD=$lt_save_path_LD
  58169. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  58170. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  58171. +fi # test "$_lt_caught_CXX_error" != yes
  58172. +AC_LANG_POP
  58173. +])# _LT_LANG_CXX_CONFIG
  58174. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  58175. -# ---------------------------------------
  58176. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  58177. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  58178. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  58179. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  58180. -
  58181. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  58182. - ifelse([$1],[CXX],[
  58183. - # C++ specific cases for pic, static, wl, etc.
  58184. - if test "$GXX" = yes; then
  58185. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58186. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  58187. -
  58188. - case $host_os in
  58189. - aix*)
  58190. - # All AIX code is PIC.
  58191. - if test "$host_cpu" = ia64; then
  58192. - # AIX 5 now supports IA64 processor
  58193. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58194. - fi
  58195. - ;;
  58196. - amigaos*)
  58197. - # FIXME: we need at least 68020 code to build shared libraries, but
  58198. - # adding the `-m68020' flag to GCC prevents building anything better,
  58199. - # like `-m68040'.
  58200. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  58201. - ;;
  58202. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  58203. - # PIC is the default for these OSes.
  58204. - ;;
  58205. - mingw* | os2* | pw32*)
  58206. - # This hack is so that the source file can tell whether it is being
  58207. - # built for inclusion in a dll (and should export symbols for example).
  58208. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  58209. - ;;
  58210. - darwin* | rhapsody*)
  58211. - # PIC is the default on this platform
  58212. - # Common symbols not allowed in MH_DYLIB files
  58213. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  58214. - ;;
  58215. - *djgpp*)
  58216. - # DJGPP does not support shared libraries at all
  58217. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  58218. - ;;
  58219. - sysv4*MP*)
  58220. - if test -d /usr/nec; then
  58221. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  58222. - fi
  58223. - ;;
  58224. - hpux*)
  58225. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  58226. - # not for PA HP-UX.
  58227. - case "$host_cpu" in
  58228. - hppa*64*|ia64*)
  58229. - ;;
  58230. - *)
  58231. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58232. - ;;
  58233. - esac
  58234. - ;;
  58235. - *)
  58236. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58237. - ;;
  58238. - esac
  58239. - else
  58240. - case $host_os in
  58241. - aix4* | aix5*)
  58242. - # All AIX code is PIC.
  58243. - if test "$host_cpu" = ia64; then
  58244. - # AIX 5 now supports IA64 processor
  58245. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58246. - else
  58247. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  58248. - fi
  58249. - ;;
  58250. - chorus*)
  58251. - case $cc_basename in
  58252. - cxch68)
  58253. - # Green Hills C++ Compiler
  58254. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  58255. - ;;
  58256. - esac
  58257. - ;;
  58258. - dgux*)
  58259. - case $cc_basename in
  58260. - ec++)
  58261. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58262. - ;;
  58263. - ghcx)
  58264. - # Green Hills C++ Compiler
  58265. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  58266. - ;;
  58267. - *)
  58268. - ;;
  58269. - esac
  58270. - ;;
  58271. - freebsd* | kfreebsd*-gnu)
  58272. - # FreeBSD uses GNU C++
  58273. - ;;
  58274. - hpux9* | hpux10* | hpux11*)
  58275. - case $cc_basename in
  58276. - CC)
  58277. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58278. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  58279. - if test "$host_cpu" != ia64; then
  58280. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  58281. - fi
  58282. - ;;
  58283. - aCC)
  58284. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58285. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  58286. - case "$host_cpu" in
  58287. - hppa*64*|ia64*)
  58288. - # +Z the default
  58289. - ;;
  58290. - *)
  58291. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  58292. - ;;
  58293. - esac
  58294. - ;;
  58295. - *)
  58296. - ;;
  58297. - esac
  58298. - ;;
  58299. - irix5* | irix6* | nonstopux*)
  58300. - case $cc_basename in
  58301. - CC)
  58302. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58303. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58304. - # CC pic flag -KPIC is the default.
  58305. - ;;
  58306. - *)
  58307. - ;;
  58308. - esac
  58309. - ;;
  58310. - linux*)
  58311. - case $cc_basename in
  58312. - KCC)
  58313. - # KAI C++ Compiler
  58314. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  58315. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58316. - ;;
  58317. - icpc)
  58318. - # Intel C++
  58319. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58320. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58321. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  58322. - ;;
  58323. - cxx)
  58324. - # Compaq C++
  58325. - # Make sure the PIC flag is empty. It appears that all Alpha
  58326. - # Linux and Compaq Tru64 Unix objects are PIC.
  58327. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  58328. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58329. - ;;
  58330. - *)
  58331. - ;;
  58332. - esac
  58333. - ;;
  58334. - lynxos*)
  58335. - ;;
  58336. - m88k*)
  58337. - ;;
  58338. - mvs*)
  58339. - case $cc_basename in
  58340. - cxx)
  58341. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  58342. - ;;
  58343. - *)
  58344. - ;;
  58345. - esac
  58346. - ;;
  58347. - netbsd* | knetbsd*-gnu)
  58348. - ;;
  58349. - osf3* | osf4* | osf5*)
  58350. - case $cc_basename in
  58351. - KCC)
  58352. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  58353. - ;;
  58354. - RCC)
  58355. - # Rational C++ 2.4.1
  58356. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  58357. - ;;
  58358. - cxx)
  58359. - # Digital/Compaq C++
  58360. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58361. - # Make sure the PIC flag is empty. It appears that all Alpha
  58362. - # Linux and Compaq Tru64 Unix objects are PIC.
  58363. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  58364. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58365. - ;;
  58366. - *)
  58367. - ;;
  58368. - esac
  58369. - ;;
  58370. - psos*)
  58371. - ;;
  58372. - sco*)
  58373. - case $cc_basename in
  58374. - CC)
  58375. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58376. - ;;
  58377. - *)
  58378. - ;;
  58379. - esac
  58380. - ;;
  58381. - solaris*)
  58382. - case $cc_basename in
  58383. - CC)
  58384. - # Sun C++ 4.2, 5.x and Centerline C++
  58385. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58386. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58387. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  58388. - ;;
  58389. - gcx)
  58390. - # Green Hills C++ Compiler
  58391. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  58392. - ;;
  58393. - *)
  58394. - ;;
  58395. - esac
  58396. - ;;
  58397. - sunos4*)
  58398. - case $cc_basename in
  58399. - CC)
  58400. - # Sun C++ 4.x
  58401. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  58402. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58403. - ;;
  58404. - lcc)
  58405. - # Lucid
  58406. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  58407. - ;;
  58408. - *)
  58409. - ;;
  58410. - esac
  58411. - ;;
  58412. - tandem*)
  58413. - case $cc_basename in
  58414. - NCC)
  58415. - # NonStop-UX NCC 3.20
  58416. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58417. - ;;
  58418. - *)
  58419. - ;;
  58420. - esac
  58421. - ;;
  58422. - unixware*)
  58423. - ;;
  58424. - vxworks*)
  58425. - ;;
  58426. - *)
  58427. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  58428. - ;;
  58429. - esac
  58430. - fi
  58431. -],
  58432. -[
  58433. - if test "$GCC" = yes; then
  58434. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58435. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  58436. -
  58437. - case $host_os in
  58438. - aix*)
  58439. - # All AIX code is PIC.
  58440. - if test "$host_cpu" = ia64; then
  58441. - # AIX 5 now supports IA64 processor
  58442. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58443. - fi
  58444. - ;;
  58445. -
  58446. - amigaos*)
  58447. - # FIXME: we need at least 68020 code to build shared libraries, but
  58448. - # adding the `-m68020' flag to GCC prevents building anything better,
  58449. - # like `-m68040'.
  58450. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  58451. - ;;
  58452. -
  58453. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  58454. - # PIC is the default for these OSes.
  58455. - ;;
  58456. -
  58457. - mingw* | pw32* | os2*)
  58458. - # This hack is so that the source file can tell whether it is being
  58459. - # built for inclusion in a dll (and should export symbols for example).
  58460. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  58461. - ;;
  58462. -
  58463. - darwin* | rhapsody*)
  58464. - # PIC is the default on this platform
  58465. - # Common symbols not allowed in MH_DYLIB files
  58466. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  58467. - ;;
  58468. -
  58469. - msdosdjgpp*)
  58470. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  58471. - # on systems that don't support them.
  58472. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  58473. - enable_shared=no
  58474. - ;;
  58475. -
  58476. - sysv4*MP*)
  58477. - if test -d /usr/nec; then
  58478. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  58479. - fi
  58480. - ;;
  58481. -
  58482. - hpux*)
  58483. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  58484. - # not for PA HP-UX.
  58485. - case "$host_cpu" in
  58486. - hppa*64*|ia64*)
  58487. - # +Z the default
  58488. - ;;
  58489. - *)
  58490. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58491. - ;;
  58492. - esac
  58493. - ;;
  58494. -
  58495. - *)
  58496. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  58497. - ;;
  58498. - esac
  58499. - else
  58500. - # PORTME Check for flag to pass linker flags through the system compiler.
  58501. - case $host_os in
  58502. - aix*)
  58503. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58504. - if test "$host_cpu" = ia64; then
  58505. - # AIX 5 now supports IA64 processor
  58506. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58507. - else
  58508. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  58509. - fi
  58510. - ;;
  58511. -
  58512. - mingw* | pw32* | os2*)
  58513. - # This hack is so that the source file can tell whether it is being
  58514. - # built for inclusion in a dll (and should export symbols for example).
  58515. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  58516. - ;;
  58517. -
  58518. - hpux9* | hpux10* | hpux11*)
  58519. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58520. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  58521. - # not for PA HP-UX.
  58522. - case "$host_cpu" in
  58523. - hppa*64*|ia64*)
  58524. - # +Z the default
  58525. - ;;
  58526. - *)
  58527. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  58528. - ;;
  58529. - esac
  58530. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  58531. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  58532. - ;;
  58533. -
  58534. - irix5* | irix6* | nonstopux*)
  58535. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58536. - # PIC (with -KPIC) is the default.
  58537. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58538. - ;;
  58539. -
  58540. - newsos6)
  58541. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58542. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58543. - ;;
  58544. -
  58545. - linux*)
  58546. - case $CC in
  58547. - icc* | ecc*)
  58548. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58549. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58550. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  58551. - ;;
  58552. - ccc*)
  58553. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58554. - # All Alpha code is PIC.
  58555. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58556. - ;;
  58557. - esac
  58558. - ;;
  58559. -
  58560. - osf3* | osf4* | osf5*)
  58561. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58562. - # All OSF/1 code is PIC.
  58563. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  58564. - ;;
  58565. -
  58566. - sco3.2v5*)
  58567. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  58568. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  58569. - ;;
  58570. -
  58571. - solaris*)
  58572. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58573. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58574. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58575. - ;;
  58576. -
  58577. - sunos4*)
  58578. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  58579. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  58580. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58581. - ;;
  58582. -
  58583. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  58584. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  58585. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  58586. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58587. - ;;
  58588. -
  58589. - sysv4*MP*)
  58590. - if test -d /usr/nec ;then
  58591. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  58592. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58593. - fi
  58594. - ;;
  58595. -
  58596. - uts4*)
  58597. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  58598. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  58599. - ;;
  58600. - *)
  58601. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  58602. - ;;
  58603. - esac
  58604. - fi
  58605. -])
  58606. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  58607. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  58608. +# ---------------------------------
  58609. +# Figure out "hidden" library dependencies from verbose
  58610. +# compiler output when linking a shared library.
  58611. +# Parse the compiler output and extract the necessary
  58612. +# objects, libraries and library flags.
  58613. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  58614. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  58615. +# Dependencies to place before and after the object being linked:
  58616. +_LT_TAGVAR(predep_objects, $1)=
  58617. +_LT_TAGVAR(postdep_objects, $1)=
  58618. +_LT_TAGVAR(predeps, $1)=
  58619. +_LT_TAGVAR(postdeps, $1)=
  58620. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  58621. -#
  58622. -# Check to make sure the PIC flag actually works.
  58623. -#
  58624. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  58625. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  58626. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  58627. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  58628. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  58629. - "" | " "*) ;;
  58630. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  58631. - esac],
  58632. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  58633. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  58634. -fi
  58635. -case "$host_os" in
  58636. - # For platforms which do not support PIC, -DPIC is meaningless:
  58637. - *djgpp*)
  58638. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  58639. - ;;
  58640. - *)
  58641. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  58642. - ;;
  58643. -esac
  58644. +dnl we can't use the lt_simple_compile_test_code here,
  58645. +dnl because it contains code intended for an executable,
  58646. +dnl not a library. It's possible we should let each
  58647. +dnl tag define a new lt_????_link_test_code variable,
  58648. +dnl but it's only used here...
  58649. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  58650. +int a;
  58651. +void foo (void) { a = 0; }
  58652. +_LT_EOF
  58653. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  58654. +class Foo
  58655. +{
  58656. +public:
  58657. + Foo (void) { a = 0; }
  58658. +private:
  58659. + int a;
  58660. +};
  58661. +_LT_EOF
  58662. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  58663. + subroutine foo
  58664. + implicit none
  58665. + integer*4 a
  58666. + a=0
  58667. + return
  58668. + end
  58669. +_LT_EOF
  58670. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  58671. + subroutine foo
  58672. + implicit none
  58673. + integer a
  58674. + a=0
  58675. + return
  58676. + end
  58677. +_LT_EOF
  58678. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  58679. +public class foo {
  58680. + private int a;
  58681. + public void bar (void) {
  58682. + a = 0;
  58683. + }
  58684. +};
  58685. +_LT_EOF
  58686. ])
  58687. +dnl Parse the compiler output and extract the necessary
  58688. +dnl objects, libraries and library flags.
  58689. +if AC_TRY_EVAL(ac_compile); then
  58690. + # Parse the compiler output and extract the necessary
  58691. + # objects, libraries and library flags.
  58692. + # Sentinel used to keep track of whether or not we are before
  58693. + # the conftest object file.
  58694. + pre_test_object_deps_done=no
  58695. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  58696. -# ------------------------------------
  58697. -# See if the linker supports building shared libraries.
  58698. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  58699. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  58700. -ifelse([$1],[CXX],[
  58701. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  58702. - case $host_os in
  58703. - aix4* | aix5*)
  58704. - # If we're using GNU nm, then we don't want the "-C" option.
  58705. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  58706. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  58707. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  58708. - else
  58709. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  58710. - fi
  58711. - ;;
  58712. - pw32*)
  58713. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  58714. - ;;
  58715. - cygwin* | mingw*)
  58716. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  58717. - ;;
  58718. - linux*)
  58719. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  58720. - ;;
  58721. - *)
  58722. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  58723. - ;;
  58724. - esac
  58725. -],[
  58726. - runpath_var=
  58727. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  58728. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  58729. - _LT_AC_TAGVAR(archive_cmds, $1)=
  58730. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  58731. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  58732. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  58733. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  58734. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  58735. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  58736. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  58737. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  58738. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  58739. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  58740. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  58741. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  58742. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  58743. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  58744. - _LT_AC_TAGVAR(module_cmds, $1)=
  58745. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  58746. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  58747. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  58748. - # include_expsyms should be a list of space-separated symbols to be *always*
  58749. - # included in the symbol list
  58750. - _LT_AC_TAGVAR(include_expsyms, $1)=
  58751. - # exclude_expsyms can be an extended regexp of symbols to exclude
  58752. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  58753. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  58754. - # as well as any symbol that contains `d'.
  58755. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  58756. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  58757. - # platforms (ab)use it in PIC code, but their linkers get confused if
  58758. - # the symbol is explicitly referenced. Since portable code cannot
  58759. - # rely on this symbol name, it's probably fine to never include it in
  58760. - # preloaded symbol tables.
  58761. - extract_expsyms_cmds=
  58762. -
  58763. - case $host_os in
  58764. - cygwin* | mingw* | pw32*)
  58765. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  58766. - # When not using gcc, we currently assume that we are using
  58767. - # Microsoft Visual C++.
  58768. - if test "$GCC" != yes; then
  58769. - with_gnu_ld=no
  58770. - fi
  58771. - ;;
  58772. - openbsd*)
  58773. - with_gnu_ld=no
  58774. - ;;
  58775. - esac
  58776. -
  58777. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  58778. - if test "$with_gnu_ld" = yes; then
  58779. - # If archive_cmds runs LD, not CC, wlarc should be empty
  58780. - wlarc='${wl}'
  58781. -
  58782. - # See if GNU ld supports shared libraries.
  58783. - case $host_os in
  58784. - aix3* | aix4* | aix5*)
  58785. - # On AIX/PPC, the GNU linker is very broken
  58786. - if test "$host_cpu" != ia64; then
  58787. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  58788. - cat <<EOF 1>&2
  58789. -
  58790. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  58791. -*** to be unable to reliably create shared libraries on AIX.
  58792. -*** Therefore, libtool is disabling shared libraries support. If you
  58793. -*** really care for shared libraries, you may want to modify your PATH
  58794. -*** so that a non-GNU linker is found, and then restart.
  58795. -
  58796. -EOF
  58797. - fi
  58798. - ;;
  58799. + for p in `eval "$output_verbose_link_cmd"`; do
  58800. + case $p in
  58801. - amigaos*)
  58802. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  58803. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  58804. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  58805. -
  58806. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  58807. - # that the semantics of dynamic libraries on AmigaOS, at least up
  58808. - # to version 4, is to share data among multiple programs linked
  58809. - # with the same dynamic library. Since this doesn't match the
  58810. - # behavior of shared libraries on other platforms, we can't use
  58811. - # them.
  58812. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  58813. - ;;
  58814. + -L* | -R* | -l*)
  58815. + # Some compilers place space between "-{L,R}" and the path.
  58816. + # Remove the space.
  58817. + if test $p = "-L" ||
  58818. + test $p = "-R"; then
  58819. + prev=$p
  58820. + continue
  58821. + else
  58822. + prev=
  58823. + fi
  58824. - beos*)
  58825. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  58826. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  58827. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  58828. - # support --undefined. This deserves some investigation. FIXME
  58829. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58830. - else
  58831. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  58832. - fi
  58833. - ;;
  58834. + if test "$pre_test_object_deps_done" = no; then
  58835. + case $p in
  58836. + -L* | -R*)
  58837. + # Internal compiler library paths should come after those
  58838. + # provided the user. The postdeps already come after the
  58839. + # user supplied libs so there is no need to process them.
  58840. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  58841. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  58842. + else
  58843. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  58844. + fi
  58845. + ;;
  58846. + # The "-l" case would never come before the object being
  58847. + # linked, so don't bother handling this case.
  58848. + esac
  58849. + else
  58850. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  58851. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  58852. + else
  58853. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  58854. + fi
  58855. + fi
  58856. + ;;
  58857. - cygwin* | mingw* | pw32*)
  58858. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  58859. - # as there is no search path for DLLs.
  58860. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  58861. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  58862. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  58863. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  58864. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  58865. + *.$objext)
  58866. + # This assumes that the test object file only shows up
  58867. + # once in the compiler output.
  58868. + if test "$p" = "conftest.$objext"; then
  58869. + pre_test_object_deps_done=yes
  58870. + continue
  58871. + fi
  58872. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  58873. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  58874. - # If the export-symbols file already is a .def file (1st line
  58875. - # is EXPORTS), use it as is; otherwise, prepend...
  58876. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  58877. - cp $export_symbols $output_objdir/$soname.def;
  58878. - else
  58879. - echo EXPORTS > $output_objdir/$soname.def;
  58880. - cat $export_symbols >> $output_objdir/$soname.def;
  58881. - fi~
  58882. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  58883. - else
  58884. - ld_shlibs=no
  58885. - fi
  58886. - ;;
  58887. + if test "$pre_test_object_deps_done" = no; then
  58888. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  58889. + _LT_TAGVAR(predep_objects, $1)="$p"
  58890. + else
  58891. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  58892. + fi
  58893. + else
  58894. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  58895. + _LT_TAGVAR(postdep_objects, $1)="$p"
  58896. + else
  58897. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  58898. + fi
  58899. + fi
  58900. + ;;
  58901. - netbsd* | knetbsd*-gnu)
  58902. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  58903. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  58904. - wlarc=
  58905. - else
  58906. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58907. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  58908. - fi
  58909. - ;;
  58910. + *) ;; # Ignore the rest.
  58911. - solaris* | sysv5*)
  58912. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  58913. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  58914. - cat <<EOF 1>&2
  58915. + esac
  58916. + done
  58917. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  58918. -*** create shared libraries on Solaris systems. Therefore, libtool
  58919. -*** is disabling shared libraries support. We urge you to upgrade GNU
  58920. -*** binutils to release 2.9.1 or newer. Another option is to modify
  58921. -*** your PATH or compiler configuration so that the native linker is
  58922. -*** used, and then restart.
  58923. + # Clean up.
  58924. + rm -f a.out a.exe
  58925. +else
  58926. + echo "libtool.m4: error: problem compiling $1 test program"
  58927. +fi
  58928. -EOF
  58929. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  58930. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58931. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  58932. - else
  58933. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  58934. - fi
  58935. - ;;
  58936. +$RM -f confest.$objext
  58937. - sunos4*)
  58938. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  58939. - wlarc=
  58940. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  58941. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  58942. +# PORTME: override above test on systems where it is broken
  58943. +m4_if([$1], [CXX],
  58944. +[case $host_os in
  58945. +interix[[3-9]]*)
  58946. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  58947. + # hack all around it, let's just trust "g++" to DTRT.
  58948. + _LT_TAGVAR(predep_objects,$1)=
  58949. + _LT_TAGVAR(postdep_objects,$1)=
  58950. + _LT_TAGVAR(postdeps,$1)=
  58951. + ;;
  58952. +
  58953. +linux*)
  58954. + case `$CC -V 2>&1 | sed 5q` in
  58955. + *Sun\ C*)
  58956. + # Sun C++ 5.9
  58957. +
  58958. + # The more standards-conforming stlport4 library is
  58959. + # incompatible with the Cstd library. Avoid specifying
  58960. + # it if it's in CXXFLAGS. Ignore libCrun as
  58961. + # -library=stlport4 depends on it.
  58962. + case " $CXX $CXXFLAGS " in
  58963. + *" -library=stlport4 "*)
  58964. + solaris_use_stlport4=yes
  58965. ;;
  58966. + esac
  58967. - linux*)
  58968. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  58969. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58970. - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  58971. - supports_anon_versioning=no
  58972. - case `$LD -v 2>/dev/null` in
  58973. - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  58974. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  58975. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  58976. - *\ 2.11.*) ;; # other 2.11 versions
  58977. - *) supports_anon_versioning=yes ;;
  58978. - esac
  58979. - if test $supports_anon_versioning = yes; then
  58980. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  58981. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  58982. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  58983. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  58984. - else
  58985. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  58986. - fi
  58987. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  58988. - else
  58989. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  58990. + if test "$solaris_use_stlport4" != yes; then
  58991. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  58992. fi
  58993. ;;
  58994. + esac
  58995. + ;;
  58996. - *)
  58997. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  58998. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  58999. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  59000. - else
  59001. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  59002. - fi
  59003. +solaris*)
  59004. + case $cc_basename in
  59005. + CC*)
  59006. + # The more standards-conforming stlport4 library is
  59007. + # incompatible with the Cstd library. Avoid specifying
  59008. + # it if it's in CXXFLAGS. Ignore libCrun as
  59009. + # -library=stlport4 depends on it.
  59010. + case " $CXX $CXXFLAGS " in
  59011. + *" -library=stlport4 "*)
  59012. + solaris_use_stlport4=yes
  59013. ;;
  59014. esac
  59015. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  59016. - runpath_var=LD_RUN_PATH
  59017. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  59018. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  59019. - # ancient GNU ld didn't support --whole-archive et. al.
  59020. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  59021. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  59022. - else
  59023. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  59024. - fi
  59025. + # Adding this requires a known-good setup of shared libraries for
  59026. + # Sun compiler versions before 5.6, else PIC objects from an old
  59027. + # archive will be linked into the output, leading to subtle bugs.
  59028. + if test "$solaris_use_stlport4" != yes; then
  59029. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  59030. fi
  59031. - else
  59032. - # PORTME fill in a description of your system's linker (not GNU ld)
  59033. - case $host_os in
  59034. - aix3*)
  59035. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  59036. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  59037. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  59038. - # Note: this linker hardcodes the directories in LIBPATH if there
  59039. - # are no directories specified by -L.
  59040. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59041. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  59042. - # Neither direct hardcoding nor static linking is supported with a
  59043. - # broken collect2.
  59044. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  59045. - fi
  59046. - ;;
  59047. + ;;
  59048. + esac
  59049. + ;;
  59050. +esac
  59051. +])
  59052. - aix4* | aix5*)
  59053. - if test "$host_cpu" = ia64; then
  59054. - # On IA64, the linker does run time linking by default, so we don't
  59055. - # have to do anything special.
  59056. - aix_use_runtimelinking=no
  59057. - exp_sym_flag='-Bexport'
  59058. - no_entry_flag=""
  59059. - else
  59060. - # If we're using GNU nm, then we don't want the "-C" option.
  59061. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  59062. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  59063. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  59064. - else
  59065. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  59066. - fi
  59067. - aix_use_runtimelinking=no
  59068. +case " $_LT_TAGVAR(postdeps, $1) " in
  59069. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  59070. +esac
  59071. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  59072. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  59073. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  59074. +fi
  59075. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  59076. + [The directories searched by this compiler when creating a shared library])
  59077. +_LT_TAGDECL([], [predep_objects], [1],
  59078. + [Dependencies to place before and after the objects being linked to
  59079. + create a shared library])
  59080. +_LT_TAGDECL([], [postdep_objects], [1])
  59081. +_LT_TAGDECL([], [predeps], [1])
  59082. +_LT_TAGDECL([], [postdeps], [1])
  59083. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  59084. + [The library search path used internally by the compiler when linking
  59085. + a shared library])
  59086. +])# _LT_SYS_HIDDEN_LIBDEPS
  59087. +
  59088. +
  59089. +# _LT_PROG_F77
  59090. +# ------------
  59091. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  59092. +# if there is no fortran compiler, we have our own version here.
  59093. +m4_defun([_LT_PROG_F77],
  59094. +[
  59095. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  59096. +AC_PROG_F77
  59097. +if test -z "$F77" || test "X$F77" = "Xno"; then
  59098. + _lt_disable_F77=yes
  59099. +fi
  59100. +popdef([AC_MSG_ERROR])
  59101. +])# _LT_PROG_F77
  59102. - # Test if we are trying to use run time linking or normal
  59103. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  59104. - # need to do runtime linking.
  59105. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  59106. - for ld_flag in $LDFLAGS; do
  59107. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  59108. - aix_use_runtimelinking=yes
  59109. - break
  59110. - fi
  59111. - done
  59112. - esac
  59113. +dnl aclocal-1.4 backwards compatibility:
  59114. +dnl AC_DEFUN([_LT_PROG_F77], [])
  59115. - exp_sym_flag='-bexport'
  59116. - no_entry_flag='-bnoentry'
  59117. - fi
  59118. - # When large executables or shared objects are built, AIX ld can
  59119. - # have problems creating the table of contents. If linking a library
  59120. - # or program results in "error TOC overflow" add -mminimal-toc to
  59121. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  59122. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  59123. +# _LT_LANG_F77_CONFIG([TAG])
  59124. +# --------------------------
  59125. +# Ensure that the configuration variables for a Fortran 77 compiler are
  59126. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  59127. +# to write the compiler configuration to `libtool'.
  59128. +m4_defun([_LT_LANG_F77_CONFIG],
  59129. +[AC_REQUIRE([_LT_PROG_F77])dnl
  59130. +AC_LANG_PUSH(Fortran 77)
  59131. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  59132. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59133. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  59134. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  59135. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59136. +_LT_TAGVAR(allow_undefined_flag, $1)=
  59137. +_LT_TAGVAR(always_export_symbols, $1)=no
  59138. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  59139. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  59140. +_LT_TAGVAR(hardcode_direct, $1)=no
  59141. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  59142. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59143. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  59144. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  59145. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  59146. +_LT_TAGVAR(hardcode_automatic, $1)=no
  59147. +_LT_TAGVAR(inherit_rpath, $1)=no
  59148. +_LT_TAGVAR(module_cmds, $1)=
  59149. +_LT_TAGVAR(module_expsym_cmds, $1)=
  59150. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  59151. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  59152. +_LT_TAGVAR(no_undefined_flag, $1)=
  59153. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  59154. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  59155. - if test "$GCC" = yes; then
  59156. - case $host_os in aix4.[012]|aix4.[012].*)
  59157. - # We only want to do this on AIX 4.2 and lower, the check
  59158. - # below for broken collect2 doesn't work under 4.3+
  59159. - collect2name=`${CC} -print-prog-name=collect2`
  59160. - if test -f "$collect2name" && \
  59161. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  59162. - then
  59163. - # We have reworked collect2
  59164. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59165. - else
  59166. - # We have old collect2
  59167. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  59168. - # It fails to find uninstalled libraries when the uninstalled
  59169. - # path is not listed in the libpath. Setting hardcode_minus_L
  59170. - # to unsupported forces relinking
  59171. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59172. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59173. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  59174. - fi
  59175. - esac
  59176. - shared_flag='-shared'
  59177. - else
  59178. - # not using gcc
  59179. - if test "$host_cpu" = ia64; then
  59180. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  59181. - # chokes on -Wl,-G. The following line is correct:
  59182. - shared_flag='-G'
  59183. - else
  59184. - if test "$aix_use_runtimelinking" = yes; then
  59185. - shared_flag='${wl}-G'
  59186. - else
  59187. - shared_flag='${wl}-bM:SRE'
  59188. - fi
  59189. - fi
  59190. - fi
  59191. +# Source file extension for f77 test sources.
  59192. +ac_ext=f
  59193. - # It seems that -bexpall does not export symbols beginning with
  59194. - # underscore (_), so it is better to generate a list of symbols to export.
  59195. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  59196. - if test "$aix_use_runtimelinking" = yes; then
  59197. - # Warning - without using the other runtime loading flags (-brtl),
  59198. - # -berok will link without error, but may produce a broken library.
  59199. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  59200. - # Determine the default libpath from the value encoded in an empty executable.
  59201. - _LT_AC_SYS_LIBPATH_AIX
  59202. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  59203. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  59204. - else
  59205. - if test "$host_cpu" = ia64; then
  59206. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  59207. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  59208. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  59209. - else
  59210. - # Determine the default libpath from the value encoded in an empty executable.
  59211. - _LT_AC_SYS_LIBPATH_AIX
  59212. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  59213. - # Warning - without using the other run time loading flags,
  59214. - # -berok will link without error, but may produce a broken library.
  59215. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  59216. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  59217. - # -bexpall does not export symbols beginning with underscore (_)
  59218. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  59219. - # Exported symbols can be pulled into shared objects from archives
  59220. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  59221. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  59222. - # This is similar to how AIX traditionally builds it's shared libraries.
  59223. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  59224. - fi
  59225. - fi
  59226. - ;;
  59227. +# Object file extension for compiled f77 test sources.
  59228. +objext=o
  59229. +_LT_TAGVAR(objext, $1)=$objext
  59230. - amigaos*)
  59231. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  59232. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59233. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59234. - # see comment about different semantics on the GNU ld section
  59235. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  59236. - ;;
  59237. +# No sense in running all these tests if we already determined that
  59238. +# the F77 compiler isn't working. Some variables (like enable_shared)
  59239. +# are currently assumed to apply to all compilers on this platform,
  59240. +# and will be corrupted by setting them based on a non-working compiler.
  59241. +if test "$_lt_disable_F77" != yes; then
  59242. + # Code to be used in simple compile tests
  59243. + lt_simple_compile_test_code="\
  59244. + subroutine t
  59245. + return
  59246. + end
  59247. +"
  59248. - bsdi4*)
  59249. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  59250. - ;;
  59251. + # Code to be used in simple link tests
  59252. + lt_simple_link_test_code="\
  59253. + program t
  59254. + end
  59255. +"
  59256. - cygwin* | mingw* | pw32*)
  59257. - # When not using gcc, we currently assume that we are using
  59258. - # Microsoft Visual C++.
  59259. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  59260. - # no search path for DLLs.
  59261. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  59262. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  59263. - # Tell ltmain to make .lib files, not .a files.
  59264. - libext=lib
  59265. - # Tell ltmain to make .dll files, not .so files.
  59266. - shrext_cmds=".dll"
  59267. - # FIXME: Setting linknames here is a bad hack.
  59268. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  59269. - # The linker will automatically build a .lib file if we build a DLL.
  59270. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  59271. - # FIXME: Should let the user specify the lib program.
  59272. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  59273. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  59274. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  59275. - ;;
  59276. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59277. + _LT_TAG_COMPILER
  59278. - darwin* | rhapsody*)
  59279. - if test "$GXX" = yes ; then
  59280. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  59281. - case "$host_os" in
  59282. - rhapsody* | darwin1.[[012]])
  59283. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  59284. - ;;
  59285. - *) # Darwin 1.3 on
  59286. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  59287. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  59288. - else
  59289. - case ${MACOSX_DEPLOYMENT_TARGET} in
  59290. - 10.[[012]])
  59291. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  59292. - ;;
  59293. - 10.*)
  59294. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  59295. - ;;
  59296. - esac
  59297. - fi
  59298. - ;;
  59299. - esac
  59300. - lt_int_apple_cc_single_mod=no
  59301. - output_verbose_link_cmd='echo'
  59302. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  59303. - lt_int_apple_cc_single_mod=yes
  59304. - fi
  59305. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  59306. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  59307. - else
  59308. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  59309. - fi
  59310. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  59311. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  59312. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  59313. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  59314. - else
  59315. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  59316. + # save warnings/boilerplate of simple test code
  59317. + _LT_COMPILER_BOILERPLATE
  59318. + _LT_LINKER_BOILERPLATE
  59319. +
  59320. + # Allow CC to be a program name with arguments.
  59321. + lt_save_CC="$CC"
  59322. + lt_save_GCC=$GCC
  59323. + CC=${F77-"f77"}
  59324. + compiler=$CC
  59325. + _LT_TAGVAR(compiler, $1)=$CC
  59326. + _LT_CC_BASENAME([$compiler])
  59327. + GCC=$G77
  59328. + if test -n "$compiler"; then
  59329. + AC_MSG_CHECKING([if libtool supports shared libraries])
  59330. + AC_MSG_RESULT([$can_build_shared])
  59331. +
  59332. + AC_MSG_CHECKING([whether to build shared libraries])
  59333. + test "$can_build_shared" = "no" && enable_shared=no
  59334. +
  59335. + # On AIX, shared libraries and static libraries use the same namespace, and
  59336. + # are all built from PIC.
  59337. + case $host_os in
  59338. + aix3*)
  59339. + test "$enable_shared" = yes && enable_static=no
  59340. + if test -n "$RANLIB"; then
  59341. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  59342. + postinstall_cmds='$RANLIB $lib'
  59343. fi
  59344. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  59345. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  59346. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  59347. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  59348. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  59349. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  59350. - else
  59351. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  59352. - fi
  59353. - ;;
  59354. + ;;
  59355. + aix[[4-9]]*)
  59356. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  59357. + test "$enable_shared" = yes && enable_static=no
  59358. + fi
  59359. + ;;
  59360. + esac
  59361. + AC_MSG_RESULT([$enable_shared])
  59362. - dgux*)
  59363. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59364. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59365. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59366. - ;;
  59367. + AC_MSG_CHECKING([whether to build static libraries])
  59368. + # Make sure either enable_shared or enable_static is yes.
  59369. + test "$enable_shared" = yes || enable_static=yes
  59370. + AC_MSG_RESULT([$enable_static])
  59371. +
  59372. + _LT_TAGVAR(GCC, $1)="$G77"
  59373. + _LT_TAGVAR(LD, $1)="$LD"
  59374. +
  59375. + ## CAVEAT EMPTOR:
  59376. + ## There is no encapsulation within the following macros, do not change
  59377. + ## the running order or otherwise move them around unless you know exactly
  59378. + ## what you are doing...
  59379. + _LT_COMPILER_PIC($1)
  59380. + _LT_COMPILER_C_O($1)
  59381. + _LT_COMPILER_FILE_LOCKS($1)
  59382. + _LT_LINKER_SHLIBS($1)
  59383. + _LT_SYS_DYNAMIC_LINKER($1)
  59384. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59385. +
  59386. + _LT_CONFIG($1)
  59387. + fi # test -n "$compiler"
  59388. +
  59389. + GCC=$lt_save_GCC
  59390. + CC="$lt_save_CC"
  59391. +fi # test "$_lt_disable_F77" != yes
  59392. - freebsd1*)
  59393. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  59394. - ;;
  59395. +AC_LANG_POP
  59396. +])# _LT_LANG_F77_CONFIG
  59397. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  59398. - # support. Future versions do this automatically, but an explicit c++rt0.o
  59399. - # does not break anything, and helps significantly (at the cost of a little
  59400. - # extra space).
  59401. - freebsd2.2*)
  59402. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  59403. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59404. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59405. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59406. - ;;
  59407. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  59408. - freebsd2*)
  59409. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  59410. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59411. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59412. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59413. - ;;
  59414. +# _LT_PROG_FC
  59415. +# -----------
  59416. +# Since AC_PROG_FC is broken, in that it returns the empty string
  59417. +# if there is no fortran compiler, we have our own version here.
  59418. +m4_defun([_LT_PROG_FC],
  59419. +[
  59420. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  59421. +AC_PROG_FC
  59422. +if test -z "$FC" || test "X$FC" = "Xno"; then
  59423. + _lt_disable_FC=yes
  59424. +fi
  59425. +popdef([AC_MSG_ERROR])
  59426. +])# _LT_PROG_FC
  59427. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  59428. - freebsd* | kfreebsd*-gnu)
  59429. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  59430. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59431. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59432. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59433. - ;;
  59434. +dnl aclocal-1.4 backwards compatibility:
  59435. +dnl AC_DEFUN([_LT_PROG_FC], [])
  59436. - hpux9*)
  59437. - if test "$GCC" = yes; then
  59438. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  59439. - else
  59440. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  59441. - fi
  59442. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  59443. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59444. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59445. - # hardcode_minus_L: Not really in the search PATH,
  59446. - # but as the default location of the library.
  59447. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59448. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  59449. - ;;
  59450. +# _LT_LANG_FC_CONFIG([TAG])
  59451. +# -------------------------
  59452. +# Ensure that the configuration variables for a Fortran compiler are
  59453. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  59454. +# to write the compiler configuration to `libtool'.
  59455. +m4_defun([_LT_LANG_FC_CONFIG],
  59456. +[AC_REQUIRE([_LT_PROG_FC])dnl
  59457. +AC_LANG_PUSH(Fortran)
  59458. +
  59459. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59460. +_LT_TAGVAR(allow_undefined_flag, $1)=
  59461. +_LT_TAGVAR(always_export_symbols, $1)=no
  59462. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  59463. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  59464. +_LT_TAGVAR(hardcode_direct, $1)=no
  59465. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  59466. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59467. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  59468. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  59469. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  59470. +_LT_TAGVAR(hardcode_automatic, $1)=no
  59471. +_LT_TAGVAR(inherit_rpath, $1)=no
  59472. +_LT_TAGVAR(module_cmds, $1)=
  59473. +_LT_TAGVAR(module_expsym_cmds, $1)=
  59474. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  59475. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  59476. +_LT_TAGVAR(no_undefined_flag, $1)=
  59477. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  59478. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  59479. - hpux10* | hpux11*)
  59480. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  59481. - case "$host_cpu" in
  59482. - hppa*64*|ia64*)
  59483. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  59484. - ;;
  59485. - *)
  59486. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  59487. - ;;
  59488. - esac
  59489. - else
  59490. - case "$host_cpu" in
  59491. - hppa*64*|ia64*)
  59492. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  59493. - ;;
  59494. - *)
  59495. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  59496. - ;;
  59497. - esac
  59498. - fi
  59499. - if test "$with_gnu_ld" = no; then
  59500. - case "$host_cpu" in
  59501. - hppa*64*)
  59502. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  59503. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  59504. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59505. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  59506. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59507. - ;;
  59508. - ia64*)
  59509. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59510. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  59511. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59512. +# Source file extension for fc test sources.
  59513. +ac_ext=${ac_fc_srcext-f}
  59514. - # hardcode_minus_L: Not really in the search PATH,
  59515. - # but as the default location of the library.
  59516. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59517. - ;;
  59518. - *)
  59519. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  59520. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59521. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59522. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  59523. +# Object file extension for compiled fc test sources.
  59524. +objext=o
  59525. +_LT_TAGVAR(objext, $1)=$objext
  59526. - # hardcode_minus_L: Not really in the search PATH,
  59527. - # but as the default location of the library.
  59528. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59529. - ;;
  59530. - esac
  59531. - fi
  59532. - ;;
  59533. +# No sense in running all these tests if we already determined that
  59534. +# the FC compiler isn't working. Some variables (like enable_shared)
  59535. +# are currently assumed to apply to all compilers on this platform,
  59536. +# and will be corrupted by setting them based on a non-working compiler.
  59537. +if test "$_lt_disable_FC" != yes; then
  59538. + # Code to be used in simple compile tests
  59539. + lt_simple_compile_test_code="\
  59540. + subroutine t
  59541. + return
  59542. + end
  59543. +"
  59544. - irix5* | irix6* | nonstopux*)
  59545. - if test "$GCC" = yes; then
  59546. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  59547. - else
  59548. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  59549. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  59550. - fi
  59551. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59552. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59553. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  59554. - ;;
  59555. + # Code to be used in simple link tests
  59556. + lt_simple_link_test_code="\
  59557. + program t
  59558. + end
  59559. +"
  59560. +
  59561. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59562. + _LT_TAG_COMPILER
  59563. +
  59564. + # save warnings/boilerplate of simple test code
  59565. + _LT_COMPILER_BOILERPLATE
  59566. + _LT_LINKER_BOILERPLATE
  59567. +
  59568. + # Allow CC to be a program name with arguments.
  59569. + lt_save_CC="$CC"
  59570. + lt_save_GCC=$GCC
  59571. + CC=${FC-"f95"}
  59572. + compiler=$CC
  59573. + GCC=$ac_cv_fc_compiler_gnu
  59574. +
  59575. + _LT_TAGVAR(compiler, $1)=$CC
  59576. + _LT_CC_BASENAME([$compiler])
  59577. +
  59578. + if test -n "$compiler"; then
  59579. + AC_MSG_CHECKING([if libtool supports shared libraries])
  59580. + AC_MSG_RESULT([$can_build_shared])
  59581. +
  59582. + AC_MSG_CHECKING([whether to build shared libraries])
  59583. + test "$can_build_shared" = "no" && enable_shared=no
  59584. +
  59585. + # On AIX, shared libraries and static libraries use the same namespace, and
  59586. + # are all built from PIC.
  59587. + case $host_os in
  59588. + aix3*)
  59589. + test "$enable_shared" = yes && enable_static=no
  59590. + if test -n "$RANLIB"; then
  59591. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  59592. + postinstall_cmds='$RANLIB $lib'
  59593. + fi
  59594. + ;;
  59595. + aix[[4-9]]*)
  59596. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  59597. + test "$enable_shared" = yes && enable_static=no
  59598. + fi
  59599. + ;;
  59600. + esac
  59601. + AC_MSG_RESULT([$enable_shared])
  59602. +
  59603. + AC_MSG_CHECKING([whether to build static libraries])
  59604. + # Make sure either enable_shared or enable_static is yes.
  59605. + test "$enable_shared" = yes || enable_static=yes
  59606. + AC_MSG_RESULT([$enable_static])
  59607. +
  59608. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  59609. + _LT_TAGVAR(LD, $1)="$LD"
  59610. +
  59611. + ## CAVEAT EMPTOR:
  59612. + ## There is no encapsulation within the following macros, do not change
  59613. + ## the running order or otherwise move them around unless you know exactly
  59614. + ## what you are doing...
  59615. + _LT_SYS_HIDDEN_LIBDEPS($1)
  59616. + _LT_COMPILER_PIC($1)
  59617. + _LT_COMPILER_C_O($1)
  59618. + _LT_COMPILER_FILE_LOCKS($1)
  59619. + _LT_LINKER_SHLIBS($1)
  59620. + _LT_SYS_DYNAMIC_LINKER($1)
  59621. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59622. +
  59623. + _LT_CONFIG($1)
  59624. + fi # test -n "$compiler"
  59625. +
  59626. + GCC=$lt_save_GCC
  59627. + CC="$lt_save_CC"
  59628. +fi # test "$_lt_disable_FC" != yes
  59629. +
  59630. +AC_LANG_POP
  59631. +])# _LT_LANG_FC_CONFIG
  59632. +
  59633. +
  59634. +# _LT_LANG_GCJ_CONFIG([TAG])
  59635. +# --------------------------
  59636. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  59637. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  59638. +# to write the compiler configuration to `libtool'.
  59639. +m4_defun([_LT_LANG_GCJ_CONFIG],
  59640. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  59641. +AC_LANG_SAVE
  59642. +
  59643. +# Source file extension for Java test sources.
  59644. +ac_ext=java
  59645. +
  59646. +# Object file extension for compiled Java test sources.
  59647. +objext=o
  59648. +_LT_TAGVAR(objext, $1)=$objext
  59649. +
  59650. +# Code to be used in simple compile tests
  59651. +lt_simple_compile_test_code="class foo {}"
  59652. +
  59653. +# Code to be used in simple link tests
  59654. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  59655. - netbsd* | knetbsd*-gnu)
  59656. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  59657. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  59658. - else
  59659. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  59660. - fi
  59661. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59662. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59663. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59664. - ;;
  59665. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59666. +_LT_TAG_COMPILER
  59667. - newsos6)
  59668. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59669. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59670. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59671. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59672. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59673. - ;;
  59674. +# save warnings/boilerplate of simple test code
  59675. +_LT_COMPILER_BOILERPLATE
  59676. +_LT_LINKER_BOILERPLATE
  59677. - openbsd*)
  59678. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59679. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59680. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  59681. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  59682. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  59683. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  59684. - else
  59685. - case $host_os in
  59686. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  59687. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  59688. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59689. - ;;
  59690. - *)
  59691. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  59692. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  59693. - ;;
  59694. - esac
  59695. - fi
  59696. - ;;
  59697. +# Allow CC to be a program name with arguments.
  59698. +lt_save_CC="$CC"
  59699. +lt_save_GCC=$GCC
  59700. +GCC=yes
  59701. +CC=${GCJ-"gcj"}
  59702. +compiler=$CC
  59703. +_LT_TAGVAR(compiler, $1)=$CC
  59704. +_LT_TAGVAR(LD, $1)="$LD"
  59705. +_LT_CC_BASENAME([$compiler])
  59706. - os2*)
  59707. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59708. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59709. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  59710. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  59711. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  59712. - ;;
  59713. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  59714. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  59715. - osf3*)
  59716. - if test "$GCC" = yes; then
  59717. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  59718. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  59719. - else
  59720. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  59721. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  59722. - fi
  59723. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59724. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59725. - ;;
  59726. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  59727. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  59728. - if test "$GCC" = yes; then
  59729. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  59730. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  59731. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  59732. - else
  59733. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  59734. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  59735. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  59736. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  59737. +## CAVEAT EMPTOR:
  59738. +## There is no encapsulation within the following macros, do not change
  59739. +## the running order or otherwise move them around unless you know exactly
  59740. +## what you are doing...
  59741. +if test -n "$compiler"; then
  59742. + _LT_COMPILER_NO_RTTI($1)
  59743. + _LT_COMPILER_PIC($1)
  59744. + _LT_COMPILER_C_O($1)
  59745. + _LT_COMPILER_FILE_LOCKS($1)
  59746. + _LT_LINKER_SHLIBS($1)
  59747. + _LT_LINKER_HARDCODE_LIBPATH($1)
  59748. - # Both c and cxx compiler support -rpath directly
  59749. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  59750. - fi
  59751. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  59752. - ;;
  59753. + _LT_CONFIG($1)
  59754. +fi
  59755. - sco3.2v5*)
  59756. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59757. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59758. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  59759. - runpath_var=LD_RUN_PATH
  59760. - hardcode_runpath_var=yes
  59761. - ;;
  59762. +AC_LANG_RESTORE
  59763. - solaris*)
  59764. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  59765. - if test "$GCC" = yes; then
  59766. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  59767. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  59768. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  59769. - else
  59770. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59771. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  59772. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  59773. - fi
  59774. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  59775. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59776. - case $host_os in
  59777. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  59778. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  59779. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  59780. - esac
  59781. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  59782. - ;;
  59783. +GCC=$lt_save_GCC
  59784. +CC="$lt_save_CC"
  59785. +])# _LT_LANG_GCJ_CONFIG
  59786. - sunos4*)
  59787. - if test "x$host_vendor" = xsequent; then
  59788. - # Use $CC to link under sequent, because it throws in some extra .o
  59789. - # files that make .init and .fini sections work.
  59790. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  59791. - else
  59792. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  59793. - fi
  59794. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59795. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59796. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  59797. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59798. - ;;
  59799. - sysv4)
  59800. - case $host_vendor in
  59801. - sni)
  59802. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59803. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  59804. - ;;
  59805. - siemens)
  59806. - ## LD is ld it makes a PLAMLIB
  59807. - ## CC just makes a GrossModule.
  59808. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  59809. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  59810. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  59811. - ;;
  59812. - motorola)
  59813. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59814. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  59815. - ;;
  59816. - esac
  59817. - runpath_var='LD_RUN_PATH'
  59818. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59819. - ;;
  59820. +# _LT_LANG_RC_CONFIG([TAG])
  59821. +# -------------------------
  59822. +# Ensure that the configuration variables for the Windows resource compiler
  59823. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  59824. +# to write the compiler configuration to `libtool'.
  59825. +m4_defun([_LT_LANG_RC_CONFIG],
  59826. +[AC_REQUIRE([LT_PROG_RC])dnl
  59827. +AC_LANG_SAVE
  59828. - sysv4.3*)
  59829. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59830. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59831. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  59832. - ;;
  59833. +# Source file extension for RC test sources.
  59834. +ac_ext=rc
  59835. - sysv4*MP*)
  59836. - if test -d /usr/nec; then
  59837. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59838. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59839. - runpath_var=LD_RUN_PATH
  59840. - hardcode_runpath_var=yes
  59841. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  59842. - fi
  59843. - ;;
  59844. +# Object file extension for compiled RC test sources.
  59845. +objext=o
  59846. +_LT_TAGVAR(objext, $1)=$objext
  59847. - sysv4.2uw2*)
  59848. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  59849. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  59850. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  59851. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59852. - hardcode_runpath_var=yes
  59853. - runpath_var=LD_RUN_PATH
  59854. - ;;
  59855. +# Code to be used in simple compile tests
  59856. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  59857. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  59858. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  59859. - if test "$GCC" = yes; then
  59860. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  59861. - else
  59862. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  59863. - fi
  59864. - runpath_var='LD_RUN_PATH'
  59865. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59866. - ;;
  59867. +# Code to be used in simple link tests
  59868. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  59869. - sysv5*)
  59870. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  59871. - # $CC -shared without GNU ld will not create a library from C++
  59872. - # object files and a static libstdc++, better avoid it by now
  59873. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59874. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  59875. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  59876. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  59877. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59878. - runpath_var='LD_RUN_PATH'
  59879. - ;;
  59880. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  59881. +_LT_TAG_COMPILER
  59882. - uts4*)
  59883. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  59884. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  59885. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  59886. - ;;
  59887. +# save warnings/boilerplate of simple test code
  59888. +_LT_COMPILER_BOILERPLATE
  59889. +_LT_LINKER_BOILERPLATE
  59890. - *)
  59891. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  59892. - ;;
  59893. - esac
  59894. - fi
  59895. -])
  59896. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  59897. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  59898. +# Allow CC to be a program name with arguments.
  59899. +lt_save_CC="$CC"
  59900. +lt_save_GCC=$GCC
  59901. +GCC=
  59902. +CC=${RC-"windres"}
  59903. +compiler=$CC
  59904. +_LT_TAGVAR(compiler, $1)=$CC
  59905. +_LT_CC_BASENAME([$compiler])
  59906. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  59907. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  59908. -if test "$GCC" = yes; then
  59909. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  59910. +if test -n "$compiler"; then
  59911. + :
  59912. + _LT_CONFIG($1)
  59913. fi
  59914. -#
  59915. -# Do we need to explicitly link libc?
  59916. -#
  59917. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  59918. -x|xyes)
  59919. - # Assume -lc should be added
  59920. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  59921. +GCC=$lt_save_GCC
  59922. +AC_LANG_RESTORE
  59923. +CC="$lt_save_CC"
  59924. +])# _LT_LANG_RC_CONFIG
  59925. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  59926. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  59927. - *'~'*)
  59928. - # FIXME: we may have to deal with multi-command sequences.
  59929. - ;;
  59930. - '$CC '*)
  59931. - # Test whether the compiler implicitly links with -lc since on some
  59932. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  59933. - # to ld, don't add -lc before -lgcc.
  59934. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  59935. - $rm conftest*
  59936. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  59937. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  59938. - soname=conftest
  59939. - lib=conftest
  59940. - libobjs=conftest.$ac_objext
  59941. - deplibs=
  59942. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  59943. - compiler_flags=-v
  59944. - linker_flags=-v
  59945. - verstring=
  59946. - output_objdir=.
  59947. - libname=conftest
  59948. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  59949. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  59950. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  59951. - then
  59952. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  59953. - else
  59954. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  59955. - fi
  59956. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  59957. - else
  59958. - cat conftest.err 1>&5
  59959. - fi
  59960. - $rm conftest*
  59961. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  59962. - ;;
  59963. - esac
  59964. - fi
  59965. - ;;
  59966. -esac
  59967. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  59968. +# LT_PROG_GCJ
  59969. +# -----------
  59970. +AC_DEFUN([LT_PROG_GCJ],
  59971. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  59972. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  59973. + [AC_CHECK_TOOL(GCJ, gcj,)
  59974. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  59975. + AC_SUBST(GCJFLAGS)])])[]dnl
  59976. +])
  59977. +# Old name:
  59978. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  59979. +dnl aclocal-1.4 backwards compatibility:
  59980. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  59981. -# _LT_AC_FILE_LTDLL_C
  59982. -# -------------------
  59983. -# Be careful that the start marker always follows a newline.
  59984. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  59985. -# /* ltdll.c starts here */
  59986. -# #define WIN32_LEAN_AND_MEAN
  59987. -# #include <windows.h>
  59988. -# #undef WIN32_LEAN_AND_MEAN
  59989. -# #include <stdio.h>
  59990. -#
  59991. -# #ifndef __CYGWIN__
  59992. -# # ifdef __CYGWIN32__
  59993. -# # define __CYGWIN__ __CYGWIN32__
  59994. -# # endif
  59995. -# #endif
  59996. -#
  59997. -# #ifdef __cplusplus
  59998. -# extern "C" {
  59999. -# #endif
  60000. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  60001. -# #ifdef __cplusplus
  60002. -# }
  60003. -# #endif
  60004. -#
  60005. -# #ifdef __CYGWIN__
  60006. -# #include <cygwin/cygwin_dll.h>
  60007. -# DECLARE_CYGWIN_DLL( DllMain );
  60008. -# #endif
  60009. -# HINSTANCE __hDllInstance_base;
  60010. -#
  60011. -# BOOL APIENTRY
  60012. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  60013. -# {
  60014. -# __hDllInstance_base = hInst;
  60015. -# return TRUE;
  60016. -# }
  60017. -# /* ltdll.c ends here */
  60018. -])# _LT_AC_FILE_LTDLL_C
  60019. +# LT_PROG_RC
  60020. +# ----------
  60021. +AC_DEFUN([LT_PROG_RC],
  60022. +[AC_CHECK_TOOL(RC, windres,)
  60023. +])
  60024. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  60025. -# ---------------------------------
  60026. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  60027. +# Old name:
  60028. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  60029. +dnl aclocal-1.4 backwards compatibility:
  60030. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  60031. -# old names
  60032. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  60033. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  60034. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  60035. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  60036. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  60037. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  60038. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  60039. -
  60040. -# This is just to silence aclocal about the macro not being used
  60041. -ifelse([AC_DISABLE_FAST_INSTALL])
  60042. -
  60043. -AC_DEFUN([LT_AC_PROG_GCJ],
  60044. -[AC_CHECK_TOOL(GCJ, gcj, no)
  60045. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  60046. - AC_SUBST(GCJFLAGS)
  60047. +# _LT_DECL_EGREP
  60048. +# --------------
  60049. +# If we don't have a new enough Autoconf to choose the best grep
  60050. +# available, choose the one first in the user's PATH.
  60051. +m4_defun([_LT_DECL_EGREP],
  60052. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  60053. +AC_REQUIRE([AC_PROG_FGREP])dnl
  60054. +test -z "$GREP" && GREP=grep
  60055. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  60056. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  60057. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  60058. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  60059. +AC_SUBST([GREP])
  60060. ])
  60061. -AC_DEFUN([LT_AC_PROG_RC],
  60062. -[AC_CHECK_TOOL(RC, windres, no)
  60063. +
  60064. +# _LT_DECL_OBJDUMP
  60065. +# --------------
  60066. +# If we don't have a new enough Autoconf to choose the best objdump
  60067. +# available, choose the one first in the user's PATH.
  60068. +m4_defun([_LT_DECL_OBJDUMP],
  60069. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  60070. +test -z "$OBJDUMP" && OBJDUMP=objdump
  60071. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  60072. +AC_SUBST([OBJDUMP])
  60073. ])
  60074. +
  60075. +# _LT_DECL_SED
  60076. +# ------------
  60077. +# Check for a fully-functional sed program, that truncates
  60078. +# as few characters as possible. Prefer GNU sed if found.
  60079. +m4_defun([_LT_DECL_SED],
  60080. +[AC_PROG_SED
  60081. +test -z "$SED" && SED=sed
  60082. +Xsed="$SED -e 1s/^X//"
  60083. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  60084. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  60085. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  60086. +])# _LT_DECL_SED
  60087. +
  60088. +m4_ifndef([AC_PROG_SED], [
  60089. ############################################################
  60090. # NOTE: This macro has been submitted for inclusion into #
  60091. # GNU Autoconf as AC_PROG_SED. When it is available in #
  60092. # a released version of Autoconf we should remove this #
  60093. # macro and use it instead. #
  60094. ############################################################
  60095. -# LT_AC_PROG_SED
  60096. -# --------------
  60097. -# Check for a fully-functional sed program, that truncates
  60098. -# as few characters as possible. Prefer GNU sed if found.
  60099. -AC_DEFUN([LT_AC_PROG_SED],
  60100. +
  60101. +m4_defun([AC_PROG_SED],
  60102. [AC_MSG_CHECKING([for a sed that does not truncate output])
  60103. AC_CACHE_VAL(lt_cv_path_SED,
  60104. [# Loop through the user's path and test for sed and gsed.
  60105. @@ -5903,12 +7077,13 @@
  60106. done
  60107. done
  60108. done
  60109. +IFS=$as_save_IFS
  60110. lt_ac_max=0
  60111. lt_ac_count=0
  60112. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  60113. # along with /bin/sed that truncates output.
  60114. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  60115. - test ! -f $lt_ac_sed && break
  60116. + test ! -f $lt_ac_sed && continue
  60117. cat /dev/null > conftest.in
  60118. lt_ac_count=0
  60119. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  60120. @@ -5933,7 +7108,270 @@
  60121. fi
  60122. done
  60123. done
  60124. -SED=$lt_cv_path_SED
  60125. ])
  60126. +SED=$lt_cv_path_SED
  60127. +AC_SUBST([SED])
  60128. AC_MSG_RESULT([$SED])
  60129. +])#AC_PROG_SED
  60130. +])#m4_ifndef
  60131. +
  60132. +# Old name:
  60133. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  60134. +dnl aclocal-1.4 backwards compatibility:
  60135. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  60136. +
  60137. +
  60138. +# _LT_CHECK_SHELL_FEATURES
  60139. +# ------------------------
  60140. +# Find out whether the shell is Bourne or XSI compatible,
  60141. +# or has some other useful features.
  60142. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  60143. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  60144. +# Try some XSI features
  60145. +xsi_shell=no
  60146. +( _lt_dummy="a/b/c"
  60147. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  60148. + = c,a/b,, \
  60149. + && eval 'test $(( 1 + 1 )) -eq 2 \
  60150. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  60151. + && xsi_shell=yes
  60152. +AC_MSG_RESULT([$xsi_shell])
  60153. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  60154. +
  60155. +AC_MSG_CHECKING([whether the shell understands "+="])
  60156. +lt_shell_append=no
  60157. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  60158. + >/dev/null 2>&1 \
  60159. + && lt_shell_append=yes
  60160. +AC_MSG_RESULT([$lt_shell_append])
  60161. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  60162. +
  60163. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  60164. + lt_unset=unset
  60165. +else
  60166. + lt_unset=false
  60167. +fi
  60168. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  60169. +
  60170. +# test EBCDIC or ASCII
  60171. +case `echo X|tr X '\101'` in
  60172. + A) # ASCII based system
  60173. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  60174. + lt_SP2NL='tr \040 \012'
  60175. + lt_NL2SP='tr \015\012 \040\040'
  60176. + ;;
  60177. + *) # EBCDIC based system
  60178. + lt_SP2NL='tr \100 \n'
  60179. + lt_NL2SP='tr \r\n \100\100'
  60180. + ;;
  60181. +esac
  60182. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  60183. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  60184. +])# _LT_CHECK_SHELL_FEATURES
  60185. +
  60186. +
  60187. +# _LT_PROG_XSI_SHELLFNS
  60188. +# ---------------------
  60189. +# Bourne and XSI compatible variants of some useful shell functions.
  60190. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  60191. +[case $xsi_shell in
  60192. + yes)
  60193. + cat << \_LT_EOF >> "$cfgfile"
  60194. +
  60195. +# func_dirname file append nondir_replacement
  60196. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  60197. +# otherwise set result to NONDIR_REPLACEMENT.
  60198. +func_dirname ()
  60199. +{
  60200. + case ${1} in
  60201. + */*) func_dirname_result="${1%/*}${2}" ;;
  60202. + * ) func_dirname_result="${3}" ;;
  60203. + esac
  60204. +}
  60205. +
  60206. +# func_basename file
  60207. +func_basename ()
  60208. +{
  60209. + func_basename_result="${1##*/}"
  60210. +}
  60211. +
  60212. +# func_dirname_and_basename file append nondir_replacement
  60213. +# perform func_basename and func_dirname in a single function
  60214. +# call:
  60215. +# dirname: Compute the dirname of FILE. If nonempty,
  60216. +# add APPEND to the result, otherwise set result
  60217. +# to NONDIR_REPLACEMENT.
  60218. +# value returned in "$func_dirname_result"
  60219. +# basename: Compute filename of FILE.
  60220. +# value retuned in "$func_basename_result"
  60221. +# Implementation must be kept synchronized with func_dirname
  60222. +# and func_basename. For efficiency, we do not delegate to
  60223. +# those functions but instead duplicate the functionality here.
  60224. +func_dirname_and_basename ()
  60225. +{
  60226. + case ${1} in
  60227. + */*) func_dirname_result="${1%/*}${2}" ;;
  60228. + * ) func_dirname_result="${3}" ;;
  60229. + esac
  60230. + func_basename_result="${1##*/}"
  60231. +}
  60232. +
  60233. +# func_stripname prefix suffix name
  60234. +# strip PREFIX and SUFFIX off of NAME.
  60235. +# PREFIX and SUFFIX must not contain globbing or regex special
  60236. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  60237. +# dot (in which case that matches only a dot).
  60238. +func_stripname ()
  60239. +{
  60240. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  60241. + # positional parameters, so assign one to ordinary parameter first.
  60242. + func_stripname_result=${3}
  60243. + func_stripname_result=${func_stripname_result#"${1}"}
  60244. + func_stripname_result=${func_stripname_result%"${2}"}
  60245. +}
  60246. +
  60247. +# func_opt_split
  60248. +func_opt_split ()
  60249. +{
  60250. + func_opt_split_opt=${1%%=*}
  60251. + func_opt_split_arg=${1#*=}
  60252. +}
  60253. +
  60254. +# func_lo2o object
  60255. +func_lo2o ()
  60256. +{
  60257. + case ${1} in
  60258. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  60259. + *) func_lo2o_result=${1} ;;
  60260. + esac
  60261. +}
  60262. +
  60263. +# func_xform libobj-or-source
  60264. +func_xform ()
  60265. +{
  60266. + func_xform_result=${1%.*}.lo
  60267. +}
  60268. +
  60269. +# func_arith arithmetic-term...
  60270. +func_arith ()
  60271. +{
  60272. + func_arith_result=$(( $[*] ))
  60273. +}
  60274. +
  60275. +# func_len string
  60276. +# STRING may not start with a hyphen.
  60277. +func_len ()
  60278. +{
  60279. + func_len_result=${#1}
  60280. +}
  60281. +
  60282. +_LT_EOF
  60283. + ;;
  60284. + *) # Bourne compatible functions.
  60285. + cat << \_LT_EOF >> "$cfgfile"
  60286. +
  60287. +# func_dirname file append nondir_replacement
  60288. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  60289. +# otherwise set result to NONDIR_REPLACEMENT.
  60290. +func_dirname ()
  60291. +{
  60292. + # Extract subdirectory from the argument.
  60293. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  60294. + if test "X$func_dirname_result" = "X${1}"; then
  60295. + func_dirname_result="${3}"
  60296. + else
  60297. + func_dirname_result="$func_dirname_result${2}"
  60298. + fi
  60299. +}
  60300. +
  60301. +# func_basename file
  60302. +func_basename ()
  60303. +{
  60304. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  60305. +}
  60306. +
  60307. +dnl func_dirname_and_basename
  60308. +dnl A portable version of this function is already defined in general.m4sh
  60309. +dnl so there is no need for it here.
  60310. +
  60311. +# func_stripname prefix suffix name
  60312. +# strip PREFIX and SUFFIX off of NAME.
  60313. +# PREFIX and SUFFIX must not contain globbing or regex special
  60314. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  60315. +# dot (in which case that matches only a dot).
  60316. +# func_strip_suffix prefix name
  60317. +func_stripname ()
  60318. +{
  60319. + case ${2} in
  60320. + .*) func_stripname_result=`$ECHO "X${3}" \
  60321. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  60322. + *) func_stripname_result=`$ECHO "X${3}" \
  60323. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  60324. + esac
  60325. +}
  60326. +
  60327. +# sed scripts:
  60328. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  60329. +my_sed_long_arg='1s/^-[[^=]]*=//'
  60330. +
  60331. +# func_opt_split
  60332. +func_opt_split ()
  60333. +{
  60334. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  60335. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  60336. +}
  60337. +
  60338. +# func_lo2o object
  60339. +func_lo2o ()
  60340. +{
  60341. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  60342. +}
  60343. +
  60344. +# func_xform libobj-or-source
  60345. +func_xform ()
  60346. +{
  60347. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  60348. +}
  60349. +
  60350. +# func_arith arithmetic-term...
  60351. +func_arith ()
  60352. +{
  60353. + func_arith_result=`expr "$[@]"`
  60354. +}
  60355. +
  60356. +# func_len string
  60357. +# STRING may not start with a hyphen.
  60358. +func_len ()
  60359. +{
  60360. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  60361. +}
  60362. +
  60363. +_LT_EOF
  60364. +esac
  60365. +
  60366. +case $lt_shell_append in
  60367. + yes)
  60368. + cat << \_LT_EOF >> "$cfgfile"
  60369. +
  60370. +# func_append var value
  60371. +# Append VALUE to the end of shell variable VAR.
  60372. +func_append ()
  60373. +{
  60374. + eval "$[1]+=\$[2]"
  60375. +}
  60376. +_LT_EOF
  60377. + ;;
  60378. + *)
  60379. + cat << \_LT_EOF >> "$cfgfile"
  60380. +
  60381. +# func_append var value
  60382. +# Append VALUE to the end of shell variable VAR.
  60383. +func_append ()
  60384. +{
  60385. + eval "$[1]=\$$[1]\$[2]"
  60386. +}
  60387. +
  60388. +_LT_EOF
  60389. + ;;
  60390. + esac
  60391. ])
  60392. diff -Nur libgcrypt-1.4.5.orig/m4/lt~obsolete.m4 libgcrypt-1.4.5/m4/lt~obsolete.m4
  60393. --- libgcrypt-1.4.5.orig/m4/lt~obsolete.m4 1970-01-01 01:00:00.000000000 +0100
  60394. +++ libgcrypt-1.4.5/m4/lt~obsolete.m4 2011-02-16 16:00:40.604802514 +0100
  60395. @@ -0,0 +1,92 @@
  60396. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  60397. +#
  60398. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  60399. +# Written by Scott James Remnant, 2004.
  60400. +#
  60401. +# This file is free software; the Free Software Foundation gives
  60402. +# unlimited permission to copy and/or distribute it, with or without
  60403. +# modifications, as long as this notice is preserved.
  60404. +
  60405. +# serial 4 lt~obsolete.m4
  60406. +
  60407. +# These exist entirely to fool aclocal when bootstrapping libtool.
  60408. +#
  60409. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  60410. +# which have later been changed to m4_define as they aren't part of the
  60411. +# exported API, or moved to Autoconf or Automake where they belong.
  60412. +#
  60413. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  60414. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  60415. +# using a macro with the same name in our local m4/libtool.m4 it'll
  60416. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  60417. +# and doesn't know about Autoconf macros at all.)
  60418. +#
  60419. +# So we provide this file, which has a silly filename so it's always
  60420. +# included after everything else. This provides aclocal with the
  60421. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  60422. +# because those macros already exist, or will be overwritten later.
  60423. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  60424. +#
  60425. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  60426. +# Yes, that means every name once taken will need to remain here until
  60427. +# we give up compatibility with versions before 1.7, at which point
  60428. +# we need to keep only those names which we still refer to.
  60429. +
  60430. +# This is to help aclocal find these macros, as it can't see m4_define.
  60431. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  60432. +
  60433. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  60434. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  60435. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  60436. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  60437. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  60438. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  60439. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  60440. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  60441. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  60442. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  60443. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  60444. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  60445. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  60446. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  60447. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  60448. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  60449. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  60450. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  60451. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  60452. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  60453. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  60454. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  60455. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  60456. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  60457. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  60458. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  60459. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  60460. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  60461. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  60462. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  60463. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  60464. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  60465. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  60466. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  60467. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  60468. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  60469. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  60470. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  60471. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  60472. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  60473. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  60474. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  60475. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  60476. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  60477. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  60478. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  60479. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  60480. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  60481. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  60482. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  60483. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  60484. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  60485. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  60486. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  60487. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  60488. diff -Nur libgcrypt-1.4.5.orig/m4/ltoptions.m4 libgcrypt-1.4.5/m4/ltoptions.m4
  60489. --- libgcrypt-1.4.5.orig/m4/ltoptions.m4 1970-01-01 01:00:00.000000000 +0100
  60490. +++ libgcrypt-1.4.5/m4/ltoptions.m4 2011-02-16 16:00:40.404804960 +0100
  60491. @@ -0,0 +1,368 @@
  60492. +# Helper functions for option handling. -*- Autoconf -*-
  60493. +#
  60494. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  60495. +# Written by Gary V. Vaughan, 2004
  60496. +#
  60497. +# This file is free software; the Free Software Foundation gives
  60498. +# unlimited permission to copy and/or distribute it, with or without
  60499. +# modifications, as long as this notice is preserved.
  60500. +
  60501. +# serial 6 ltoptions.m4
  60502. +
  60503. +# This is to help aclocal find these macros, as it can't see m4_define.
  60504. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  60505. +
  60506. +
  60507. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  60508. +# ------------------------------------------
  60509. +m4_define([_LT_MANGLE_OPTION],
  60510. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  60511. +
  60512. +
  60513. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  60514. +# ---------------------------------------
  60515. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  60516. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  60517. +# saved as a flag.
  60518. +m4_define([_LT_SET_OPTION],
  60519. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  60520. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  60521. + _LT_MANGLE_DEFUN([$1], [$2]),
  60522. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  60523. +])
  60524. +
  60525. +
  60526. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  60527. +# ------------------------------------------------------------
  60528. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  60529. +m4_define([_LT_IF_OPTION],
  60530. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  60531. +
  60532. +
  60533. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  60534. +# -------------------------------------------------------
  60535. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  60536. +# are set.
  60537. +m4_define([_LT_UNLESS_OPTIONS],
  60538. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  60539. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  60540. + [m4_define([$0_found])])])[]dnl
  60541. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  60542. +])[]dnl
  60543. +])
  60544. +
  60545. +
  60546. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  60547. +# ----------------------------------------
  60548. +# OPTION-LIST is a space-separated list of Libtool options associated
  60549. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  60550. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  60551. +# the unknown option and exit.
  60552. +m4_defun([_LT_SET_OPTIONS],
  60553. +[# Set options
  60554. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  60555. + [_LT_SET_OPTION([$1], _LT_Option)])
  60556. +
  60557. +m4_if([$1],[LT_INIT],[
  60558. + dnl
  60559. + dnl Simply set some default values (i.e off) if boolean options were not
  60560. + dnl specified:
  60561. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  60562. + ])
  60563. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  60564. + ])
  60565. + dnl
  60566. + dnl If no reference was made to various pairs of opposing options, then
  60567. + dnl we run the default mode handler for the pair. For example, if neither
  60568. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  60569. + dnl archives by default:
  60570. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  60571. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  60572. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  60573. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  60574. + [_LT_ENABLE_FAST_INSTALL])
  60575. + ])
  60576. +])# _LT_SET_OPTIONS
  60577. +
  60578. +
  60579. +## --------------------------------- ##
  60580. +## Macros to handle LT_INIT options. ##
  60581. +## --------------------------------- ##
  60582. +
  60583. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  60584. +# -----------------------------------------
  60585. +m4_define([_LT_MANGLE_DEFUN],
  60586. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  60587. +
  60588. +
  60589. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  60590. +# -----------------------------------------------
  60591. +m4_define([LT_OPTION_DEFINE],
  60592. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  60593. +])# LT_OPTION_DEFINE
  60594. +
  60595. +
  60596. +# dlopen
  60597. +# ------
  60598. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  60599. +])
  60600. +
  60601. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  60602. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  60603. +AC_DIAGNOSE([obsolete],
  60604. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60605. +put the `dlopen' option into LT_INIT's first parameter.])
  60606. +])
  60607. +
  60608. +dnl aclocal-1.4 backwards compatibility:
  60609. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  60610. +
  60611. +
  60612. +# win32-dll
  60613. +# ---------
  60614. +# Declare package support for building win32 dll's.
  60615. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  60616. +[enable_win32_dll=yes
  60617. +
  60618. +case $host in
  60619. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  60620. + AC_CHECK_TOOL(AS, as, false)
  60621. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  60622. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  60623. + ;;
  60624. +esac
  60625. +
  60626. +test -z "$AS" && AS=as
  60627. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  60628. +
  60629. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  60630. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  60631. +
  60632. +test -z "$OBJDUMP" && OBJDUMP=objdump
  60633. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  60634. +])# win32-dll
  60635. +
  60636. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  60637. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  60638. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  60639. +AC_DIAGNOSE([obsolete],
  60640. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60641. +put the `win32-dll' option into LT_INIT's first parameter.])
  60642. +])
  60643. +
  60644. +dnl aclocal-1.4 backwards compatibility:
  60645. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  60646. +
  60647. +
  60648. +# _LT_ENABLE_SHARED([DEFAULT])
  60649. +# ----------------------------
  60650. +# implement the --enable-shared flag, and supports the `shared' and
  60651. +# `disable-shared' LT_INIT options.
  60652. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  60653. +m4_define([_LT_ENABLE_SHARED],
  60654. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  60655. +AC_ARG_ENABLE([shared],
  60656. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  60657. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  60658. + [p=${PACKAGE-default}
  60659. + case $enableval in
  60660. + yes) enable_shared=yes ;;
  60661. + no) enable_shared=no ;;
  60662. + *)
  60663. + enable_shared=no
  60664. + # Look at the argument we got. We use all the common list separators.
  60665. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60666. + for pkg in $enableval; do
  60667. + IFS="$lt_save_ifs"
  60668. + if test "X$pkg" = "X$p"; then
  60669. + enable_shared=yes
  60670. + fi
  60671. + done
  60672. + IFS="$lt_save_ifs"
  60673. + ;;
  60674. + esac],
  60675. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  60676. +
  60677. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  60678. + [Whether or not to build shared libraries])
  60679. +])# _LT_ENABLE_SHARED
  60680. +
  60681. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  60682. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  60683. +
  60684. +# Old names:
  60685. +AC_DEFUN([AC_ENABLE_SHARED],
  60686. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  60687. +])
  60688. +
  60689. +AC_DEFUN([AC_DISABLE_SHARED],
  60690. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  60691. +])
  60692. +
  60693. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  60694. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  60695. +
  60696. +dnl aclocal-1.4 backwards compatibility:
  60697. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  60698. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  60699. +
  60700. +
  60701. +
  60702. +# _LT_ENABLE_STATIC([DEFAULT])
  60703. +# ----------------------------
  60704. +# implement the --enable-static flag, and support the `static' and
  60705. +# `disable-static' LT_INIT options.
  60706. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  60707. +m4_define([_LT_ENABLE_STATIC],
  60708. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  60709. +AC_ARG_ENABLE([static],
  60710. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  60711. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  60712. + [p=${PACKAGE-default}
  60713. + case $enableval in
  60714. + yes) enable_static=yes ;;
  60715. + no) enable_static=no ;;
  60716. + *)
  60717. + enable_static=no
  60718. + # Look at the argument we got. We use all the common list separators.
  60719. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60720. + for pkg in $enableval; do
  60721. + IFS="$lt_save_ifs"
  60722. + if test "X$pkg" = "X$p"; then
  60723. + enable_static=yes
  60724. + fi
  60725. + done
  60726. + IFS="$lt_save_ifs"
  60727. + ;;
  60728. + esac],
  60729. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  60730. +
  60731. + _LT_DECL([build_old_libs], [enable_static], [0],
  60732. + [Whether or not to build static libraries])
  60733. +])# _LT_ENABLE_STATIC
  60734. +
  60735. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  60736. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  60737. +
  60738. +# Old names:
  60739. +AC_DEFUN([AC_ENABLE_STATIC],
  60740. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  60741. +])
  60742. +
  60743. +AC_DEFUN([AC_DISABLE_STATIC],
  60744. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  60745. +])
  60746. +
  60747. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  60748. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  60749. +
  60750. +dnl aclocal-1.4 backwards compatibility:
  60751. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  60752. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  60753. +
  60754. +
  60755. +
  60756. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  60757. +# ----------------------------------
  60758. +# implement the --enable-fast-install flag, and support the `fast-install'
  60759. +# and `disable-fast-install' LT_INIT options.
  60760. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  60761. +m4_define([_LT_ENABLE_FAST_INSTALL],
  60762. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  60763. +AC_ARG_ENABLE([fast-install],
  60764. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  60765. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  60766. + [p=${PACKAGE-default}
  60767. + case $enableval in
  60768. + yes) enable_fast_install=yes ;;
  60769. + no) enable_fast_install=no ;;
  60770. + *)
  60771. + enable_fast_install=no
  60772. + # Look at the argument we got. We use all the common list separators.
  60773. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  60774. + for pkg in $enableval; do
  60775. + IFS="$lt_save_ifs"
  60776. + if test "X$pkg" = "X$p"; then
  60777. + enable_fast_install=yes
  60778. + fi
  60779. + done
  60780. + IFS="$lt_save_ifs"
  60781. + ;;
  60782. + esac],
  60783. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  60784. +
  60785. +_LT_DECL([fast_install], [enable_fast_install], [0],
  60786. + [Whether or not to optimize for fast installation])dnl
  60787. +])# _LT_ENABLE_FAST_INSTALL
  60788. +
  60789. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  60790. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  60791. +
  60792. +# Old names:
  60793. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  60794. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  60795. +AC_DIAGNOSE([obsolete],
  60796. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  60797. +the `fast-install' option into LT_INIT's first parameter.])
  60798. +])
  60799. +
  60800. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  60801. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  60802. +AC_DIAGNOSE([obsolete],
  60803. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  60804. +the `disable-fast-install' option into LT_INIT's first parameter.])
  60805. +])
  60806. +
  60807. +dnl aclocal-1.4 backwards compatibility:
  60808. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  60809. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  60810. +
  60811. +
  60812. +# _LT_WITH_PIC([MODE])
  60813. +# --------------------
  60814. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  60815. +# LT_INIT options.
  60816. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  60817. +m4_define([_LT_WITH_PIC],
  60818. +[AC_ARG_WITH([pic],
  60819. + [AS_HELP_STRING([--with-pic],
  60820. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  60821. + [pic_mode="$withval"],
  60822. + [pic_mode=default])
  60823. +
  60824. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  60825. +
  60826. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  60827. +])# _LT_WITH_PIC
  60828. +
  60829. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  60830. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  60831. +
  60832. +# Old name:
  60833. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  60834. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  60835. +AC_DIAGNOSE([obsolete],
  60836. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  60837. +put the `pic-only' option into LT_INIT's first parameter.])
  60838. +])
  60839. +
  60840. +dnl aclocal-1.4 backwards compatibility:
  60841. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  60842. +
  60843. +## ----------------- ##
  60844. +## LTDL_INIT Options ##
  60845. +## ----------------- ##
  60846. +
  60847. +m4_define([_LTDL_MODE], [])
  60848. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  60849. + [m4_define([_LTDL_MODE], [nonrecursive])])
  60850. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  60851. + [m4_define([_LTDL_MODE], [recursive])])
  60852. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  60853. + [m4_define([_LTDL_MODE], [subproject])])
  60854. +
  60855. +m4_define([_LTDL_TYPE], [])
  60856. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  60857. + [m4_define([_LTDL_TYPE], [installable])])
  60858. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  60859. + [m4_define([_LTDL_TYPE], [convenience])])
  60860. diff -Nur libgcrypt-1.4.5.orig/m4/ltsugar.m4 libgcrypt-1.4.5/m4/ltsugar.m4
  60861. --- libgcrypt-1.4.5.orig/m4/ltsugar.m4 1970-01-01 01:00:00.000000000 +0100
  60862. +++ libgcrypt-1.4.5/m4/ltsugar.m4 2011-02-16 16:00:40.464813563 +0100
  60863. @@ -0,0 +1,123 @@
  60864. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  60865. +#
  60866. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  60867. +# Written by Gary V. Vaughan, 2004
  60868. +#
  60869. +# This file is free software; the Free Software Foundation gives
  60870. +# unlimited permission to copy and/or distribute it, with or without
  60871. +# modifications, as long as this notice is preserved.
  60872. +
  60873. +# serial 6 ltsugar.m4
  60874. +
  60875. +# This is to help aclocal find these macros, as it can't see m4_define.
  60876. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  60877. +
  60878. +
  60879. +# lt_join(SEP, ARG1, [ARG2...])
  60880. +# -----------------------------
  60881. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  60882. +# associated separator.
  60883. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  60884. +# versions in m4sugar had bugs.
  60885. +m4_define([lt_join],
  60886. +[m4_if([$#], [1], [],
  60887. + [$#], [2], [[$2]],
  60888. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  60889. +m4_define([_lt_join],
  60890. +[m4_if([$#$2], [2], [],
  60891. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  60892. +
  60893. +
  60894. +# lt_car(LIST)
  60895. +# lt_cdr(LIST)
  60896. +# ------------
  60897. +# Manipulate m4 lists.
  60898. +# These macros are necessary as long as will still need to support
  60899. +# Autoconf-2.59 which quotes differently.
  60900. +m4_define([lt_car], [[$1]])
  60901. +m4_define([lt_cdr],
  60902. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  60903. + [$#], 1, [],
  60904. + [m4_dquote(m4_shift($@))])])
  60905. +m4_define([lt_unquote], $1)
  60906. +
  60907. +
  60908. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  60909. +# ------------------------------------------
  60910. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  60911. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  60912. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  60913. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  60914. +# than defined and empty).
  60915. +#
  60916. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  60917. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  60918. +m4_define([lt_append],
  60919. +[m4_define([$1],
  60920. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  60921. +
  60922. +
  60923. +
  60924. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  60925. +# ----------------------------------------------------------
  60926. +# Produce a SEP delimited list of all paired combinations of elements of
  60927. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  60928. +# has the form PREFIXmINFIXSUFFIXn.
  60929. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  60930. +m4_define([lt_combine],
  60931. +[m4_if(m4_eval([$# > 3]), [1],
  60932. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  60933. +[[m4_foreach([_Lt_prefix], [$2],
  60934. + [m4_foreach([_Lt_suffix],
  60935. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  60936. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  60937. +
  60938. +
  60939. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  60940. +# -----------------------------------------------------------------------
  60941. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  60942. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  60943. +m4_define([lt_if_append_uniq],
  60944. +[m4_ifdef([$1],
  60945. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  60946. + [lt_append([$1], [$2], [$3])$4],
  60947. + [$5])],
  60948. + [lt_append([$1], [$2], [$3])$4])])
  60949. +
  60950. +
  60951. +# lt_dict_add(DICT, KEY, VALUE)
  60952. +# -----------------------------
  60953. +m4_define([lt_dict_add],
  60954. +[m4_define([$1($2)], [$3])])
  60955. +
  60956. +
  60957. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  60958. +# --------------------------------------------
  60959. +m4_define([lt_dict_add_subkey],
  60960. +[m4_define([$1($2:$3)], [$4])])
  60961. +
  60962. +
  60963. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  60964. +# ----------------------------------
  60965. +m4_define([lt_dict_fetch],
  60966. +[m4_ifval([$3],
  60967. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  60968. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  60969. +
  60970. +
  60971. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  60972. +# -----------------------------------------------------------------
  60973. +m4_define([lt_if_dict_fetch],
  60974. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  60975. + [$5],
  60976. + [$6])])
  60977. +
  60978. +
  60979. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  60980. +# --------------------------------------------------------------
  60981. +m4_define([lt_dict_filter],
  60982. +[m4_if([$5], [], [],
  60983. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  60984. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  60985. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  60986. +])
  60987. diff -Nur libgcrypt-1.4.5.orig/m4/ltversion.m4 libgcrypt-1.4.5/m4/ltversion.m4
  60988. --- libgcrypt-1.4.5.orig/m4/ltversion.m4 1970-01-01 01:00:00.000000000 +0100
  60989. +++ libgcrypt-1.4.5/m4/ltversion.m4 2011-02-16 16:00:40.524802182 +0100
  60990. @@ -0,0 +1,23 @@
  60991. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  60992. +#
  60993. +# Copyright (C) 2004 Free Software Foundation, Inc.
  60994. +# Written by Scott James Remnant, 2004
  60995. +#
  60996. +# This file is free software; the Free Software Foundation gives
  60997. +# unlimited permission to copy and/or distribute it, with or without
  60998. +# modifications, as long as this notice is preserved.
  60999. +
  61000. +# Generated from ltversion.in.
  61001. +
  61002. +# serial 3017 ltversion.m4
  61003. +# This file is part of GNU Libtool
  61004. +
  61005. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  61006. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  61007. +
  61008. +AC_DEFUN([LTVERSION_VERSION],
  61009. +[macro_version='2.2.6b'
  61010. +macro_revision='1.3017'
  61011. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  61012. +_LT_DECL(, macro_revision, 0)
  61013. +])
  61014. diff -Nur libgcrypt-1.4.5.orig/m4/Makefile.in libgcrypt-1.4.5/m4/Makefile.in
  61015. --- libgcrypt-1.4.5.orig/m4/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  61016. +++ libgcrypt-1.4.5/m4/Makefile.in 2011-02-16 16:00:45.374802589 +0100
  61017. @@ -1,8 +1,9 @@
  61018. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  61019. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61020. # @configure_input@
  61021. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61022. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  61023. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61024. +# Inc.
  61025. # This Makefile.in is free software; the Free Software Foundation
  61026. # gives unlimited permission to copy and/or distribute it,
  61027. # with or without modifications, as long as this notice is preserved.
  61028. @@ -15,8 +16,9 @@
  61029. @SET_MAKE@
  61030. VPATH = @srcdir@
  61031. pkgdatadir = $(datadir)/@PACKAGE@
  61032. -pkglibdir = $(libdir)/@PACKAGE@
  61033. pkgincludedir = $(includedir)/@PACKAGE@
  61034. +pkglibdir = $(libdir)/@PACKAGE@
  61035. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61036. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61037. install_sh_DATA = $(install_sh) -c -m 644
  61038. install_sh_PROGRAM = $(install_sh) -c
  61039. @@ -35,6 +37,8 @@
  61040. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog
  61041. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  61042. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  61043. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  61044. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  61045. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  61046. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  61047. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  61048. @@ -43,6 +47,7 @@
  61049. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  61050. CONFIG_HEADER = $(top_builddir)/config.h
  61051. CONFIG_CLEAN_FILES =
  61052. +CONFIG_CLEAN_VPATH_FILES =
  61053. SOURCES =
  61054. DIST_SOURCES =
  61055. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61056. @@ -65,24 +70,20 @@
  61057. CFLAGS = @CFLAGS@
  61058. CPP = @CPP@
  61059. CPPFLAGS = @CPPFLAGS@
  61060. -CXX = @CXX@
  61061. -CXXCPP = @CXXCPP@
  61062. -CXXDEPMODE = @CXXDEPMODE@
  61063. -CXXFLAGS = @CXXFLAGS@
  61064. CYGPATH_W = @CYGPATH_W@
  61065. DEFS = @DEFS@
  61066. DEPDIR = @DEPDIR@
  61067. DLLTOOL = @DLLTOOL@
  61068. DL_LIBS = @DL_LIBS@
  61069. -ECHO = @ECHO@
  61070. +DSYMUTIL = @DSYMUTIL@
  61071. +DUMPBIN = @DUMPBIN@
  61072. ECHO_C = @ECHO_C@
  61073. ECHO_N = @ECHO_N@
  61074. ECHO_T = @ECHO_T@
  61075. EGREP = @EGREP@
  61076. EXEEXT = @EXEEXT@
  61077. -F77 = @F77@
  61078. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  61079. -FFLAGS = @FFLAGS@
  61080. +FGREP = @FGREP@
  61081. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  61082. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  61083. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  61084. @@ -96,6 +97,7 @@
  61085. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61086. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61087. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61088. +LD = @LD@
  61089. LDFLAGS = @LDFLAGS@
  61090. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  61091. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  61092. @@ -110,15 +112,20 @@
  61093. LIBOBJS = @LIBOBJS@
  61094. LIBS = @LIBS@
  61095. LIBTOOL = @LIBTOOL@
  61096. +LIPO = @LIPO@
  61097. LN_S = @LN_S@
  61098. LTLIBOBJS = @LTLIBOBJS@
  61099. MAINT = @MAINT@
  61100. MAKEINFO = @MAKEINFO@
  61101. MKDIR_P = @MKDIR_P@
  61102. MPI_SFLAGS = @MPI_SFLAGS@
  61103. +NM = @NM@
  61104. +NMEDIT = @NMEDIT@
  61105. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  61106. OBJDUMP = @OBJDUMP@
  61107. OBJEXT = @OBJEXT@
  61108. +OTOOL = @OTOOL@
  61109. +OTOOL64 = @OTOOL64@
  61110. PACKAGE = @PACKAGE@
  61111. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61112. PACKAGE_NAME = @PACKAGE_NAME@
  61113. @@ -131,7 +138,7 @@
  61114. PTH_CONFIG = @PTH_CONFIG@
  61115. PTH_LIBS = @PTH_LIBS@
  61116. RANLIB = @RANLIB@
  61117. -RC = @RC@
  61118. +SED = @SED@
  61119. SET_MAKE = @SET_MAKE@
  61120. SHELL = @SHELL@
  61121. STRIP = @STRIP@
  61122. @@ -142,8 +149,7 @@
  61123. abs_top_builddir = @abs_top_builddir@
  61124. abs_top_srcdir = @abs_top_srcdir@
  61125. ac_ct_CC = @ac_ct_CC@
  61126. -ac_ct_CXX = @ac_ct_CXX@
  61127. -ac_ct_F77 = @ac_ct_F77@
  61128. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61129. am__include = @am__include@
  61130. am__leading_dot = @am__leading_dot@
  61131. am__quote = @am__quote@
  61132. @@ -174,6 +180,7 @@
  61133. libexecdir = @libexecdir@
  61134. localedir = @localedir@
  61135. localstatedir = @localstatedir@
  61136. +lt_ECHO = @lt_ECHO@
  61137. mandir = @mandir@
  61138. mkdir_p = @mkdir_p@
  61139. oldincludedir = @oldincludedir@
  61140. @@ -202,9 +209,9 @@
  61141. exit 1;; \
  61142. esac; \
  61143. done; \
  61144. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
  61145. - cd $(top_srcdir) && \
  61146. - $(AUTOMAKE) --gnu m4/Makefile
  61147. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
  61148. + $(am__cd) $(top_srcdir) && \
  61149. + $(AUTOMAKE) --gnu m4/Makefile
  61150. .PRECIOUS: Makefile
  61151. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61152. @case '$?' in \
  61153. @@ -222,6 +229,7 @@
  61154. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61155. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61156. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  61157. +$(am__aclocal_m4_deps):
  61158. mostlyclean-libtool:
  61159. -rm -f *.lo
  61160. @@ -251,13 +259,17 @@
  61161. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61162. if test -d $$d/$$file; then \
  61163. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61164. + if test -d "$(distdir)/$$file"; then \
  61165. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61166. + fi; \
  61167. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61168. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61169. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61170. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61171. fi; \
  61172. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61173. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61174. else \
  61175. - test -f $(distdir)/$$file \
  61176. - || cp -p $$d/$$file $(distdir)/$$file \
  61177. + test -f "$(distdir)/$$file" \
  61178. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61179. || exit 1; \
  61180. fi; \
  61181. done
  61182. @@ -285,6 +297,7 @@
  61183. distclean-generic:
  61184. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61185. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61186. maintainer-clean-generic:
  61187. @echo "This command is intended for maintainers to use"
  61188. @@ -303,6 +316,8 @@
  61189. html: html-am
  61190. +html-am:
  61191. +
  61192. info: info-am
  61193. info-am:
  61194. @@ -311,18 +326,28 @@
  61195. install-dvi: install-dvi-am
  61196. +install-dvi-am:
  61197. +
  61198. install-exec-am:
  61199. install-html: install-html-am
  61200. +install-html-am:
  61201. +
  61202. install-info: install-info-am
  61203. +install-info-am:
  61204. +
  61205. install-man:
  61206. install-pdf: install-pdf-am
  61207. +install-pdf-am:
  61208. +
  61209. install-ps: install-ps-am
  61210. +install-ps-am:
  61211. +
  61212. installcheck-am:
  61213. maintainer-clean: maintainer-clean-am
  61214. @@ -356,6 +381,7 @@
  61215. maintainer-clean-generic mostlyclean mostlyclean-generic \
  61216. mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  61217. +
  61218. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61219. # Otherwise a system limit (for SysV at least) may be exceeded.
  61220. .NOEXPORT:
  61221. diff -Nur libgcrypt-1.4.5.orig/Makefile.in libgcrypt-1.4.5/Makefile.in
  61222. --- libgcrypt-1.4.5.orig/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  61223. +++ libgcrypt-1.4.5/Makefile.in 2011-02-16 16:00:45.894802337 +0100
  61224. @@ -1,8 +1,9 @@
  61225. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  61226. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61227. # @configure_input@
  61228. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61229. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  61230. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61231. +# Inc.
  61232. # This Makefile.in is free software; the Free Software Foundation
  61233. # gives unlimited permission to copy and/or distribute it,
  61234. # with or without modifications, as long as this notice is preserved.
  61235. @@ -33,8 +34,9 @@
  61236. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  61237. VPATH = @srcdir@
  61238. pkgdatadir = $(datadir)/@PACKAGE@
  61239. -pkglibdir = $(libdir)/@PACKAGE@
  61240. pkgincludedir = $(includedir)/@PACKAGE@
  61241. +pkglibdir = $(libdir)/@PACKAGE@
  61242. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61243. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61244. install_sh_DATA = $(install_sh) -c -m 644
  61245. install_sh_PROGRAM = $(install_sh) -c
  61246. @@ -57,6 +59,8 @@
  61247. depcomp install-sh ltmain.sh missing mkinstalldirs
  61248. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  61249. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  61250. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  61251. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  61252. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  61253. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  61254. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  61255. @@ -67,6 +71,7 @@
  61256. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  61257. CONFIG_HEADER = config.h
  61258. CONFIG_CLEAN_FILES =
  61259. +CONFIG_CLEAN_VPATH_FILES =
  61260. SOURCES =
  61261. DIST_SOURCES =
  61262. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61263. @@ -78,15 +83,43 @@
  61264. ps-recursive uninstall-recursive
  61265. RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  61266. distclean-recursive maintainer-clean-recursive
  61267. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  61268. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  61269. + distdir dist dist-all distcheck
  61270. ETAGS = etags
  61271. CTAGS = ctags
  61272. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  61273. distdir = $(PACKAGE)-$(VERSION)
  61274. top_distdir = $(distdir)
  61275. am__remove_distdir = \
  61276. - { test ! -d $(distdir) \
  61277. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  61278. - && rm -fr $(distdir); }; }
  61279. + { test ! -d "$(distdir)" \
  61280. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  61281. + && rm -fr "$(distdir)"; }; }
  61282. +am__relativize = \
  61283. + dir0=`pwd`; \
  61284. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  61285. + sed_rest='s,^[^/]*/*,,'; \
  61286. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  61287. + sed_butlast='s,/*[^/]*$$,,'; \
  61288. + while test -n "$$dir1"; do \
  61289. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  61290. + if test "$$first" != "."; then \
  61291. + if test "$$first" = ".."; then \
  61292. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  61293. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  61294. + else \
  61295. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  61296. + if test "$$first2" = "$$first"; then \
  61297. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  61298. + else \
  61299. + dir2="../$$dir2"; \
  61300. + fi; \
  61301. + dir0="$$dir0"/"$$first"; \
  61302. + fi; \
  61303. + fi; \
  61304. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  61305. + done; \
  61306. + reldir="$$dir2"
  61307. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
  61308. GZIP_ENV = --best
  61309. distuninstallcheck_listfiles = find . -type f -print
  61310. @@ -110,24 +143,20 @@
  61311. CFLAGS = @CFLAGS@
  61312. CPP = @CPP@
  61313. CPPFLAGS = @CPPFLAGS@
  61314. -CXX = @CXX@
  61315. -CXXCPP = @CXXCPP@
  61316. -CXXDEPMODE = @CXXDEPMODE@
  61317. -CXXFLAGS = @CXXFLAGS@
  61318. CYGPATH_W = @CYGPATH_W@
  61319. DEFS = @DEFS@
  61320. DEPDIR = @DEPDIR@
  61321. DLLTOOL = @DLLTOOL@
  61322. DL_LIBS = @DL_LIBS@
  61323. -ECHO = @ECHO@
  61324. +DSYMUTIL = @DSYMUTIL@
  61325. +DUMPBIN = @DUMPBIN@
  61326. ECHO_C = @ECHO_C@
  61327. ECHO_N = @ECHO_N@
  61328. ECHO_T = @ECHO_T@
  61329. EGREP = @EGREP@
  61330. EXEEXT = @EXEEXT@
  61331. -F77 = @F77@
  61332. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  61333. -FFLAGS = @FFLAGS@
  61334. +FGREP = @FGREP@
  61335. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  61336. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  61337. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  61338. @@ -141,6 +170,7 @@
  61339. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61340. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61341. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61342. +LD = @LD@
  61343. LDFLAGS = @LDFLAGS@
  61344. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  61345. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  61346. @@ -155,15 +185,20 @@
  61347. LIBOBJS = @LIBOBJS@
  61348. LIBS = @LIBS@
  61349. LIBTOOL = @LIBTOOL@
  61350. +LIPO = @LIPO@
  61351. LN_S = @LN_S@
  61352. LTLIBOBJS = @LTLIBOBJS@
  61353. MAINT = @MAINT@
  61354. MAKEINFO = @MAKEINFO@
  61355. MKDIR_P = @MKDIR_P@
  61356. MPI_SFLAGS = @MPI_SFLAGS@
  61357. +NM = @NM@
  61358. +NMEDIT = @NMEDIT@
  61359. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  61360. OBJDUMP = @OBJDUMP@
  61361. OBJEXT = @OBJEXT@
  61362. +OTOOL = @OTOOL@
  61363. +OTOOL64 = @OTOOL64@
  61364. PACKAGE = @PACKAGE@
  61365. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61366. PACKAGE_NAME = @PACKAGE_NAME@
  61367. @@ -176,7 +211,7 @@
  61368. PTH_CONFIG = @PTH_CONFIG@
  61369. PTH_LIBS = @PTH_LIBS@
  61370. RANLIB = @RANLIB@
  61371. -RC = @RC@
  61372. +SED = @SED@
  61373. SET_MAKE = @SET_MAKE@
  61374. SHELL = @SHELL@
  61375. STRIP = @STRIP@
  61376. @@ -187,8 +222,7 @@
  61377. abs_top_builddir = @abs_top_builddir@
  61378. abs_top_srcdir = @abs_top_srcdir@
  61379. ac_ct_CC = @ac_ct_CC@
  61380. -ac_ct_CXX = @ac_ct_CXX@
  61381. -ac_ct_F77 = @ac_ct_F77@
  61382. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61383. am__include = @am__include@
  61384. am__leading_dot = @am__leading_dot@
  61385. am__quote = @am__quote@
  61386. @@ -219,6 +253,7 @@
  61387. libexecdir = @libexecdir@
  61388. localedir = @localedir@
  61389. localstatedir = @localstatedir@
  61390. +lt_ECHO = @lt_ECHO@
  61391. mandir = @mandir@
  61392. mkdir_p = @mkdir_p@
  61393. oldincludedir = @oldincludedir@
  61394. @@ -253,15 +288,15 @@
  61395. @for dep in $?; do \
  61396. case '$(am__configure_deps)' in \
  61397. *$$dep*) \
  61398. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  61399. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  61400. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  61401. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  61402. && exit 0; \
  61403. exit 1;; \
  61404. esac; \
  61405. done; \
  61406. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  61407. - cd $(top_srcdir) && \
  61408. - $(AUTOMAKE) --gnu Makefile
  61409. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  61410. + $(am__cd) $(top_srcdir) && \
  61411. + $(AUTOMAKE) --gnu Makefile
  61412. .PRECIOUS: Makefile
  61413. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61414. @case '$?' in \
  61415. @@ -277,9 +312,10 @@
  61416. $(SHELL) ./config.status --recheck
  61417. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  61418. - cd $(srcdir) && $(AUTOCONF)
  61419. + $(am__cd) $(srcdir) && $(AUTOCONF)
  61420. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61421. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61422. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61423. +$(am__aclocal_m4_deps):
  61424. config.h: stamp-h1
  61425. @if test ! -f $@; then \
  61426. @@ -291,7 +327,7 @@
  61427. @rm -f stamp-h1
  61428. cd $(top_builddir) && $(SHELL) ./config.status config.h
  61429. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  61430. - cd $(top_srcdir) && $(AUTOHEADER)
  61431. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  61432. rm -f stamp-h1
  61433. touch $@
  61434. @@ -314,7 +350,7 @@
  61435. # (which will cause the Makefiles to be regenerated when you run `make');
  61436. # (2) otherwise, pass the desired values on the `make' command line.
  61437. $(RECURSIVE_TARGETS):
  61438. - @failcom='exit 1'; \
  61439. + @fail= failcom='exit 1'; \
  61440. for f in x $$MAKEFLAGS; do \
  61441. case $$f in \
  61442. *=* | --[!k]*);; \
  61443. @@ -331,7 +367,7 @@
  61444. else \
  61445. local_target="$$target"; \
  61446. fi; \
  61447. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61448. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61449. || eval $$failcom; \
  61450. done; \
  61451. if test "$$dot_seen" = "no"; then \
  61452. @@ -339,7 +375,7 @@
  61453. fi; test -z "$$fail"
  61454. $(RECURSIVE_CLEAN_TARGETS):
  61455. - @failcom='exit 1'; \
  61456. + @fail= failcom='exit 1'; \
  61457. for f in x $$MAKEFLAGS; do \
  61458. case $$f in \
  61459. *=* | --[!k]*);; \
  61460. @@ -365,16 +401,16 @@
  61461. else \
  61462. local_target="$$target"; \
  61463. fi; \
  61464. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61465. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61466. || eval $$failcom; \
  61467. done && test -z "$$fail"
  61468. tags-recursive:
  61469. list='$(SUBDIRS)'; for subdir in $$list; do \
  61470. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61471. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61472. done
  61473. ctags-recursive:
  61474. list='$(SUBDIRS)'; for subdir in $$list; do \
  61475. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61476. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61477. done
  61478. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61479. @@ -389,7 +425,7 @@
  61480. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61481. $(TAGS_FILES) $(LISP)
  61482. - tags=; \
  61483. + set x; \
  61484. here=`pwd`; \
  61485. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  61486. include_option=--etags-include; \
  61487. @@ -401,7 +437,7 @@
  61488. list='$(SUBDIRS)'; for subdir in $$list; do \
  61489. if test "$$subdir" = .; then :; else \
  61490. test ! -f $$subdir/TAGS || \
  61491. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  61492. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  61493. fi; \
  61494. done; \
  61495. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61496. @@ -410,36 +446,41 @@
  61497. done | \
  61498. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61499. END { if (nonempty) { for (i in files) print i; }; }'`; \
  61500. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61501. + shift; \
  61502. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61503. test -n "$$unique" || unique=$$empty_fix; \
  61504. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61505. - $$tags $$unique; \
  61506. + if test $$# -gt 0; then \
  61507. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61508. + "$$@" $$unique; \
  61509. + else \
  61510. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61511. + $$unique; \
  61512. + fi; \
  61513. fi
  61514. ctags: CTAGS
  61515. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61516. $(TAGS_FILES) $(LISP)
  61517. - tags=; \
  61518. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61519. unique=`for i in $$list; do \
  61520. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61521. done | \
  61522. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61523. END { if (nonempty) { for (i in files) print i; }; }'`; \
  61524. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61525. + test -z "$(CTAGS_ARGS)$$unique" \
  61526. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61527. - $$tags $$unique
  61528. + $$unique
  61529. GTAGS:
  61530. here=`$(am__cd) $(top_builddir) && pwd` \
  61531. - && cd $(top_srcdir) \
  61532. - && gtags -i $(GTAGS_ARGS) $$here
  61533. + && $(am__cd) $(top_srcdir) \
  61534. + && gtags -i $(GTAGS_ARGS) "$$here"
  61535. distclean-tags:
  61536. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61537. distdir: $(DISTFILES)
  61538. $(am__remove_distdir)
  61539. - test -d $(distdir) || mkdir $(distdir)
  61540. + test -d "$(distdir)" || mkdir "$(distdir)"
  61541. @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61542. topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61543. list='$(DISTFILES)'; \
  61544. @@ -455,29 +496,44 @@
  61545. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61546. if test -d $$d/$$file; then \
  61547. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61548. + if test -d "$(distdir)/$$file"; then \
  61549. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61550. + fi; \
  61551. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61552. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61553. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61554. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61555. fi; \
  61556. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61557. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61558. else \
  61559. - test -f $(distdir)/$$file \
  61560. - || cp -p $$d/$$file $(distdir)/$$file \
  61561. + test -f "$(distdir)/$$file" \
  61562. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61563. || exit 1; \
  61564. fi; \
  61565. done
  61566. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61567. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61568. if test "$$subdir" = .; then :; else \
  61569. test -d "$(distdir)/$$subdir" \
  61570. || $(MKDIR_P) "$(distdir)/$$subdir" \
  61571. || exit 1; \
  61572. - distdir=`$(am__cd) $(distdir) && pwd`; \
  61573. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  61574. - (cd $$subdir && \
  61575. + fi; \
  61576. + done
  61577. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61578. + if test "$$subdir" = .; then :; else \
  61579. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  61580. + $(am__relativize); \
  61581. + new_distdir=$$reldir; \
  61582. + dir1=$$subdir; dir2="$(top_distdir)"; \
  61583. + $(am__relativize); \
  61584. + new_top_distdir=$$reldir; \
  61585. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  61586. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  61587. + ($(am__cd) $$subdir && \
  61588. $(MAKE) $(AM_MAKEFLAGS) \
  61589. - top_distdir="$$top_distdir" \
  61590. - distdir="$$distdir/$$subdir" \
  61591. + top_distdir="$$new_top_distdir" \
  61592. + distdir="$$new_distdir" \
  61593. am__remove_distdir=: \
  61594. am__skip_length_check=: \
  61595. + am__skip_mode_fix=: \
  61596. distdir) \
  61597. || exit 1; \
  61598. fi; \
  61599. @@ -485,11 +541,13 @@
  61600. $(MAKE) $(AM_MAKEFLAGS) \
  61601. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  61602. dist-hook
  61603. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  61604. + -test -n "$(am__skip_mode_fix)" \
  61605. + || find "$(distdir)" -type d ! -perm -755 \
  61606. + -exec chmod u+rwx,go+rx {} \; -o \
  61607. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  61608. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  61609. ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  61610. - || chmod -R a+r $(distdir)
  61611. + || chmod -R a+r "$(distdir)"
  61612. dist-gzip: distdir
  61613. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  61614. $(am__remove_distdir)
  61615. @@ -501,6 +559,10 @@
  61616. tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  61617. $(am__remove_distdir)
  61618. +dist-xz: distdir
  61619. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  61620. + $(am__remove_distdir)
  61621. +
  61622. dist-tarZ: distdir
  61623. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  61624. $(am__remove_distdir)
  61625. @@ -525,15 +587,17 @@
  61626. distcheck: dist
  61627. case '$(DIST_ARCHIVES)' in \
  61628. *.tar.gz*) \
  61629. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  61630. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  61631. *.tar.bz2*) \
  61632. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  61633. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  61634. *.tar.lzma*) \
  61635. - unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
  61636. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  61637. + *.tar.xz*) \
  61638. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  61639. *.tar.Z*) \
  61640. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  61641. *.shar.gz*) \
  61642. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  61643. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  61644. *.zip*) \
  61645. unzip $(distdir).zip ;;\
  61646. esac
  61647. @@ -541,9 +605,11 @@
  61648. mkdir $(distdir)/_build
  61649. mkdir $(distdir)/_inst
  61650. chmod a-w $(distdir)
  61651. + test -d $(distdir)/_build || exit 0; \
  61652. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  61653. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  61654. - && cd $(distdir)/_build \
  61655. + && am__cwd=`pwd` \
  61656. + && $(am__cd) $(distdir)/_build \
  61657. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  61658. $(DISTCHECK_CONFIGURE_FLAGS) \
  61659. && $(MAKE) $(AM_MAKEFLAGS) \
  61660. @@ -565,13 +631,15 @@
  61661. && rm -rf "$$dc_destdir" \
  61662. && $(MAKE) $(AM_MAKEFLAGS) dist \
  61663. && rm -rf $(DIST_ARCHIVES) \
  61664. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  61665. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  61666. + && cd "$$am__cwd" \
  61667. + || exit 1
  61668. $(am__remove_distdir)
  61669. @(echo "$(distdir) archives ready for distribution: "; \
  61670. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  61671. sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  61672. distuninstallcheck:
  61673. - @cd $(distuninstallcheck_dir) \
  61674. + @$(am__cd) '$(distuninstallcheck_dir)' \
  61675. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  61676. || { echo "ERROR: files left after uninstall:" ; \
  61677. if test -n "$(DESTDIR)"; then \
  61678. @@ -613,6 +681,7 @@
  61679. distclean-generic:
  61680. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61681. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61682. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  61683. maintainer-clean-generic:
  61684. @@ -634,6 +703,8 @@
  61685. html: html-recursive
  61686. +html-am:
  61687. +
  61688. info: info-recursive
  61689. info-am:
  61690. @@ -642,18 +713,28 @@
  61691. install-dvi: install-dvi-recursive
  61692. +install-dvi-am:
  61693. +
  61694. install-exec-am:
  61695. install-html: install-html-recursive
  61696. +install-html-am:
  61697. +
  61698. install-info: install-info-recursive
  61699. +install-info-am:
  61700. +
  61701. install-man:
  61702. install-pdf: install-pdf-recursive
  61703. +install-pdf-am:
  61704. +
  61705. install-ps: install-ps-recursive
  61706. +install-ps-am:
  61707. +
  61708. installcheck-am:
  61709. maintainer-clean: maintainer-clean-recursive
  61710. @@ -676,14 +757,14 @@
  61711. uninstall-am:
  61712. -.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  61713. - install-strip
  61714. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  61715. + ctags-recursive install-am install-strip tags-recursive
  61716. .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  61717. all all-am am--refresh check check-am clean clean-generic \
  61718. clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  61719. - dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-zip \
  61720. - distcheck distclean distclean-generic distclean-hdr \
  61721. + dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
  61722. + dist-zip distcheck distclean distclean-generic distclean-hdr \
  61723. distclean-libtool distclean-tags distcleancheck distdir \
  61724. distuninstallcheck dvi dvi-am html html-am info info-am \
  61725. install install-am install-data install-data-am install-dvi \
  61726. @@ -714,6 +795,7 @@
  61727. stowinstall:
  61728. $(MAKE) $(AM_MAKEFLAGS) install prefix=/usr/local/stow/libgcrypt
  61729. +
  61730. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61731. # Otherwise a system limit (for SysV at least) may be exceeded.
  61732. .NOEXPORT:
  61733. diff -Nur libgcrypt-1.4.5.orig/missing libgcrypt-1.4.5/missing
  61734. --- libgcrypt-1.4.5.orig/missing 2009-04-02 11:25:35.000000000 +0200
  61735. +++ libgcrypt-1.4.5/missing 2011-02-16 16:00:44.913552280 +0100
  61736. @@ -1,10 +1,10 @@
  61737. #! /bin/sh
  61738. # Common stub for a few missing GNU programs while installing.
  61739. -scriptversion=2005-06-08.21
  61740. +scriptversion=2009-04-28.21; # UTC
  61741. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
  61742. -# Free Software Foundation, Inc.
  61743. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  61744. +# 2008, 2009 Free Software Foundation, Inc.
  61745. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  61746. # This program is free software; you can redistribute it and/or modify
  61747. @@ -18,9 +18,7 @@
  61748. # GNU General Public License for more details.
  61749. # You should have received a copy of the GNU General Public License
  61750. -# along with this program; if not, write to the Free Software
  61751. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  61752. -# 02110-1301, USA.
  61753. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  61754. # As a special exception to the GNU General Public License, if you
  61755. # distribute this file as part of a program that contains a
  61756. @@ -33,6 +31,8 @@
  61757. fi
  61758. run=:
  61759. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  61760. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  61761. # In the cases where this matters, `missing' is being run in the
  61762. # srcdir already.
  61763. @@ -44,7 +44,7 @@
  61764. msg="missing on your system"
  61765. -case "$1" in
  61766. +case $1 in
  61767. --run)
  61768. # Try to run requested program, and just exit if it succeeds.
  61769. run=
  61770. @@ -77,6 +77,7 @@
  61771. aclocal touch file \`aclocal.m4'
  61772. autoconf touch file \`configure'
  61773. autoheader touch file \`config.h.in'
  61774. + autom4te touch the output file, or create a stub one
  61775. automake touch all \`Makefile.in' files
  61776. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  61777. flex create \`lex.yy.c', if possible, from existing .c
  61778. @@ -86,6 +87,9 @@
  61779. tar try tar, gnutar, gtar, then tar without non-portable flags
  61780. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  61781. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  61782. +\`g' are ignored when checking the name.
  61783. +
  61784. Send bug reports to <bug-automake@gnu.org>."
  61785. exit $?
  61786. ;;
  61787. @@ -103,15 +107,22 @@
  61788. esac
  61789. +# normalize program name to check for.
  61790. +program=`echo "$1" | sed '
  61791. + s/^gnu-//; t
  61792. + s/^gnu//; t
  61793. + s/^g//; t'`
  61794. +
  61795. # Now exit if we have it, but it failed. Also exit now if we
  61796. # don't have it and --version was passed (most likely to detect
  61797. -# the program).
  61798. -case "$1" in
  61799. - lex|yacc)
  61800. +# the program). This is about non-GNU programs, so use $1 not
  61801. +# $program.
  61802. +case $1 in
  61803. + lex*|yacc*)
  61804. # Not GNU programs, they don't have --version.
  61805. ;;
  61806. - tar)
  61807. + tar*)
  61808. if test -n "$run"; then
  61809. echo 1>&2 "ERROR: \`tar' requires --run"
  61810. exit 1
  61811. @@ -135,7 +146,7 @@
  61812. # If it does not exist, or fails to run (possibly an outdated version),
  61813. # try to emulate it.
  61814. -case "$1" in
  61815. +case $program in
  61816. aclocal*)
  61817. echo 1>&2 "\
  61818. WARNING: \`$1' is $msg. You should only need it if
  61819. @@ -145,7 +156,7 @@
  61820. touch aclocal.m4
  61821. ;;
  61822. - autoconf)
  61823. + autoconf*)
  61824. echo 1>&2 "\
  61825. WARNING: \`$1' is $msg. You should only need it if
  61826. you modified \`${configure_ac}'. You might want to install the
  61827. @@ -154,7 +165,7 @@
  61828. touch configure
  61829. ;;
  61830. - autoheader)
  61831. + autoheader*)
  61832. echo 1>&2 "\
  61833. WARNING: \`$1' is $msg. You should only need it if
  61834. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  61835. @@ -164,7 +175,7 @@
  61836. test -z "$files" && files="config.h"
  61837. touch_files=
  61838. for f in $files; do
  61839. - case "$f" in
  61840. + case $f in
  61841. *:*) touch_files="$touch_files "`echo "$f" |
  61842. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  61843. *) touch_files="$touch_files $f.in";;
  61844. @@ -184,7 +195,7 @@
  61845. while read f; do touch "$f"; done
  61846. ;;
  61847. - autom4te)
  61848. + autom4te*)
  61849. echo 1>&2 "\
  61850. WARNING: \`$1' is needed, but is $msg.
  61851. You might have modified some files without having the
  61852. @@ -192,8 +203,8 @@
  61853. You can get \`$1' as part of \`Autoconf' from any GNU
  61854. archive site."
  61855. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  61856. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  61857. + file=`echo "$*" | sed -n "$sed_output"`
  61858. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  61859. if test -f "$file"; then
  61860. touch $file
  61861. else
  61862. @@ -207,80 +218,78 @@
  61863. fi
  61864. ;;
  61865. - bison|yacc)
  61866. + bison*|yacc*)
  61867. echo 1>&2 "\
  61868. WARNING: \`$1' $msg. You should only need it if
  61869. you modified a \`.y' file. You may need the \`Bison' package
  61870. in order for those modifications to take effect. You can get
  61871. \`Bison' from any GNU archive site."
  61872. rm -f y.tab.c y.tab.h
  61873. - if [ $# -ne 1 ]; then
  61874. + if test $# -ne 1; then
  61875. eval LASTARG="\${$#}"
  61876. - case "$LASTARG" in
  61877. + case $LASTARG in
  61878. *.y)
  61879. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  61880. - if [ -f "$SRCFILE" ]; then
  61881. + if test -f "$SRCFILE"; then
  61882. cp "$SRCFILE" y.tab.c
  61883. fi
  61884. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  61885. - if [ -f "$SRCFILE" ]; then
  61886. + if test -f "$SRCFILE"; then
  61887. cp "$SRCFILE" y.tab.h
  61888. fi
  61889. ;;
  61890. esac
  61891. fi
  61892. - if [ ! -f y.tab.h ]; then
  61893. + if test ! -f y.tab.h; then
  61894. echo >y.tab.h
  61895. fi
  61896. - if [ ! -f y.tab.c ]; then
  61897. + if test ! -f y.tab.c; then
  61898. echo 'main() { return 0; }' >y.tab.c
  61899. fi
  61900. ;;
  61901. - lex|flex)
  61902. + lex*|flex*)
  61903. echo 1>&2 "\
  61904. WARNING: \`$1' is $msg. You should only need it if
  61905. you modified a \`.l' file. You may need the \`Flex' package
  61906. in order for those modifications to take effect. You can get
  61907. \`Flex' from any GNU archive site."
  61908. rm -f lex.yy.c
  61909. - if [ $# -ne 1 ]; then
  61910. + if test $# -ne 1; then
  61911. eval LASTARG="\${$#}"
  61912. - case "$LASTARG" in
  61913. + case $LASTARG in
  61914. *.l)
  61915. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  61916. - if [ -f "$SRCFILE" ]; then
  61917. + if test -f "$SRCFILE"; then
  61918. cp "$SRCFILE" lex.yy.c
  61919. fi
  61920. ;;
  61921. esac
  61922. fi
  61923. - if [ ! -f lex.yy.c ]; then
  61924. + if test ! -f lex.yy.c; then
  61925. echo 'main() { return 0; }' >lex.yy.c
  61926. fi
  61927. ;;
  61928. - help2man)
  61929. + help2man*)
  61930. echo 1>&2 "\
  61931. WARNING: \`$1' is $msg. You should only need it if
  61932. you modified a dependency of a manual page. You may need the
  61933. \`Help2man' package in order for those modifications to take
  61934. effect. You can get \`Help2man' from any GNU archive site."
  61935. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  61936. - if test -z "$file"; then
  61937. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  61938. - fi
  61939. - if [ -f "$file" ]; then
  61940. + file=`echo "$*" | sed -n "$sed_output"`
  61941. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  61942. + if test -f "$file"; then
  61943. touch $file
  61944. else
  61945. test -z "$file" || exec >$file
  61946. echo ".ab help2man is required to generate this page"
  61947. - exit 1
  61948. + exit $?
  61949. fi
  61950. ;;
  61951. - makeinfo)
  61952. + makeinfo*)
  61953. echo 1>&2 "\
  61954. WARNING: \`$1' is $msg. You should only need it if
  61955. you modified a \`.texi' or \`.texinfo' file, or any other file
  61956. @@ -289,11 +298,17 @@
  61957. DU, IRIX). You might want to install the \`Texinfo' package or
  61958. the \`GNU make' package. Grab either from any GNU archive site."
  61959. # The file to touch is that specified with -o ...
  61960. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  61961. + file=`echo "$*" | sed -n "$sed_output"`
  61962. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  61963. if test -z "$file"; then
  61964. # ... or it is the one specified with @setfilename ...
  61965. infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  61966. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  61967. + file=`sed -n '
  61968. + /^@setfilename/{
  61969. + s/.* \([^ ]*\) *$/\1/
  61970. + p
  61971. + q
  61972. + }' $infile`
  61973. # ... or it is derived from the source name (dir/f.texi becomes f.info)
  61974. test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  61975. fi
  61976. @@ -303,7 +318,7 @@
  61977. touch $file
  61978. ;;
  61979. - tar)
  61980. + tar*)
  61981. shift
  61982. # We have already tried tar in the generic part.
  61983. @@ -317,13 +332,13 @@
  61984. fi
  61985. firstarg="$1"
  61986. if shift; then
  61987. - case "$firstarg" in
  61988. + case $firstarg in
  61989. *o*)
  61990. firstarg=`echo "$firstarg" | sed s/o//`
  61991. tar "$firstarg" "$@" && exit 0
  61992. ;;
  61993. esac
  61994. - case "$firstarg" in
  61995. + case $firstarg in
  61996. *h*)
  61997. firstarg=`echo "$firstarg" | sed s/h//`
  61998. tar "$firstarg" "$@" && exit 0
  61999. @@ -356,5 +371,6 @@
  62000. # eval: (add-hook 'write-file-hooks 'time-stamp)
  62001. # time-stamp-start: "scriptversion="
  62002. # time-stamp-format: "%:y-%02m-%02d.%02H"
  62003. -# time-stamp-end: "$"
  62004. +# time-stamp-time-zone: "UTC"
  62005. +# time-stamp-end: "; # UTC"
  62006. # End:
  62007. diff -Nur libgcrypt-1.4.5.orig/mkinstalldirs libgcrypt-1.4.5/mkinstalldirs
  62008. --- libgcrypt-1.4.5.orig/mkinstalldirs 2009-04-02 11:25:35.000000000 +0200
  62009. +++ libgcrypt-1.4.5/mkinstalldirs 2011-02-16 16:00:45.854812094 +0100
  62010. @@ -1,7 +1,7 @@
  62011. #! /bin/sh
  62012. # mkinstalldirs --- make directory hierarchy
  62013. -scriptversion=2006-05-11.19
  62014. +scriptversion=2009-04-28.21; # UTC
  62015. # Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  62016. # Created: 1993-05-16
  62017. @@ -157,5 +157,6 @@
  62018. # eval: (add-hook 'write-file-hooks 'time-stamp)
  62019. # time-stamp-start: "scriptversion="
  62020. # time-stamp-format: "%:y-%02m-%02d.%02H"
  62021. -# time-stamp-end: "$"
  62022. +# time-stamp-time-zone: "UTC"
  62023. +# time-stamp-end: "; # UTC"
  62024. # End:
  62025. diff -Nur libgcrypt-1.4.5.orig/mpi/Makefile.in libgcrypt-1.4.5/mpi/Makefile.in
  62026. --- libgcrypt-1.4.5.orig/mpi/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  62027. +++ libgcrypt-1.4.5/mpi/Makefile.in 2011-02-16 16:00:45.453881355 +0100
  62028. @@ -1,8 +1,9 @@
  62029. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  62030. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62031. # @configure_input@
  62032. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62033. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  62034. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62035. +# Inc.
  62036. # This Makefile.in is free software; the Free Software Foundation
  62037. # gives unlimited permission to copy and/or distribute it,
  62038. # with or without modifications, as long as this notice is preserved.
  62039. @@ -38,8 +39,9 @@
  62040. VPATH = @srcdir@
  62041. pkgdatadir = $(datadir)/@PACKAGE@
  62042. -pkglibdir = $(libdir)/@PACKAGE@
  62043. pkgincludedir = $(includedir)/@PACKAGE@
  62044. +pkglibdir = $(libdir)/@PACKAGE@
  62045. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62046. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62047. install_sh_DATA = $(install_sh) -c -m 644
  62048. install_sh_PROGRAM = $(install_sh) -c
  62049. @@ -58,6 +60,8 @@
  62050. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog
  62051. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  62052. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  62053. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  62054. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  62055. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  62056. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  62057. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  62058. @@ -66,6 +70,7 @@
  62059. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  62060. CONFIG_HEADER = $(top_builddir)/config.h
  62061. CONFIG_CLEAN_FILES =
  62062. +CONFIG_CLEAN_VPATH_FILES =
  62063. LTLIBRARIES = $(noinst_LTLIBRARIES)
  62064. libmpi_la_LIBADD =
  62065. am_libmpi_la_OBJECTS = mpi-add.lo mpi-bit.lo mpi-cmp.lo mpi-div.lo \
  62066. @@ -102,6 +107,7 @@
  62067. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62068. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62069. am__depfiles_maybe = depfiles
  62070. +am__mv = mv -f
  62071. CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  62072. $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
  62073. LTCPPASCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62074. @@ -140,24 +146,20 @@
  62075. CFLAGS = @CFLAGS@
  62076. CPP = @CPP@
  62077. CPPFLAGS = @CPPFLAGS@
  62078. -CXX = @CXX@
  62079. -CXXCPP = @CXXCPP@
  62080. -CXXDEPMODE = @CXXDEPMODE@
  62081. -CXXFLAGS = @CXXFLAGS@
  62082. CYGPATH_W = @CYGPATH_W@
  62083. DEFS = @DEFS@
  62084. DEPDIR = @DEPDIR@
  62085. DLLTOOL = @DLLTOOL@
  62086. DL_LIBS = @DL_LIBS@
  62087. -ECHO = @ECHO@
  62088. +DSYMUTIL = @DSYMUTIL@
  62089. +DUMPBIN = @DUMPBIN@
  62090. ECHO_C = @ECHO_C@
  62091. ECHO_N = @ECHO_N@
  62092. ECHO_T = @ECHO_T@
  62093. EGREP = @EGREP@
  62094. EXEEXT = @EXEEXT@
  62095. -F77 = @F77@
  62096. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  62097. -FFLAGS = @FFLAGS@
  62098. +FGREP = @FGREP@
  62099. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  62100. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  62101. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  62102. @@ -171,6 +173,7 @@
  62103. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62104. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62105. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62106. +LD = @LD@
  62107. LDFLAGS = @LDFLAGS@
  62108. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  62109. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  62110. @@ -185,15 +188,20 @@
  62111. LIBOBJS = @LIBOBJS@
  62112. LIBS = @LIBS@
  62113. LIBTOOL = @LIBTOOL@
  62114. +LIPO = @LIPO@
  62115. LN_S = @LN_S@
  62116. LTLIBOBJS = @LTLIBOBJS@
  62117. MAINT = @MAINT@
  62118. MAKEINFO = @MAKEINFO@
  62119. MKDIR_P = @MKDIR_P@
  62120. MPI_SFLAGS = @MPI_SFLAGS@
  62121. +NM = @NM@
  62122. +NMEDIT = @NMEDIT@
  62123. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  62124. OBJDUMP = @OBJDUMP@
  62125. OBJEXT = @OBJEXT@
  62126. +OTOOL = @OTOOL@
  62127. +OTOOL64 = @OTOOL64@
  62128. PACKAGE = @PACKAGE@
  62129. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62130. PACKAGE_NAME = @PACKAGE_NAME@
  62131. @@ -206,7 +214,7 @@
  62132. PTH_CONFIG = @PTH_CONFIG@
  62133. PTH_LIBS = @PTH_LIBS@
  62134. RANLIB = @RANLIB@
  62135. -RC = @RC@
  62136. +SED = @SED@
  62137. SET_MAKE = @SET_MAKE@
  62138. SHELL = @SHELL@
  62139. STRIP = @STRIP@
  62140. @@ -217,8 +225,7 @@
  62141. abs_top_builddir = @abs_top_builddir@
  62142. abs_top_srcdir = @abs_top_srcdir@
  62143. ac_ct_CC = @ac_ct_CC@
  62144. -ac_ct_CXX = @ac_ct_CXX@
  62145. -ac_ct_F77 = @ac_ct_F77@
  62146. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62147. am__include = @am__include@
  62148. am__leading_dot = @am__leading_dot@
  62149. am__quote = @am__quote@
  62150. @@ -249,6 +256,7 @@
  62151. libexecdir = @libexecdir@
  62152. localedir = @localedir@
  62153. localstatedir = @localstatedir@
  62154. +lt_ECHO = @lt_ECHO@
  62155. mandir = @mandir@
  62156. mkdir_p = @mkdir_p@
  62157. oldincludedir = @oldincludedir@
  62158. @@ -369,9 +377,9 @@
  62159. exit 1;; \
  62160. esac; \
  62161. done; \
  62162. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpi/Makefile'; \
  62163. - cd $(top_srcdir) && \
  62164. - $(AUTOMAKE) --gnu mpi/Makefile
  62165. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu mpi/Makefile'; \
  62166. + $(am__cd) $(top_srcdir) && \
  62167. + $(AUTOMAKE) --gnu mpi/Makefile
  62168. .PRECIOUS: Makefile
  62169. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62170. @case '$?' in \
  62171. @@ -389,6 +397,7 @@
  62172. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62173. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  62174. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62175. +$(am__aclocal_m4_deps):
  62176. clean-noinstLTLIBRARIES:
  62177. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  62178. @@ -445,42 +454,42 @@
  62179. .S.o:
  62180. @am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62181. -@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62182. +@am__fastdepCCAS_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62183. @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62184. @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62185. @am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ $<
  62186. .S.obj:
  62187. @am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62188. -@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62189. +@am__fastdepCCAS_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62190. @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62191. @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62192. @am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  62193. .S.lo:
  62194. @am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62195. -@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62196. +@am__fastdepCCAS_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62197. @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62198. @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62199. @am__fastdepCCAS_FALSE@ $(LTCPPASCOMPILE) -c -o $@ $<
  62200. .c.o:
  62201. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62202. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62203. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62204. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62205. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62206. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  62207. .c.obj:
  62208. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62209. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62210. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62211. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62212. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62213. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  62214. .c.lo:
  62215. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62216. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62217. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62218. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62219. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62220. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62221. @@ -503,7 +512,7 @@
  62222. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62223. $(TAGS_FILES) $(LISP)
  62224. - tags=; \
  62225. + set x; \
  62226. here=`pwd`; \
  62227. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62228. unique=`for i in $$list; do \
  62229. @@ -511,29 +520,34 @@
  62230. done | \
  62231. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62232. END { if (nonempty) { for (i in files) print i; }; }'`; \
  62233. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62234. + shift; \
  62235. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62236. test -n "$$unique" || unique=$$empty_fix; \
  62237. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62238. - $$tags $$unique; \
  62239. + if test $$# -gt 0; then \
  62240. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62241. + "$$@" $$unique; \
  62242. + else \
  62243. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62244. + $$unique; \
  62245. + fi; \
  62246. fi
  62247. ctags: CTAGS
  62248. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62249. $(TAGS_FILES) $(LISP)
  62250. - tags=; \
  62251. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62252. unique=`for i in $$list; do \
  62253. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62254. done | \
  62255. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62256. END { if (nonempty) { for (i in files) print i; }; }'`; \
  62257. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62258. + test -z "$(CTAGS_ARGS)$$unique" \
  62259. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62260. - $$tags $$unique
  62261. + $$unique
  62262. GTAGS:
  62263. here=`$(am__cd) $(top_builddir) && pwd` \
  62264. - && cd $(top_srcdir) \
  62265. - && gtags -i $(GTAGS_ARGS) $$here
  62266. + && $(am__cd) $(top_srcdir) \
  62267. + && gtags -i $(GTAGS_ARGS) "$$here"
  62268. distclean-tags:
  62269. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62270. @@ -554,13 +568,17 @@
  62271. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62272. if test -d $$d/$$file; then \
  62273. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62274. + if test -d "$(distdir)/$$file"; then \
  62275. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62276. + fi; \
  62277. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62278. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62279. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62280. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62281. fi; \
  62282. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62283. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62284. else \
  62285. - test -f $(distdir)/$$file \
  62286. - || cp -p $$d/$$file $(distdir)/$$file \
  62287. + test -f "$(distdir)/$$file" \
  62288. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62289. || exit 1; \
  62290. fi; \
  62291. done
  62292. @@ -588,6 +606,7 @@
  62293. distclean-generic:
  62294. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62295. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62296. -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  62297. maintainer-clean-generic:
  62298. @@ -610,6 +629,8 @@
  62299. html: html-am
  62300. +html-am:
  62301. +
  62302. info: info-am
  62303. info-am:
  62304. @@ -618,18 +639,28 @@
  62305. install-dvi: install-dvi-am
  62306. +install-dvi-am:
  62307. +
  62308. install-exec-am:
  62309. install-html: install-html-am
  62310. +install-html-am:
  62311. +
  62312. install-info: install-info-am
  62313. +install-info-am:
  62314. +
  62315. install-man:
  62316. install-pdf: install-pdf-am
  62317. +install-pdf-am:
  62318. +
  62319. install-ps: install-ps-am
  62320. +install-ps-am:
  62321. +
  62322. installcheck-am:
  62323. maintainer-clean: maintainer-clean-am
  62324. @@ -667,6 +698,7 @@
  62325. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  62326. pdf pdf-am ps ps-am tags uninstall uninstall-am
  62327. +
  62328. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62329. # Otherwise a system limit (for SysV at least) may be exceeded.
  62330. .NOEXPORT:
  62331. diff -Nur libgcrypt-1.4.5.orig/random/Makefile.in libgcrypt-1.4.5/random/Makefile.in
  62332. --- libgcrypt-1.4.5.orig/random/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  62333. +++ libgcrypt-1.4.5/random/Makefile.in 2011-02-16 16:00:45.523981959 +0100
  62334. @@ -1,8 +1,9 @@
  62335. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  62336. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62337. # @configure_input@
  62338. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62339. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  62340. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62341. +# Inc.
  62342. # This Makefile.in is free software; the Free Software Foundation
  62343. # gives unlimited permission to copy and/or distribute it,
  62344. # with or without modifications, as long as this notice is preserved.
  62345. @@ -36,8 +37,9 @@
  62346. VPATH = @srcdir@
  62347. pkgdatadir = $(datadir)/@PACKAGE@
  62348. -pkglibdir = $(libdir)/@PACKAGE@
  62349. pkgincludedir = $(includedir)/@PACKAGE@
  62350. +pkglibdir = $(libdir)/@PACKAGE@
  62351. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62352. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62353. install_sh_DATA = $(install_sh) -c -m 644
  62354. install_sh_PROGRAM = $(install_sh) -c
  62355. @@ -57,6 +59,8 @@
  62356. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog
  62357. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  62358. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  62359. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  62360. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  62361. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  62362. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  62363. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  62364. @@ -65,6 +69,7 @@
  62365. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  62366. CONFIG_HEADER = $(top_builddir)/config.h
  62367. CONFIG_CLEAN_FILES =
  62368. +CONFIG_CLEAN_VPATH_FILES =
  62369. LTLIBRARIES = $(noinst_LTLIBRARIES)
  62370. am__DEPENDENCIES_1 =
  62371. am__librandom_la_SOURCES_DIST = random.c random.h rand-internal.h \
  62372. @@ -76,6 +81,7 @@
  62373. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62374. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62375. am__depfiles_maybe = depfiles
  62376. +am__mv = mv -f
  62377. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62378. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62379. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62380. @@ -110,24 +116,20 @@
  62381. CFLAGS = @CFLAGS@
  62382. CPP = @CPP@
  62383. CPPFLAGS = @CPPFLAGS@
  62384. -CXX = @CXX@
  62385. -CXXCPP = @CXXCPP@
  62386. -CXXDEPMODE = @CXXDEPMODE@
  62387. -CXXFLAGS = @CXXFLAGS@
  62388. CYGPATH_W = @CYGPATH_W@
  62389. DEFS = @DEFS@
  62390. DEPDIR = @DEPDIR@
  62391. DLLTOOL = @DLLTOOL@
  62392. DL_LIBS = @DL_LIBS@
  62393. -ECHO = @ECHO@
  62394. +DSYMUTIL = @DSYMUTIL@
  62395. +DUMPBIN = @DUMPBIN@
  62396. ECHO_C = @ECHO_C@
  62397. ECHO_N = @ECHO_N@
  62398. ECHO_T = @ECHO_T@
  62399. EGREP = @EGREP@
  62400. EXEEXT = @EXEEXT@
  62401. -F77 = @F77@
  62402. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  62403. -FFLAGS = @FFLAGS@
  62404. +FGREP = @FGREP@
  62405. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  62406. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  62407. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  62408. @@ -141,6 +143,7 @@
  62409. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62410. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62411. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62412. +LD = @LD@
  62413. LDFLAGS = @LDFLAGS@
  62414. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  62415. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  62416. @@ -155,15 +158,20 @@
  62417. LIBOBJS = @LIBOBJS@
  62418. LIBS = @LIBS@
  62419. LIBTOOL = @LIBTOOL@
  62420. +LIPO = @LIPO@
  62421. LN_S = @LN_S@
  62422. LTLIBOBJS = @LTLIBOBJS@
  62423. MAINT = @MAINT@
  62424. MAKEINFO = @MAKEINFO@
  62425. MKDIR_P = @MKDIR_P@
  62426. MPI_SFLAGS = @MPI_SFLAGS@
  62427. +NM = @NM@
  62428. +NMEDIT = @NMEDIT@
  62429. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  62430. OBJDUMP = @OBJDUMP@
  62431. OBJEXT = @OBJEXT@
  62432. +OTOOL = @OTOOL@
  62433. +OTOOL64 = @OTOOL64@
  62434. PACKAGE = @PACKAGE@
  62435. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62436. PACKAGE_NAME = @PACKAGE_NAME@
  62437. @@ -176,7 +184,7 @@
  62438. PTH_CONFIG = @PTH_CONFIG@
  62439. PTH_LIBS = @PTH_LIBS@
  62440. RANLIB = @RANLIB@
  62441. -RC = @RC@
  62442. +SED = @SED@
  62443. SET_MAKE = @SET_MAKE@
  62444. SHELL = @SHELL@
  62445. STRIP = @STRIP@
  62446. @@ -187,8 +195,7 @@
  62447. abs_top_builddir = @abs_top_builddir@
  62448. abs_top_srcdir = @abs_top_srcdir@
  62449. ac_ct_CC = @ac_ct_CC@
  62450. -ac_ct_CXX = @ac_ct_CXX@
  62451. -ac_ct_F77 = @ac_ct_F77@
  62452. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62453. am__include = @am__include@
  62454. am__leading_dot = @am__leading_dot@
  62455. am__quote = @am__quote@
  62456. @@ -219,6 +226,7 @@
  62457. libexecdir = @libexecdir@
  62458. localedir = @localedir@
  62459. localstatedir = @localstatedir@
  62460. +lt_ECHO = @lt_ECHO@
  62461. mandir = @mandir@
  62462. mkdir_p = @mkdir_p@
  62463. oldincludedir = @oldincludedir@
  62464. @@ -264,9 +272,9 @@
  62465. exit 1;; \
  62466. esac; \
  62467. done; \
  62468. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu random/Makefile'; \
  62469. - cd $(top_srcdir) && \
  62470. - $(AUTOMAKE) --gnu random/Makefile
  62471. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu random/Makefile'; \
  62472. + $(am__cd) $(top_srcdir) && \
  62473. + $(AUTOMAKE) --gnu random/Makefile
  62474. .PRECIOUS: Makefile
  62475. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62476. @case '$?' in \
  62477. @@ -284,6 +292,7 @@
  62478. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62479. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  62480. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62481. +$(am__aclocal_m4_deps):
  62482. clean-noinstLTLIBRARIES:
  62483. -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
  62484. @@ -314,21 +323,21 @@
  62485. .c.o:
  62486. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62487. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62488. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62489. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62490. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62491. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  62492. .c.obj:
  62493. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62494. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62495. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62496. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62497. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62498. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  62499. .c.lo:
  62500. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62501. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62502. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62503. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62504. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62505. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62506. @@ -351,7 +360,7 @@
  62507. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62508. $(TAGS_FILES) $(LISP)
  62509. - tags=; \
  62510. + set x; \
  62511. here=`pwd`; \
  62512. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62513. unique=`for i in $$list; do \
  62514. @@ -359,29 +368,34 @@
  62515. done | \
  62516. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62517. END { if (nonempty) { for (i in files) print i; }; }'`; \
  62518. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62519. + shift; \
  62520. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62521. test -n "$$unique" || unique=$$empty_fix; \
  62522. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62523. - $$tags $$unique; \
  62524. + if test $$# -gt 0; then \
  62525. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62526. + "$$@" $$unique; \
  62527. + else \
  62528. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62529. + $$unique; \
  62530. + fi; \
  62531. fi
  62532. ctags: CTAGS
  62533. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62534. $(TAGS_FILES) $(LISP)
  62535. - tags=; \
  62536. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62537. unique=`for i in $$list; do \
  62538. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62539. done | \
  62540. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62541. END { if (nonempty) { for (i in files) print i; }; }'`; \
  62542. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62543. + test -z "$(CTAGS_ARGS)$$unique" \
  62544. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62545. - $$tags $$unique
  62546. + $$unique
  62547. GTAGS:
  62548. here=`$(am__cd) $(top_builddir) && pwd` \
  62549. - && cd $(top_srcdir) \
  62550. - && gtags -i $(GTAGS_ARGS) $$here
  62551. + && $(am__cd) $(top_srcdir) \
  62552. + && gtags -i $(GTAGS_ARGS) "$$here"
  62553. distclean-tags:
  62554. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62555. @@ -402,13 +416,17 @@
  62556. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62557. if test -d $$d/$$file; then \
  62558. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62559. + if test -d "$(distdir)/$$file"; then \
  62560. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62561. + fi; \
  62562. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62563. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62564. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62565. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62566. fi; \
  62567. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62568. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62569. else \
  62570. - test -f $(distdir)/$$file \
  62571. - || cp -p $$d/$$file $(distdir)/$$file \
  62572. + test -f "$(distdir)/$$file" \
  62573. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62574. || exit 1; \
  62575. fi; \
  62576. done
  62577. @@ -436,6 +454,7 @@
  62578. distclean-generic:
  62579. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62580. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62581. maintainer-clean-generic:
  62582. @echo "This command is intended for maintainers to use"
  62583. @@ -457,6 +476,8 @@
  62584. html: html-am
  62585. +html-am:
  62586. +
  62587. info: info-am
  62588. info-am:
  62589. @@ -465,18 +486,28 @@
  62590. install-dvi: install-dvi-am
  62591. +install-dvi-am:
  62592. +
  62593. install-exec-am:
  62594. install-html: install-html-am
  62595. +install-html-am:
  62596. +
  62597. install-info: install-info-am
  62598. +install-info-am:
  62599. +
  62600. install-man:
  62601. install-pdf: install-pdf-am
  62602. +install-pdf-am:
  62603. +
  62604. install-ps: install-ps-am
  62605. +install-ps-am:
  62606. +
  62607. installcheck-am:
  62608. maintainer-clean: maintainer-clean-am
  62609. @@ -514,6 +545,7 @@
  62610. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  62611. pdf pdf-am ps ps-am tags uninstall uninstall-am
  62612. +
  62613. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62614. # Otherwise a system limit (for SysV at least) may be exceeded.
  62615. .NOEXPORT:
  62616. diff -Nur libgcrypt-1.4.5.orig/src/Makefile.in libgcrypt-1.4.5/src/Makefile.in
  62617. --- libgcrypt-1.4.5.orig/src/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  62618. +++ libgcrypt-1.4.5/src/Makefile.in 2011-02-16 16:00:45.673721241 +0100
  62619. @@ -1,8 +1,9 @@
  62620. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  62621. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62622. # @configure_input@
  62623. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62624. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  62625. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62626. +# Inc.
  62627. # This Makefile.in is free software; the Free Software Foundation
  62628. # gives unlimited permission to copy and/or distribute it,
  62629. # with or without modifications, as long as this notice is preserved.
  62630. @@ -40,8 +41,9 @@
  62631. VPATH = @srcdir@
  62632. pkgdatadir = $(datadir)/@PACKAGE@
  62633. -pkglibdir = $(libdir)/@PACKAGE@
  62634. pkgincludedir = $(includedir)/@PACKAGE@
  62635. +pkglibdir = $(libdir)/@PACKAGE@
  62636. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62637. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62638. install_sh_DATA = $(install_sh) -c -m 644
  62639. install_sh_PROGRAM = $(install_sh) -c
  62640. @@ -66,6 +68,8 @@
  62641. ChangeLog
  62642. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  62643. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  62644. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  62645. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  62646. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  62647. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  62648. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  62649. @@ -74,16 +78,31 @@
  62650. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  62651. CONFIG_HEADER = $(top_builddir)/config.h
  62652. CONFIG_CLEAN_FILES = gcrypt.h libgcrypt-config versioninfo.rc
  62653. +CONFIG_CLEAN_VPATH_FILES =
  62654. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  62655. am__vpath_adj = case $$p in \
  62656. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  62657. *) f=$$p;; \
  62658. esac;
  62659. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  62660. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  62661. +am__install_max = 40
  62662. +am__nobase_strip_setup = \
  62663. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  62664. +am__nobase_strip = \
  62665. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  62666. +am__nobase_list = $(am__nobase_strip_setup); \
  62667. + for p in $$list; do echo "$$p $$p"; done | \
  62668. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  62669. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  62670. + if (++n[$$2] == $(am__install_max)) \
  62671. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  62672. + END { for (dir in files) print dir, files[dir] }'
  62673. +am__base_list = \
  62674. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  62675. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  62676. am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
  62677. "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(bindir)" \
  62678. "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(includedir)"
  62679. -libLTLIBRARIES_INSTALL = $(INSTALL)
  62680. LTLIBRARIES = $(lib_LTLIBRARIES)
  62681. am_libgcrypt_la_OBJECTS = libgcrypt_la-visibility.lo \
  62682. libgcrypt_la-misc.lo libgcrypt_la-global.lo \
  62683. @@ -97,8 +116,6 @@
  62684. $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libgcrypt_la_CFLAGS) \
  62685. $(CFLAGS) $(libgcrypt_la_LDFLAGS) $(LDFLAGS) -o $@
  62686. @USE_RANDOM_DAEMON_TRUE@am__EXEEXT_1 = getrandom$(EXEEXT)
  62687. -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  62688. -sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  62689. PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
  62690. am_dumpsexp_OBJECTS = dumpsexp.$(OBJEXT)
  62691. dumpsexp_OBJECTS = $(am_dumpsexp_OBJECTS)
  62692. @@ -123,11 +140,11 @@
  62693. hmac256_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62694. --mode=link $(CCLD) $(hmac256_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  62695. $(LDFLAGS) -o $@
  62696. -binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  62697. SCRIPTS = $(bin_SCRIPTS)
  62698. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62699. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62700. am__depfiles_maybe = depfiles
  62701. +am__mv = mv -f
  62702. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62703. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62704. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62705. @@ -142,9 +159,7 @@
  62706. DIST_SOURCES = $(libgcrypt_la_SOURCES) $(dumpsexp_SOURCES) \
  62707. $(am__gcryptrnd_SOURCES_DIST) $(am__getrandom_SOURCES_DIST) \
  62708. $(hmac256_SOURCES)
  62709. -m4dataDATA_INSTALL = $(INSTALL_DATA)
  62710. DATA = $(m4data_DATA)
  62711. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  62712. HEADERS = $(include_HEADERS)
  62713. ETAGS = etags
  62714. CTAGS = ctags
  62715. @@ -168,24 +183,20 @@
  62716. CFLAGS = @CFLAGS@
  62717. CPP = @CPP@
  62718. CPPFLAGS = @CPPFLAGS@
  62719. -CXX = @CXX@
  62720. -CXXCPP = @CXXCPP@
  62721. -CXXDEPMODE = @CXXDEPMODE@
  62722. -CXXFLAGS = @CXXFLAGS@
  62723. CYGPATH_W = @CYGPATH_W@
  62724. DEFS = @DEFS@
  62725. DEPDIR = @DEPDIR@
  62726. DLLTOOL = @DLLTOOL@
  62727. DL_LIBS = @DL_LIBS@
  62728. -ECHO = @ECHO@
  62729. +DSYMUTIL = @DSYMUTIL@
  62730. +DUMPBIN = @DUMPBIN@
  62731. ECHO_C = @ECHO_C@
  62732. ECHO_N = @ECHO_N@
  62733. ECHO_T = @ECHO_T@
  62734. EGREP = @EGREP@
  62735. EXEEXT = @EXEEXT@
  62736. -F77 = @F77@
  62737. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  62738. -FFLAGS = @FFLAGS@
  62739. +FGREP = @FGREP@
  62740. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  62741. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  62742. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  62743. @@ -199,6 +210,7 @@
  62744. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62745. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62746. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62747. +LD = @LD@
  62748. LDFLAGS = @LDFLAGS@
  62749. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  62750. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  62751. @@ -213,15 +225,20 @@
  62752. LIBOBJS = @LIBOBJS@
  62753. LIBS = @LIBS@
  62754. LIBTOOL = @LIBTOOL@
  62755. +LIPO = @LIPO@
  62756. LN_S = @LN_S@
  62757. LTLIBOBJS = @LTLIBOBJS@
  62758. MAINT = @MAINT@
  62759. MAKEINFO = @MAKEINFO@
  62760. MKDIR_P = @MKDIR_P@
  62761. MPI_SFLAGS = @MPI_SFLAGS@
  62762. +NM = @NM@
  62763. +NMEDIT = @NMEDIT@
  62764. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  62765. OBJDUMP = @OBJDUMP@
  62766. OBJEXT = @OBJEXT@
  62767. +OTOOL = @OTOOL@
  62768. +OTOOL64 = @OTOOL64@
  62769. PACKAGE = @PACKAGE@
  62770. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62771. PACKAGE_NAME = @PACKAGE_NAME@
  62772. @@ -234,7 +251,7 @@
  62773. PTH_CONFIG = @PTH_CONFIG@
  62774. PTH_LIBS = @PTH_LIBS@
  62775. RANLIB = @RANLIB@
  62776. -RC = @RC@
  62777. +SED = @SED@
  62778. SET_MAKE = @SET_MAKE@
  62779. SHELL = @SHELL@
  62780. STRIP = @STRIP@
  62781. @@ -245,8 +262,7 @@
  62782. abs_top_builddir = @abs_top_builddir@
  62783. abs_top_srcdir = @abs_top_srcdir@
  62784. ac_ct_CC = @ac_ct_CC@
  62785. -ac_ct_CXX = @ac_ct_CXX@
  62786. -ac_ct_F77 = @ac_ct_F77@
  62787. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62788. am__include = @am__include@
  62789. am__leading_dot = @am__leading_dot@
  62790. am__quote = @am__quote@
  62791. @@ -277,6 +293,7 @@
  62792. libexecdir = @libexecdir@
  62793. localedir = @localedir@
  62794. localstatedir = @localstatedir@
  62795. +lt_ECHO = @lt_ECHO@
  62796. mandir = @mandir@
  62797. mkdir_p = @mkdir_p@
  62798. oldincludedir = @oldincludedir@
  62799. @@ -363,9 +380,9 @@
  62800. exit 1;; \
  62801. esac; \
  62802. done; \
  62803. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62804. - cd $(top_srcdir) && \
  62805. - $(AUTOMAKE) --gnu src/Makefile
  62806. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62807. + $(am__cd) $(top_srcdir) && \
  62808. + $(AUTOMAKE) --gnu src/Makefile
  62809. .PRECIOUS: Makefile
  62810. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62811. @case '$?' in \
  62812. @@ -383,6 +400,7 @@
  62813. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62814. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  62815. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62816. +$(am__aclocal_m4_deps):
  62817. gcrypt.h: $(top_builddir)/config.status $(srcdir)/gcrypt.h.in
  62818. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  62819. libgcrypt-config: $(top_builddir)/config.status $(srcdir)/libgcrypt-config.in
  62820. @@ -392,20 +410,24 @@
  62821. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  62822. @$(NORMAL_INSTALL)
  62823. test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  62824. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62825. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62826. + list2=; for p in $$list; do \
  62827. if test -f $$p; then \
  62828. - f=$(am__strip_dir) \
  62829. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  62830. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  62831. + list2="$$list2 $$p"; \
  62832. else :; fi; \
  62833. - done
  62834. + done; \
  62835. + test -z "$$list2" || { \
  62836. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  62837. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  62838. + }
  62839. uninstall-libLTLIBRARIES:
  62840. @$(NORMAL_UNINSTALL)
  62841. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62842. - p=$(am__strip_dir) \
  62843. - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  62844. - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  62845. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62846. + for p in $$list; do \
  62847. + $(am__strip_dir) \
  62848. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  62849. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  62850. done
  62851. clean-libLTLIBRARIES:
  62852. @@ -421,59 +443,89 @@
  62853. install-binPROGRAMS: $(bin_PROGRAMS)
  62854. @$(NORMAL_INSTALL)
  62855. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  62856. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  62857. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62858. - if test -f $$p \
  62859. - || test -f $$p1 \
  62860. - ; then \
  62861. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  62862. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  62863. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
  62864. - else :; fi; \
  62865. - done
  62866. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  62867. + for p in $$list; do echo "$$p $$p"; done | \
  62868. + sed 's/$(EXEEXT)$$//' | \
  62869. + while read p p1; do if test -f $$p || test -f $$p1; \
  62870. + then echo "$$p"; echo "$$p"; else :; fi; \
  62871. + done | \
  62872. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  62873. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  62874. + sed 'N;N;N;s,\n, ,g' | \
  62875. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  62876. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  62877. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  62878. + else { print "f", $$3 "/" $$4, $$1; } } \
  62879. + END { for (d in files) print "f", d, files[d] }' | \
  62880. + while read type dir files; do \
  62881. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  62882. + test -z "$$files" || { \
  62883. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  62884. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  62885. + } \
  62886. + ; done
  62887. uninstall-binPROGRAMS:
  62888. @$(NORMAL_UNINSTALL)
  62889. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  62890. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  62891. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  62892. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  62893. - done
  62894. + @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
  62895. + files=`for p in $$list; do echo "$$p"; done | \
  62896. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  62897. + -e 's/$$/$(EXEEXT)/' `; \
  62898. + test -n "$$list" || exit 0; \
  62899. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  62900. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  62901. clean-binPROGRAMS:
  62902. - @list='$(bin_PROGRAMS)'; for p in $$list; do \
  62903. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62904. - echo " rm -f $$p $$f"; \
  62905. - rm -f $$p $$f ; \
  62906. - done
  62907. + @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
  62908. + echo " rm -f" $$list; \
  62909. + rm -f $$list || exit $$?; \
  62910. + test -n "$(EXEEXT)" || exit 0; \
  62911. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  62912. + echo " rm -f" $$list; \
  62913. + rm -f $$list
  62914. install-sbinPROGRAMS: $(sbin_PROGRAMS)
  62915. @$(NORMAL_INSTALL)
  62916. test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
  62917. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  62918. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62919. - if test -f $$p \
  62920. - || test -f $$p1 \
  62921. - ; then \
  62922. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  62923. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
  62924. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
  62925. - else :; fi; \
  62926. - done
  62927. + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
  62928. + for p in $$list; do echo "$$p $$p"; done | \
  62929. + sed 's/$(EXEEXT)$$//' | \
  62930. + while read p p1; do if test -f $$p || test -f $$p1; \
  62931. + then echo "$$p"; echo "$$p"; else :; fi; \
  62932. + done | \
  62933. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  62934. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  62935. + sed 'N;N;N;s,\n, ,g' | \
  62936. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  62937. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  62938. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  62939. + else { print "f", $$3 "/" $$4, $$1; } } \
  62940. + END { for (d in files) print "f", d, files[d] }' | \
  62941. + while read type dir files; do \
  62942. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  62943. + test -z "$$files" || { \
  62944. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
  62945. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
  62946. + } \
  62947. + ; done
  62948. uninstall-sbinPROGRAMS:
  62949. @$(NORMAL_UNINSTALL)
  62950. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  62951. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  62952. - echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
  62953. - rm -f "$(DESTDIR)$(sbindir)/$$f"; \
  62954. - done
  62955. + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
  62956. + files=`for p in $$list; do echo "$$p"; done | \
  62957. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  62958. + -e 's/$$/$(EXEEXT)/' `; \
  62959. + test -n "$$list" || exit 0; \
  62960. + echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
  62961. + cd "$(DESTDIR)$(sbindir)" && rm -f $$files
  62962. clean-sbinPROGRAMS:
  62963. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  62964. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62965. - echo " rm -f $$p $$f"; \
  62966. - rm -f $$p $$f ; \
  62967. - done
  62968. + @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
  62969. + echo " rm -f" $$list; \
  62970. + rm -f $$list || exit $$?; \
  62971. + test -n "$(EXEEXT)" || exit 0; \
  62972. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  62973. + echo " rm -f" $$list; \
  62974. + rm -f $$list
  62975. dumpsexp$(EXEEXT): $(dumpsexp_OBJECTS) $(dumpsexp_DEPENDENCIES)
  62976. @rm -f dumpsexp$(EXEEXT)
  62977. $(LINK) $(dumpsexp_OBJECTS) $(dumpsexp_LDADD) $(LIBS)
  62978. @@ -489,22 +541,37 @@
  62979. install-binSCRIPTS: $(bin_SCRIPTS)
  62980. @$(NORMAL_INSTALL)
  62981. test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
  62982. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  62983. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
  62984. + for p in $$list; do \
  62985. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62986. - if test -f $$d$$p; then \
  62987. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  62988. - echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  62989. - $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  62990. - else :; fi; \
  62991. - done
  62992. + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
  62993. + done | \
  62994. + sed -e 'p;s,.*/,,;n' \
  62995. + -e 'h;s|.*|.|' \
  62996. + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
  62997. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
  62998. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  62999. + if ($$2 == $$4) { files[d] = files[d] " " $$1; \
  63000. + if (++n[d] == $(am__install_max)) { \
  63001. + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
  63002. + else { print "f", d "/" $$4, $$1 } } \
  63003. + END { for (d in files) print "f", d, files[d] }' | \
  63004. + while read type dir files; do \
  63005. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  63006. + test -z "$$files" || { \
  63007. + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
  63008. + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
  63009. + } \
  63010. + ; done
  63011. uninstall-binSCRIPTS:
  63012. @$(NORMAL_UNINSTALL)
  63013. - @list='$(bin_SCRIPTS)'; for p in $$list; do \
  63014. - f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  63015. - echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  63016. - rm -f "$(DESTDIR)$(bindir)/$$f"; \
  63017. - done
  63018. + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
  63019. + files=`for p in $$list; do echo "$$p"; done | \
  63020. + sed -e 's,.*/,,;$(transform)'`; \
  63021. + test -n "$$list" || exit 0; \
  63022. + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
  63023. + cd "$(DESTDIR)$(bindir)" && rm -f $$files
  63024. mostlyclean-compile:
  63025. -rm -f *.$(OBJEXT)
  63026. @@ -531,133 +598,133 @@
  63027. .c.o:
  63028. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  63029. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63030. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63031. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63032. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63033. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  63034. .c.obj:
  63035. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  63036. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63037. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63038. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63039. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63040. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  63041. .c.lo:
  63042. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  63043. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  63044. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  63045. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  63046. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63047. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  63048. libgcrypt_la-visibility.lo: visibility.c
  63049. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-visibility.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-visibility.Tpo -c -o libgcrypt_la-visibility.lo `test -f 'visibility.c' || echo '$(srcdir)/'`visibility.c
  63050. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-visibility.Tpo $(DEPDIR)/libgcrypt_la-visibility.Plo
  63051. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-visibility.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-visibility.Tpo -c -o libgcrypt_la-visibility.lo `test -f 'visibility.c' || echo '$(srcdir)/'`visibility.c
  63052. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-visibility.Tpo $(DEPDIR)/libgcrypt_la-visibility.Plo
  63053. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='visibility.c' object='libgcrypt_la-visibility.lo' libtool=yes @AMDEPBACKSLASH@
  63054. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63055. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-visibility.lo `test -f 'visibility.c' || echo '$(srcdir)/'`visibility.c
  63056. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-visibility.lo `test -f 'visibility.c' || echo '$(srcdir)/'`visibility.c
  63057. libgcrypt_la-misc.lo: misc.c
  63058. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-misc.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-misc.Tpo -c -o libgcrypt_la-misc.lo `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
  63059. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-misc.Tpo $(DEPDIR)/libgcrypt_la-misc.Plo
  63060. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-misc.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-misc.Tpo -c -o libgcrypt_la-misc.lo `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
  63061. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-misc.Tpo $(DEPDIR)/libgcrypt_la-misc.Plo
  63062. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='misc.c' object='libgcrypt_la-misc.lo' libtool=yes @AMDEPBACKSLASH@
  63063. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63064. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-misc.lo `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
  63065. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-misc.lo `test -f 'misc.c' || echo '$(srcdir)/'`misc.c
  63066. libgcrypt_la-global.lo: global.c
  63067. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-global.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-global.Tpo -c -o libgcrypt_la-global.lo `test -f 'global.c' || echo '$(srcdir)/'`global.c
  63068. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-global.Tpo $(DEPDIR)/libgcrypt_la-global.Plo
  63069. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-global.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-global.Tpo -c -o libgcrypt_la-global.lo `test -f 'global.c' || echo '$(srcdir)/'`global.c
  63070. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-global.Tpo $(DEPDIR)/libgcrypt_la-global.Plo
  63071. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='global.c' object='libgcrypt_la-global.lo' libtool=yes @AMDEPBACKSLASH@
  63072. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63073. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-global.lo `test -f 'global.c' || echo '$(srcdir)/'`global.c
  63074. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-global.lo `test -f 'global.c' || echo '$(srcdir)/'`global.c
  63075. libgcrypt_la-sexp.lo: sexp.c
  63076. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-sexp.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-sexp.Tpo -c -o libgcrypt_la-sexp.lo `test -f 'sexp.c' || echo '$(srcdir)/'`sexp.c
  63077. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-sexp.Tpo $(DEPDIR)/libgcrypt_la-sexp.Plo
  63078. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-sexp.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-sexp.Tpo -c -o libgcrypt_la-sexp.lo `test -f 'sexp.c' || echo '$(srcdir)/'`sexp.c
  63079. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-sexp.Tpo $(DEPDIR)/libgcrypt_la-sexp.Plo
  63080. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sexp.c' object='libgcrypt_la-sexp.lo' libtool=yes @AMDEPBACKSLASH@
  63081. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63082. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-sexp.lo `test -f 'sexp.c' || echo '$(srcdir)/'`sexp.c
  63083. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-sexp.lo `test -f 'sexp.c' || echo '$(srcdir)/'`sexp.c
  63084. libgcrypt_la-hwfeatures.lo: hwfeatures.c
  63085. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-hwfeatures.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-hwfeatures.Tpo -c -o libgcrypt_la-hwfeatures.lo `test -f 'hwfeatures.c' || echo '$(srcdir)/'`hwfeatures.c
  63086. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-hwfeatures.Tpo $(DEPDIR)/libgcrypt_la-hwfeatures.Plo
  63087. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-hwfeatures.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-hwfeatures.Tpo -c -o libgcrypt_la-hwfeatures.lo `test -f 'hwfeatures.c' || echo '$(srcdir)/'`hwfeatures.c
  63088. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-hwfeatures.Tpo $(DEPDIR)/libgcrypt_la-hwfeatures.Plo
  63089. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hwfeatures.c' object='libgcrypt_la-hwfeatures.lo' libtool=yes @AMDEPBACKSLASH@
  63090. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63091. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-hwfeatures.lo `test -f 'hwfeatures.c' || echo '$(srcdir)/'`hwfeatures.c
  63092. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-hwfeatures.lo `test -f 'hwfeatures.c' || echo '$(srcdir)/'`hwfeatures.c
  63093. libgcrypt_la-stdmem.lo: stdmem.c
  63094. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-stdmem.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-stdmem.Tpo -c -o libgcrypt_la-stdmem.lo `test -f 'stdmem.c' || echo '$(srcdir)/'`stdmem.c
  63095. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-stdmem.Tpo $(DEPDIR)/libgcrypt_la-stdmem.Plo
  63096. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-stdmem.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-stdmem.Tpo -c -o libgcrypt_la-stdmem.lo `test -f 'stdmem.c' || echo '$(srcdir)/'`stdmem.c
  63097. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-stdmem.Tpo $(DEPDIR)/libgcrypt_la-stdmem.Plo
  63098. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='stdmem.c' object='libgcrypt_la-stdmem.lo' libtool=yes @AMDEPBACKSLASH@
  63099. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63100. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-stdmem.lo `test -f 'stdmem.c' || echo '$(srcdir)/'`stdmem.c
  63101. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-stdmem.lo `test -f 'stdmem.c' || echo '$(srcdir)/'`stdmem.c
  63102. libgcrypt_la-secmem.lo: secmem.c
  63103. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-secmem.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-secmem.Tpo -c -o libgcrypt_la-secmem.lo `test -f 'secmem.c' || echo '$(srcdir)/'`secmem.c
  63104. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-secmem.Tpo $(DEPDIR)/libgcrypt_la-secmem.Plo
  63105. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-secmem.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-secmem.Tpo -c -o libgcrypt_la-secmem.lo `test -f 'secmem.c' || echo '$(srcdir)/'`secmem.c
  63106. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-secmem.Tpo $(DEPDIR)/libgcrypt_la-secmem.Plo
  63107. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='secmem.c' object='libgcrypt_la-secmem.lo' libtool=yes @AMDEPBACKSLASH@
  63108. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63109. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-secmem.lo `test -f 'secmem.c' || echo '$(srcdir)/'`secmem.c
  63110. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-secmem.lo `test -f 'secmem.c' || echo '$(srcdir)/'`secmem.c
  63111. libgcrypt_la-missing-string.lo: missing-string.c
  63112. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-missing-string.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-missing-string.Tpo -c -o libgcrypt_la-missing-string.lo `test -f 'missing-string.c' || echo '$(srcdir)/'`missing-string.c
  63113. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-missing-string.Tpo $(DEPDIR)/libgcrypt_la-missing-string.Plo
  63114. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-missing-string.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-missing-string.Tpo -c -o libgcrypt_la-missing-string.lo `test -f 'missing-string.c' || echo '$(srcdir)/'`missing-string.c
  63115. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-missing-string.Tpo $(DEPDIR)/libgcrypt_la-missing-string.Plo
  63116. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='missing-string.c' object='libgcrypt_la-missing-string.lo' libtool=yes @AMDEPBACKSLASH@
  63117. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63118. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-missing-string.lo `test -f 'missing-string.c' || echo '$(srcdir)/'`missing-string.c
  63119. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-missing-string.lo `test -f 'missing-string.c' || echo '$(srcdir)/'`missing-string.c
  63120. libgcrypt_la-module.lo: module.c
  63121. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-module.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-module.Tpo -c -o libgcrypt_la-module.lo `test -f 'module.c' || echo '$(srcdir)/'`module.c
  63122. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-module.Tpo $(DEPDIR)/libgcrypt_la-module.Plo
  63123. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-module.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-module.Tpo -c -o libgcrypt_la-module.lo `test -f 'module.c' || echo '$(srcdir)/'`module.c
  63124. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-module.Tpo $(DEPDIR)/libgcrypt_la-module.Plo
  63125. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='module.c' object='libgcrypt_la-module.lo' libtool=yes @AMDEPBACKSLASH@
  63126. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63127. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-module.lo `test -f 'module.c' || echo '$(srcdir)/'`module.c
  63128. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-module.lo `test -f 'module.c' || echo '$(srcdir)/'`module.c
  63129. libgcrypt_la-fips.lo: fips.c
  63130. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-fips.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-fips.Tpo -c -o libgcrypt_la-fips.lo `test -f 'fips.c' || echo '$(srcdir)/'`fips.c
  63131. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-fips.Tpo $(DEPDIR)/libgcrypt_la-fips.Plo
  63132. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-fips.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-fips.Tpo -c -o libgcrypt_la-fips.lo `test -f 'fips.c' || echo '$(srcdir)/'`fips.c
  63133. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-fips.Tpo $(DEPDIR)/libgcrypt_la-fips.Plo
  63134. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fips.c' object='libgcrypt_la-fips.lo' libtool=yes @AMDEPBACKSLASH@
  63135. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63136. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-fips.lo `test -f 'fips.c' || echo '$(srcdir)/'`fips.c
  63137. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-fips.lo `test -f 'fips.c' || echo '$(srcdir)/'`fips.c
  63138. libgcrypt_la-hmac256.lo: hmac256.c
  63139. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-hmac256.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-hmac256.Tpo -c -o libgcrypt_la-hmac256.lo `test -f 'hmac256.c' || echo '$(srcdir)/'`hmac256.c
  63140. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-hmac256.Tpo $(DEPDIR)/libgcrypt_la-hmac256.Plo
  63141. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-hmac256.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-hmac256.Tpo -c -o libgcrypt_la-hmac256.lo `test -f 'hmac256.c' || echo '$(srcdir)/'`hmac256.c
  63142. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-hmac256.Tpo $(DEPDIR)/libgcrypt_la-hmac256.Plo
  63143. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hmac256.c' object='libgcrypt_la-hmac256.lo' libtool=yes @AMDEPBACKSLASH@
  63144. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63145. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-hmac256.lo `test -f 'hmac256.c' || echo '$(srcdir)/'`hmac256.c
  63146. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-hmac256.lo `test -f 'hmac256.c' || echo '$(srcdir)/'`hmac256.c
  63147. libgcrypt_la-ath.lo: ath.c
  63148. -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-ath.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-ath.Tpo -c -o libgcrypt_la-ath.lo `test -f 'ath.c' || echo '$(srcdir)/'`ath.c
  63149. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/libgcrypt_la-ath.Tpo $(DEPDIR)/libgcrypt_la-ath.Plo
  63150. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -MT libgcrypt_la-ath.lo -MD -MP -MF $(DEPDIR)/libgcrypt_la-ath.Tpo -c -o libgcrypt_la-ath.lo `test -f 'ath.c' || echo '$(srcdir)/'`ath.c
  63151. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libgcrypt_la-ath.Tpo $(DEPDIR)/libgcrypt_la-ath.Plo
  63152. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ath.c' object='libgcrypt_la-ath.lo' libtool=yes @AMDEPBACKSLASH@
  63153. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63154. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-ath.lo `test -f 'ath.c' || echo '$(srcdir)/'`ath.c
  63155. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgcrypt_la_CFLAGS) $(CFLAGS) -c -o libgcrypt_la-ath.lo `test -f 'ath.c' || echo '$(srcdir)/'`ath.c
  63156. gcryptrnd-gcryptrnd.o: gcryptrnd.c
  63157. @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gcryptrnd_CFLAGS) $(CFLAGS) -MT gcryptrnd-gcryptrnd.o -MD -MP -MF $(DEPDIR)/gcryptrnd-gcryptrnd.Tpo -c -o gcryptrnd-gcryptrnd.o `test -f 'gcryptrnd.c' || echo '$(srcdir)/'`gcryptrnd.c
  63158. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/gcryptrnd-gcryptrnd.Tpo $(DEPDIR)/gcryptrnd-gcryptrnd.Po
  63159. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gcryptrnd-gcryptrnd.Tpo $(DEPDIR)/gcryptrnd-gcryptrnd.Po
  63160. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gcryptrnd.c' object='gcryptrnd-gcryptrnd.o' libtool=no @AMDEPBACKSLASH@
  63161. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63162. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gcryptrnd_CFLAGS) $(CFLAGS) -c -o gcryptrnd-gcryptrnd.o `test -f 'gcryptrnd.c' || echo '$(srcdir)/'`gcryptrnd.c
  63163. gcryptrnd-gcryptrnd.obj: gcryptrnd.c
  63164. @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gcryptrnd_CFLAGS) $(CFLAGS) -MT gcryptrnd-gcryptrnd.obj -MD -MP -MF $(DEPDIR)/gcryptrnd-gcryptrnd.Tpo -c -o gcryptrnd-gcryptrnd.obj `if test -f 'gcryptrnd.c'; then $(CYGPATH_W) 'gcryptrnd.c'; else $(CYGPATH_W) '$(srcdir)/gcryptrnd.c'; fi`
  63165. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/gcryptrnd-gcryptrnd.Tpo $(DEPDIR)/gcryptrnd-gcryptrnd.Po
  63166. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gcryptrnd-gcryptrnd.Tpo $(DEPDIR)/gcryptrnd-gcryptrnd.Po
  63167. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gcryptrnd.c' object='gcryptrnd-gcryptrnd.obj' libtool=no @AMDEPBACKSLASH@
  63168. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63169. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gcryptrnd_CFLAGS) $(CFLAGS) -c -o gcryptrnd-gcryptrnd.obj `if test -f 'gcryptrnd.c'; then $(CYGPATH_W) 'gcryptrnd.c'; else $(CYGPATH_W) '$(srcdir)/gcryptrnd.c'; fi`
  63170. hmac256-hmac256.o: hmac256.c
  63171. @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hmac256_CFLAGS) $(CFLAGS) -MT hmac256-hmac256.o -MD -MP -MF $(DEPDIR)/hmac256-hmac256.Tpo -c -o hmac256-hmac256.o `test -f 'hmac256.c' || echo '$(srcdir)/'`hmac256.c
  63172. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/hmac256-hmac256.Tpo $(DEPDIR)/hmac256-hmac256.Po
  63173. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hmac256-hmac256.Tpo $(DEPDIR)/hmac256-hmac256.Po
  63174. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hmac256.c' object='hmac256-hmac256.o' libtool=no @AMDEPBACKSLASH@
  63175. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63176. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hmac256_CFLAGS) $(CFLAGS) -c -o hmac256-hmac256.o `test -f 'hmac256.c' || echo '$(srcdir)/'`hmac256.c
  63177. hmac256-hmac256.obj: hmac256.c
  63178. @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hmac256_CFLAGS) $(CFLAGS) -MT hmac256-hmac256.obj -MD -MP -MF $(DEPDIR)/hmac256-hmac256.Tpo -c -o hmac256-hmac256.obj `if test -f 'hmac256.c'; then $(CYGPATH_W) 'hmac256.c'; else $(CYGPATH_W) '$(srcdir)/hmac256.c'; fi`
  63179. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/hmac256-hmac256.Tpo $(DEPDIR)/hmac256-hmac256.Po
  63180. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/hmac256-hmac256.Tpo $(DEPDIR)/hmac256-hmac256.Po
  63181. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hmac256.c' object='hmac256-hmac256.obj' libtool=no @AMDEPBACKSLASH@
  63182. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63183. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hmac256_CFLAGS) $(CFLAGS) -c -o hmac256-hmac256.obj `if test -f 'hmac256.c'; then $(CYGPATH_W) 'hmac256.c'; else $(CYGPATH_W) '$(srcdir)/hmac256.c'; fi`
  63184. @@ -670,37 +737,43 @@
  63185. install-m4dataDATA: $(m4data_DATA)
  63186. @$(NORMAL_INSTALL)
  63187. test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
  63188. - @list='$(m4data_DATA)'; for p in $$list; do \
  63189. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  63190. + for p in $$list; do \
  63191. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63192. - f=$(am__strip_dir) \
  63193. - echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
  63194. - $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
  63195. + echo "$$d$$p"; \
  63196. + done | $(am__base_list) | \
  63197. + while read files; do \
  63198. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \
  63199. + $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \
  63200. done
  63201. uninstall-m4dataDATA:
  63202. @$(NORMAL_UNINSTALL)
  63203. - @list='$(m4data_DATA)'; for p in $$list; do \
  63204. - f=$(am__strip_dir) \
  63205. - echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
  63206. - rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
  63207. - done
  63208. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  63209. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63210. + test -n "$$files" || exit 0; \
  63211. + echo " ( cd '$(DESTDIR)$(m4datadir)' && rm -f" $$files ")"; \
  63212. + cd "$(DESTDIR)$(m4datadir)" && rm -f $$files
  63213. install-includeHEADERS: $(include_HEADERS)
  63214. @$(NORMAL_INSTALL)
  63215. test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  63216. - @list='$(include_HEADERS)'; for p in $$list; do \
  63217. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  63218. + for p in $$list; do \
  63219. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  63220. - f=$(am__strip_dir) \
  63221. - echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  63222. - $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  63223. + echo "$$d$$p"; \
  63224. + done | $(am__base_list) | \
  63225. + while read files; do \
  63226. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  63227. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  63228. done
  63229. uninstall-includeHEADERS:
  63230. @$(NORMAL_UNINSTALL)
  63231. - @list='$(include_HEADERS)'; for p in $$list; do \
  63232. - f=$(am__strip_dir) \
  63233. - echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  63234. - rm -f "$(DESTDIR)$(includedir)/$$f"; \
  63235. - done
  63236. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  63237. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  63238. + test -n "$$files" || exit 0; \
  63239. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  63240. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  63241. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  63242. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63243. @@ -714,7 +787,7 @@
  63244. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63245. $(TAGS_FILES) $(LISP)
  63246. - tags=; \
  63247. + set x; \
  63248. here=`pwd`; \
  63249. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63250. unique=`for i in $$list; do \
  63251. @@ -722,29 +795,34 @@
  63252. done | \
  63253. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63254. END { if (nonempty) { for (i in files) print i; }; }'`; \
  63255. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  63256. + shift; \
  63257. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63258. test -n "$$unique" || unique=$$empty_fix; \
  63259. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63260. - $$tags $$unique; \
  63261. + if test $$# -gt 0; then \
  63262. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63263. + "$$@" $$unique; \
  63264. + else \
  63265. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63266. + $$unique; \
  63267. + fi; \
  63268. fi
  63269. ctags: CTAGS
  63270. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63271. $(TAGS_FILES) $(LISP)
  63272. - tags=; \
  63273. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63274. unique=`for i in $$list; do \
  63275. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63276. done | \
  63277. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63278. END { if (nonempty) { for (i in files) print i; }; }'`; \
  63279. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  63280. + test -z "$(CTAGS_ARGS)$$unique" \
  63281. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  63282. - $$tags $$unique
  63283. + $$unique
  63284. GTAGS:
  63285. here=`$(am__cd) $(top_builddir) && pwd` \
  63286. - && cd $(top_srcdir) \
  63287. - && gtags -i $(GTAGS_ARGS) $$here
  63288. + && $(am__cd) $(top_srcdir) \
  63289. + && gtags -i $(GTAGS_ARGS) "$$here"
  63290. distclean-tags:
  63291. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  63292. @@ -765,13 +843,17 @@
  63293. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63294. if test -d $$d/$$file; then \
  63295. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63296. + if test -d "$(distdir)/$$file"; then \
  63297. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63298. + fi; \
  63299. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63300. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63301. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63302. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63303. fi; \
  63304. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63305. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63306. else \
  63307. - test -f $(distdir)/$$file \
  63308. - || cp -p $$d/$$file $(distdir)/$$file \
  63309. + test -f "$(distdir)/$$file" \
  63310. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63311. || exit 1; \
  63312. fi; \
  63313. done
  63314. @@ -805,6 +887,7 @@
  63315. distclean-generic:
  63316. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63317. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63318. maintainer-clean-generic:
  63319. @echo "This command is intended for maintainers to use"
  63320. @@ -826,6 +909,8 @@
  63321. html: html-am
  63322. +html-am:
  63323. +
  63324. info: info-am
  63325. info-am:
  63326. @@ -835,19 +920,29 @@
  63327. install-dvi: install-dvi-am
  63328. +install-dvi-am:
  63329. +
  63330. install-exec-am: install-binPROGRAMS install-binSCRIPTS \
  63331. install-libLTLIBRARIES install-sbinPROGRAMS
  63332. install-html: install-html-am
  63333. +install-html-am:
  63334. +
  63335. install-info: install-info-am
  63336. +install-info-am:
  63337. +
  63338. install-man:
  63339. install-pdf: install-pdf-am
  63340. +install-pdf-am:
  63341. +
  63342. install-ps: install-ps-am
  63343. +install-ps-am:
  63344. +
  63345. installcheck-am:
  63346. maintainer-clean: maintainer-clean-am
  63347. @@ -917,6 +1012,7 @@
  63348. # ./hmac256 "What am I, a doctor or a moonshuttle conductor?" \
  63349. # < $(DESTDIR)$(libdir)/libgcrypt.so.11.5.0 \
  63350. # > $(DESTDIR)$(libdir)/.libgcrypt.so.11.5.0.hmac
  63351. +
  63352. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63353. # Otherwise a system limit (for SysV at least) may be exceeded.
  63354. .NOEXPORT:
  63355. diff -Nur libgcrypt-1.4.5.orig/tests/Makefile.in libgcrypt-1.4.5/tests/Makefile.in
  63356. --- libgcrypt-1.4.5.orig/tests/Makefile.in 2009-12-11 16:43:30.000000000 +0100
  63357. +++ libgcrypt-1.4.5/tests/Makefile.in 2011-02-16 16:00:45.773561082 +0100
  63358. @@ -1,8 +1,9 @@
  63359. -# Makefile.in generated by automake 1.10.2 from Makefile.am.
  63360. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  63361. # @configure_input@
  63362. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  63363. -# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  63364. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  63365. +# Inc.
  63366. # This Makefile.in is free software; the Free Software Foundation
  63367. # gives unlimited permission to copy and/or distribute it,
  63368. # with or without modifications, as long as this notice is preserved.
  63369. @@ -34,8 +35,9 @@
  63370. VPATH = @srcdir@
  63371. pkgdatadir = $(datadir)/@PACKAGE@
  63372. -pkglibdir = $(libdir)/@PACKAGE@
  63373. pkgincludedir = $(includedir)/@PACKAGE@
  63374. +pkglibdir = $(libdir)/@PACKAGE@
  63375. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  63376. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  63377. install_sh_DATA = $(install_sh) -c -m 644
  63378. install_sh_PROGRAM = $(install_sh) -c
  63379. @@ -66,6 +68,8 @@
  63380. ChangeLog
  63381. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  63382. am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
  63383. + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
  63384. + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
  63385. $(top_srcdir)/m4/noexecstack.m4 $(top_srcdir)/m4/onceonly.m4 \
  63386. $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sys_socket_h.m4 \
  63387. $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
  63388. @@ -74,6 +78,7 @@
  63389. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  63390. CONFIG_HEADER = $(top_builddir)/config.h
  63391. CONFIG_CLEAN_FILES =
  63392. +CONFIG_CLEAN_VPATH_FILES =
  63393. @HAVE_W32_SYSTEM_FALSE@am__EXEEXT_1 = random$(EXEEXT)
  63394. am__EXEEXT_2 = version$(EXEEXT) t-mpi-bit$(EXEEXT) prime$(EXEEXT) \
  63395. register$(EXEEXT) ac$(EXEEXT) ac-schemes$(EXEEXT) \
  63396. @@ -166,6 +171,7 @@
  63397. DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  63398. depcomp = $(SHELL) $(top_srcdir)/depcomp
  63399. am__depfiles_maybe = depfiles
  63400. +am__mv = mv -f
  63401. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  63402. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  63403. LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  63404. @@ -185,6 +191,8 @@
  63405. testapi.c tsexp.c version.c
  63406. ETAGS = etags
  63407. CTAGS = ctags
  63408. +am__tty_colors = \
  63409. +red=; grn=; lgn=; blu=; std=
  63410. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  63411. ACLOCAL = @ACLOCAL@
  63412. AMTAR = @AMTAR@
  63413. @@ -205,24 +213,20 @@
  63414. CFLAGS = @CFLAGS@
  63415. CPP = @CPP@
  63416. CPPFLAGS = @CPPFLAGS@
  63417. -CXX = @CXX@
  63418. -CXXCPP = @CXXCPP@
  63419. -CXXDEPMODE = @CXXDEPMODE@
  63420. -CXXFLAGS = @CXXFLAGS@
  63421. CYGPATH_W = @CYGPATH_W@
  63422. DEFS = @DEFS@
  63423. DEPDIR = @DEPDIR@
  63424. DLLTOOL = @DLLTOOL@
  63425. DL_LIBS = @DL_LIBS@
  63426. -ECHO = @ECHO@
  63427. +DSYMUTIL = @DSYMUTIL@
  63428. +DUMPBIN = @DUMPBIN@
  63429. ECHO_C = @ECHO_C@
  63430. ECHO_N = @ECHO_N@
  63431. ECHO_T = @ECHO_T@
  63432. EGREP = @EGREP@
  63433. EXEEXT = @EXEEXT@
  63434. -F77 = @F77@
  63435. FALLBACK_SOCKLEN_T = @FALLBACK_SOCKLEN_T@
  63436. -FFLAGS = @FFLAGS@
  63437. +FGREP = @FGREP@
  63438. GCRYPT_CIPHERS = @GCRYPT_CIPHERS@
  63439. GCRYPT_DIGESTS = @GCRYPT_DIGESTS@
  63440. GCRYPT_PUBKEY_CIPHERS = @GCRYPT_PUBKEY_CIPHERS@
  63441. @@ -236,6 +240,7 @@
  63442. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  63443. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63444. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  63445. +LD = @LD@
  63446. LDFLAGS = @LDFLAGS@
  63447. LIBGCRYPT_CIPHERS = @LIBGCRYPT_CIPHERS@
  63448. LIBGCRYPT_CONFIG_API_VERSION = @LIBGCRYPT_CONFIG_API_VERSION@
  63449. @@ -250,15 +255,20 @@
  63450. LIBOBJS = @LIBOBJS@
  63451. LIBS = @LIBS@
  63452. LIBTOOL = @LIBTOOL@
  63453. +LIPO = @LIPO@
  63454. LN_S = @LN_S@
  63455. LTLIBOBJS = @LTLIBOBJS@
  63456. MAINT = @MAINT@
  63457. MAKEINFO = @MAKEINFO@
  63458. MKDIR_P = @MKDIR_P@
  63459. MPI_SFLAGS = @MPI_SFLAGS@
  63460. +NM = @NM@
  63461. +NMEDIT = @NMEDIT@
  63462. NOEXECSTACK_FLAGS = @NOEXECSTACK_FLAGS@
  63463. OBJDUMP = @OBJDUMP@
  63464. OBJEXT = @OBJEXT@
  63465. +OTOOL = @OTOOL@
  63466. +OTOOL64 = @OTOOL64@
  63467. PACKAGE = @PACKAGE@
  63468. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  63469. PACKAGE_NAME = @PACKAGE_NAME@
  63470. @@ -271,7 +281,7 @@
  63471. PTH_CONFIG = @PTH_CONFIG@
  63472. PTH_LIBS = @PTH_LIBS@
  63473. RANLIB = @RANLIB@
  63474. -RC = @RC@
  63475. +SED = @SED@
  63476. SET_MAKE = @SET_MAKE@
  63477. SHELL = @SHELL@
  63478. STRIP = @STRIP@
  63479. @@ -282,8 +292,7 @@
  63480. abs_top_builddir = @abs_top_builddir@
  63481. abs_top_srcdir = @abs_top_srcdir@
  63482. ac_ct_CC = @ac_ct_CC@
  63483. -ac_ct_CXX = @ac_ct_CXX@
  63484. -ac_ct_F77 = @ac_ct_F77@
  63485. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  63486. am__include = @am__include@
  63487. am__leading_dot = @am__leading_dot@
  63488. am__quote = @am__quote@
  63489. @@ -314,6 +323,7 @@
  63490. libexecdir = @libexecdir@
  63491. localedir = @localedir@
  63492. localstatedir = @localstatedir@
  63493. +lt_ECHO = @lt_ECHO@
  63494. mandir = @mandir@
  63495. mkdir_p = @mkdir_p@
  63496. oldincludedir = @oldincludedir@
  63497. @@ -349,9 +359,9 @@
  63498. exit 1;; \
  63499. esac; \
  63500. done; \
  63501. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  63502. - cd $(top_srcdir) && \
  63503. - $(AUTOMAKE) --gnu tests/Makefile
  63504. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
  63505. + $(am__cd) $(top_srcdir) && \
  63506. + $(AUTOMAKE) --gnu tests/Makefile
  63507. .PRECIOUS: Makefile
  63508. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  63509. @case '$?' in \
  63510. @@ -369,13 +379,16 @@
  63511. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63512. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  63513. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63514. +$(am__aclocal_m4_deps):
  63515. clean-noinstPROGRAMS:
  63516. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  63517. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  63518. - echo " rm -f $$p $$f"; \
  63519. - rm -f $$p $$f ; \
  63520. - done
  63521. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  63522. + echo " rm -f" $$list; \
  63523. + rm -f $$list || exit $$?; \
  63524. + test -n "$(EXEEXT)" || exit 0; \
  63525. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  63526. + echo " rm -f" $$list; \
  63527. + rm -f $$list
  63528. ac$(EXEEXT): $(ac_OBJECTS) $(ac_DEPENDENCIES)
  63529. @rm -f ac$(EXEEXT)
  63530. $(LINK) $(ac_OBJECTS) $(ac_LDADD) $(LIBS)
  63531. @@ -466,21 +479,21 @@
  63532. .c.o:
  63533. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  63534. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63535. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63536. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63537. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63538. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  63539. .c.obj:
  63540. @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  63541. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63542. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63543. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63544. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63545. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  63546. .c.lo:
  63547. @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  63548. -@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  63549. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  63550. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  63551. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63552. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  63553. @@ -503,7 +516,7 @@
  63554. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63555. $(TAGS_FILES) $(LISP)
  63556. - tags=; \
  63557. + set x; \
  63558. here=`pwd`; \
  63559. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63560. unique=`for i in $$list; do \
  63561. @@ -511,29 +524,34 @@
  63562. done | \
  63563. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63564. END { if (nonempty) { for (i in files) print i; }; }'`; \
  63565. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  63566. + shift; \
  63567. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63568. test -n "$$unique" || unique=$$empty_fix; \
  63569. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63570. - $$tags $$unique; \
  63571. + if test $$# -gt 0; then \
  63572. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63573. + "$$@" $$unique; \
  63574. + else \
  63575. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63576. + $$unique; \
  63577. + fi; \
  63578. fi
  63579. ctags: CTAGS
  63580. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63581. $(TAGS_FILES) $(LISP)
  63582. - tags=; \
  63583. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63584. unique=`for i in $$list; do \
  63585. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63586. done | \
  63587. $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63588. END { if (nonempty) { for (i in files) print i; }; }'`; \
  63589. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  63590. + test -z "$(CTAGS_ARGS)$$unique" \
  63591. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  63592. - $$tags $$unique
  63593. + $$unique
  63594. GTAGS:
  63595. here=`$(am__cd) $(top_builddir) && pwd` \
  63596. - && cd $(top_srcdir) \
  63597. - && gtags -i $(GTAGS_ARGS) $$here
  63598. + && $(am__cd) $(top_srcdir) \
  63599. + && gtags -i $(GTAGS_ARGS) "$$here"
  63600. distclean-tags:
  63601. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  63602. @@ -542,6 +560,7 @@
  63603. @failed=0; all=0; xfail=0; xpass=0; skip=0; \
  63604. srcdir=$(srcdir); export srcdir; \
  63605. list=' $(TESTS) '; \
  63606. + $(am__tty_colors); \
  63607. if test -n "$$list"; then \
  63608. for tst in $$list; do \
  63609. if test -f ./$$tst; then dir=./; \
  63610. @@ -553,10 +572,10 @@
  63611. *[\ \ ]$$tst[\ \ ]*) \
  63612. xpass=`expr $$xpass + 1`; \
  63613. failed=`expr $$failed + 1`; \
  63614. - echo "XPASS: $$tst"; \
  63615. + col=$$red; res=XPASS; \
  63616. ;; \
  63617. *) \
  63618. - echo "PASS: $$tst"; \
  63619. + col=$$grn; res=PASS; \
  63620. ;; \
  63621. esac; \
  63622. elif test $$? -ne 77; then \
  63623. @@ -564,17 +583,18 @@
  63624. case " $(XFAIL_TESTS) " in \
  63625. *[\ \ ]$$tst[\ \ ]*) \
  63626. xfail=`expr $$xfail + 1`; \
  63627. - echo "XFAIL: $$tst"; \
  63628. + col=$$lgn; res=XFAIL; \
  63629. ;; \
  63630. *) \
  63631. failed=`expr $$failed + 1`; \
  63632. - echo "FAIL: $$tst"; \
  63633. + col=$$red; res=FAIL; \
  63634. ;; \
  63635. esac; \
  63636. else \
  63637. skip=`expr $$skip + 1`; \
  63638. - echo "SKIP: $$tst"; \
  63639. + col=$$blu; res=SKIP; \
  63640. fi; \
  63641. + echo "$${col}$$res$${std}: $$tst"; \
  63642. done; \
  63643. if test "$$all" -eq 1; then \
  63644. tests="test"; \
  63645. @@ -616,11 +636,15 @@
  63646. dashes="$$report"; \
  63647. fi; \
  63648. dashes=`echo "$$dashes" | sed s/./=/g`; \
  63649. - echo "$$dashes"; \
  63650. + if test "$$failed" -eq 0; then \
  63651. + echo "$$grn$$dashes"; \
  63652. + else \
  63653. + echo "$$red$$dashes"; \
  63654. + fi; \
  63655. echo "$$banner"; \
  63656. test -z "$$skipped" || echo "$$skipped"; \
  63657. test -z "$$report" || echo "$$report"; \
  63658. - echo "$$dashes"; \
  63659. + echo "$$dashes$$std"; \
  63660. test "$$failed" -eq 0; \
  63661. else :; fi
  63662. @@ -640,13 +664,17 @@
  63663. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63664. if test -d $$d/$$file; then \
  63665. dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63666. + if test -d "$(distdir)/$$file"; then \
  63667. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63668. + fi; \
  63669. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63670. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63671. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63672. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63673. fi; \
  63674. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63675. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63676. else \
  63677. - test -f $(distdir)/$$file \
  63678. - || cp -p $$d/$$file $(distdir)/$$file \
  63679. + test -f "$(distdir)/$$file" \
  63680. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63681. || exit 1; \
  63682. fi; \
  63683. done
  63684. @@ -675,6 +703,7 @@
  63685. distclean-generic:
  63686. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63687. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63688. maintainer-clean-generic:
  63689. @echo "This command is intended for maintainers to use"
  63690. @@ -696,6 +725,8 @@
  63691. html: html-am
  63692. +html-am:
  63693. +
  63694. info: info-am
  63695. info-am:
  63696. @@ -704,18 +735,28 @@
  63697. install-dvi: install-dvi-am
  63698. +install-dvi-am:
  63699. +
  63700. install-exec-am:
  63701. install-html: install-html-am
  63702. +install-html-am:
  63703. +
  63704. install-info: install-info-am
  63705. +install-info-am:
  63706. +
  63707. install-man:
  63708. install-pdf: install-pdf-am
  63709. +install-pdf-am:
  63710. +
  63711. install-ps: install-ps-am
  63712. +install-ps-am:
  63713. +
  63714. installcheck-am:
  63715. maintainer-clean: maintainer-clean-am
  63716. @@ -738,7 +779,7 @@
  63717. uninstall-am:
  63718. -.MAKE: install-am install-strip
  63719. +.MAKE: check-am install-am install-strip
  63720. .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
  63721. clean-generic clean-libtool clean-noinstPROGRAMS ctags \
  63722. @@ -754,6 +795,7 @@
  63723. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  63724. tags uninstall uninstall-am
  63725. +
  63726. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63727. # Otherwise a system limit (for SysV at least) may be exceeded.
  63728. .NOEXPORT: